GithubHelp home page GithubHelp logo

idrishanafi / amazonsearchengine Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 12.03 MB

A fast and light weight search engine using NLP algorithms

Home Page: http://ec2-18-220-136-214.us-east-2.compute.amazonaws.com/

Python 2.55% Shell 0.03% HTML 0.06% CSS 0.10% JavaScript 0.61% Jupyter Notebook 96.65%
nlp python

amazonsearchengine's Introduction

697 Capstone: Amazon Product Search Engine

Built by: James Rosenkoetter, Frederic Gigou, Curtis Guo, Idris Hanafi

Overview

Playground deployed on EC2: http://ec2-18-220-136-214.us-east-2.compute.amazonaws.com/

Product Demo

An extremely light weight end-to-end search engine using NLP algorithms.

Prerequisites

You will need the following things properly installed on your computer.

1. Environment Setup

To get started, Let's setup the environment. If you've already created a virtual environment like below, then you can just run the following:

$ source setup.sh

Create a Virtual Environment (venv) with python3:

$ python3 -m venv 697_venv

Use the virtual env when developing the backend:

$ source 697_venv/bin/activate

Install the python dependencies:

(697_venv) $ pip install -r requirements.txt

Moreover, whenever you want to add a new package to our backend, run the following to document the dependencies:

(697_venv) $ pip install <package_name> && pip freeze > requirements.txt

2. Data and Model Setup

Pull all of the data and models to our current directory:

(697_venv) $ source ./get_data_and_model.sh

3. Database and Data Setup

The database is a Postgres DB. Confirm that you have postgres installed on your environment. To do so, create a .env file for Prisma to connect to your DB.

Inside the .env file, add the following line:

DATABASE_URL="postgresql://<USERNAME>:<PASSWORD>@localhost:5432/amzn_product_db"

Afterwards, migrate the schemas into the DB:

(697_venv) $ prisma db push

Lastly, migrate all of the product metadata into the DB:

(697_venv) $ python db/main.py

4. Run the backend

This will run the backend APIs to call our search engines:

(697_venv) $ uvicorn src.backend.main:api --reload

(Optional) Reproduce the pipeline

You can reproduce the pipeline by running the following:

(697_venv) $ dvc repro

Documentations

Step 1. Cleaning Data: clean_metadata is a script that takes the input meta data file and returns the cleaned one.

python3 src/clean_metadata.py
        --input_bucket <INPUT BUCKET>
        --input_file <Input file from S3 within that bucket>
        --output_file <>
        
Example run:
python3 src/clean_metadata.py
        --input_bucket 697-datasets
        --input_file meta_Electronics-0.1-percent.csv
        --output_file data/cleaned_output.csv

amazonsearchengine's People

Contributors

idrishanafi avatar

Watchers

 avatar  avatar

Forkers

fredgi123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.