/review-rec-bot

Demo building Restaurant Recommendation Chatbot based on Yelp Public Data

Primary LanguageJupyter Notebook

Business Recommendation Chatbot based on Yelp Data

🔗 Blog Post.

How to run

Prerequisite

  • Poetry 1.8.3
  • Miniconda or alternatives that can create new Python environment with a specified Python version

Set up

  • Download the Yelp Data at https://www.yelp.com/dataset, unzip the reviews file yelp_dataset.tar (4.34 GB) and put the data at data/yelp_dataset. For example: data/yelp_dataset/yelp_academic_dataset_business.json
  • Create a new .env file based on .env.example and populate the variables there
  • Create a new Python 3.11.9 environment: conda create --prefix ./.venv python=3.11.9
  • Make sure Poetry use the new Python 3.11.9 environment: poetry env use ./.venv
  • Install Python dependencies with Poetry: poetry install
  • Start the Jupyterlab notebook: poetry run jupyter lab

Build the RAG pipeline

Start Chatbot UI

  • Navigate to ui folder: cd ui
  • Run: poetry run chainlit run chat_v2.py -hw
  • Access the Chatbot UI at http://localhost:8000