Rag-Chat-Bot is a Retrieval-Augmented Generation (RAG) chatbot that uses OpenAI's GPT-4 and embeddings to answer user queries based on a custom chat dataset.
- Loads chat data from CSV files
- Stores chat embeddings in a persistent ChromaDB collection
- Retrieves relevant chats using semantic search
- Generates responses using GPT-4, strictly based on retrieved context
- Clone the repository and open in VS Code (recommended).
- Install dependencies:
pip install -r requirements.txt
- Set your OpenAI API key:
- Create a
.envfile in the project root:OPENAI_API_KEY=your_openai_api_key
- Create a
- Run the chatbot:
python [chatbot.py](http://_vscodecontentref_/4)
- The chatbot loads chat data from
data/chat_training.csvby default. - Enter your query at the prompt. Type
exitor press Enter to quit.