A quick demo on how to make a knowledge based chatbot using OpenAI embedding and GPT-3 APIs
Before you begin, ensure you have met the following requirements:
To configure your environment, create a .env
file in the root directory of the project with the following content:
OPENAI_API_KEY=<your_openai_api_key>
PINECONE_API_KEY=<your_pinecone_api_key>
PINECONE_ENVIRONMENT=<your_pinecone_environment>
PINECONE_INDEX=<your_pinecone_index>
Replace <your_openai_api_key>
, <your_pinecone_api_key>
, <your_pinecone_environment>
, and <your_pinecone_index>
with the corresponding API keys and values from OpenAI and Pinecone.
To install the required dependencies, follow these steps:
npm install
To run the Ibentau chatbot, use the following command:
npm run generate_embeddings # Generate embeddings for the knowledge base
npm run build # Build the project
npm run preview # Start the chatbot
This project is licensed under the MIT License. See the LICENSE file for more information.