This is a Retrieval-Augmented Generation (RAG) based ChatBot powered by GPT-4 or GPT-3.5-turbo, designed to answer user queries based on a frequently asked questions (FAQ) corpus.
- Utilizes GPT-4 or GPT-3.5-turbo for conversational AI
- Answers questions grounded in a FAQ knowledge base
- Retrieval-Augmented Generation approach for accurate responses
- Clone the repository:
git clone https://github.com/sam2125/ChatBot.git - Change into the repository directory:
cd ChatBot - Install the required Python packages:
pip install -r requirements.txt - Change the faqs.csv file if required to incorporate your data.
- Run app.py as: python app.py
- Navigate to
127.0.0.1/ask - Hit the POST request with the following body:
{ "query": "What are your working hours?", "method": "embedding", "use_genai": true, "model_type": "gpt-4" }
Only query is a mandatory. The other entries have the provided default values.