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.
- Clone the repository
git clone [email protected]:onlyoneaman/chatgpt-support-bot.git
- Install the dependencies
pip install -r requirements.txt
- Add OpenAI API key to the environment variables (.env)
# .env
OPENAI_KEY=YOUR_OPENAI_KEY_HERE
- Create Embeddings for Knowledge Base
python embed_text.py
- Run the bot
python answer.py
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.