An advanced AI chatbot co-pilot with a Flask web interface for interactive conversation and real-time news retrieval.
This chatbot co-pilot leverages the OpenAI API for natural language understanding, complemented by RAG (Retrieval-Augmented Generation) to fetch up-to-date news and insights from CNBC News and top e-commerce sources.
- LangChain Framework – for user query synthesis and AI response generation
- Flask – for building the web interface
- GPT-3.5 – for natural language understanding
- CNBC & E-Commerce News Sources – for current news and market updates
- Download this github repository
- Create a virtual environment
python -m venv venv- Activate the virtual environment
`source venv/bin/activate` or `venv/Scripts/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