GPT-3 chatbot with long-term memory and external sources.
- Python3 installed
- OpenAI api key obtained by registering with OpenAI
- Clone the repository to your local PC:
git clone https://github.com/daveshap/LongtermChatExternalSources.git
- Create a virtual environment:
python3 -m venv env
- Activate the environment:
.\env\Scripts\activate
- Install the required packages:
pip install openai numpy
- Copy your OpenAI api key to a file named
openaiapikey.txt
in the project directory. Ensure there is no trailing newline.
- Clone the repository to your local PC:
git clone https://github.com/daveshap/LongtermChatExternalSources.git
- Create a virtual environment:
python3 -m venv env
- Activate the environment:
source env/bin/activate
- Install the required packages:
pip3 install openai numpy
- Copy your OpenAI api key to a file named
openaiapikey.txt
in the project directory. Ensure there is no trailing newline.
Run the script: python chat.py
Once the script is running, you can interact with the chatbot through the command line.