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 chat.py "what is my dog's Lucky"
Your dog's name is Lucky.
A small project that use lanchain to using chatGPT with your own extra data with python
Python
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 chat.py "what is my dog's Lucky"
Your dog's name is Lucky.