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-3.5: for language understanding
- Linkedin blogpost: for current information retrieval; Link
-
Download this github repository
-
Create a virtual environment
python -m venv venv
-
Activate the virtual environment
source venv/bin/activate
orvenv/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