Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatBot

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.

Features

  • 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

Setup Instructions

  1. Clone the repository: git clone https://github.com/sam2125/ChatBot.git
  2. Change into the repository directory: cd ChatBot
  3. Install the required Python packages: pip install -r requirements.txt
  4. Change the faqs.csv file if required to incorporate your data.

Usage

  1. Run app.py as: python app.py
  2. Navigate to 127.0.0.1/ask
  3. 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages