Skip to content

Train an AI chatbot with your custom knowledge base with LangChain and ChatGPT API

Notifications You must be signed in to change notification settings

otey247/Custom-Knowledge-ChatGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Train an AI chatbot with your custom knowledge base with LangChain and ChatGPT API

This project is about training an AI chatbot with your own knowledge base using LangChain and ChatGPT API. You can use your own set of documents to train the AI chatbot, which will make the chatbot more relevant to your particular needs.

Installation

Before running the application, you need to install some libraries. Use the following commands to install the required libraries:

pip install openai
pip install gpt_index==0.4.24
pip install PyPDF2
pip install PyCryptodome
pip install gradio

Adding Your Documents to Train the AI Chatbot

Place the documents you want to use to train the AI chatbot inside the "docs" folder.

Running the Application

Follow these steps to run the application:

  1. Open CMD and navigate to the folder where you saved the app and the "docs" folder.
  2. Run the command "python app.py" in the Terminal window.
  3. The application will give you a local URL. Copy and paste this URL into your web browser to use the chatbot.
  4. To stop the custom-trained AI chatbot, press "Ctrl + C" in the Terminal window.
  5. To restart the AI chatbot, go to the folder location and run "python app.py" again.

Enjoy using your custom-trained AI chatbot!

About

Train an AI chatbot with your custom knowledge base with LangChain and ChatGPT API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages