Simple chatbot with a flask web interface.
The chatbot leverages OpenAI API for user query comprehension complemented with RAG for up-to-date information retrieval.
Tools Used:
- LangChain framework: for user query synthesis and reply generation
- Flask: for web gui
- GPT-4o mini: for language understanding
- Database: Information retreval from the connected database using RAG Chinook Database is used: https://www.kaggle.com/datasets/anurag629/chinook-csv-dataset?select=Customer.csv
-
Download this github repository
-
Create a virtual environment
python -m venv venv -
Activate the virtual environment
source venv/bin/activateorvenv/bin/activate[for Windows] -
Install the requirements
pip install -r requirements.txt -
Add your OpenAI API key in a .env file
-
On the terminal run the command below
python app.py -
App should not be running on localhost default port
