Simple script to use ChatGPT on your own files.
Here's the YouTube Video.
Install Langchain.
pip install langchain
pip install openai
pip install chromadb
pip install tiktoken
Modify constants.py
to use your own OpenAI API key.
Place your own data into data.txt
.
> python chatgpt.py "what is my dog's name"
Your dog's name is Sunny.