Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 1.03 KB

README.md

File metadata and controls

40 lines (30 loc) · 1.03 KB

ChatGPT Based Support Bot

Article: Building a Support Bot for your website using Python, OpenAI

This is a support bot based on the ChatGPT by onlyoneaman which provides information to your customers based on your knowledge base.

How to use

  1. Clone the repository
git clone git@github.com:onlyoneaman/chatgpt-support-bot.git
  1. Install the dependencies
pip install -r requirements.txt
  1. Add OpenAI API key to the environment variables (.env)
# .env
OPENAI_KEY=YOUR_OPENAI_KEY_HERE
  1. Create Embeddings for Knowledge Base
python embed_text.py
  1. Run the bot
python answer.py

Adding Knowledge Base

You can add documents to the knowledge base by adding them to the documents folder. Files should be in .txt format. After adding the documents, you need to run the embed_text.py script to create embeddings for the documents.