https://github.com/daveshap/longtermchatexternalsources
GPT-3 chatbot with long-term memory and external sources
https://github.com/daveshap/longtermchatexternalsources
Last synced: about 1 year ago
JSON representation
GPT-3 chatbot with long-term memory and external sources
- Host: GitHub
- URL: https://github.com/daveshap/longtermchatexternalsources
- Owner: daveshap
- License: mit
- Created: 2022-06-29T10:04:36.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T14:28:43.000Z (over 3 years ago)
- Last Synced: 2025-03-28T20:11:18.263Z (about 1 year ago)
- Language: Python
- Size: 503 KB
- Stars: 618
- Watchers: 34
- Forks: 140
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LongtermChatExternalSources
GPT-3 chatbot with long-term memory and external sources.
## Prerequisites
- Python3 installed
- OpenAI api key obtained by registering with OpenAI
## Setup
### Windows
1. Clone the repository to your local PC: `git clone https://github.com/daveshap/LongtermChatExternalSources.git`
2. Create a virtual environment: `python3 -m venv env`
3. Activate the environment: `.\env\Scripts\activate`
4. Install the required packages: `pip install openai numpy`
5. Copy your OpenAI api key to a file named `openaiapikey.txt` in the project directory. Ensure there is no trailing newline.
### Mac/Linux
1. Clone the repository to your local PC: `git clone https://github.com/daveshap/LongtermChatExternalSources.git`
2. Create a virtual environment: `python3 -m venv env`
3. Activate the environment: `source env/bin/activate`
4. Install the required packages: `pip3 install openai numpy`
5. Copy your OpenAI api key to a file named `openaiapikey.txt` in the project directory. Ensure there is no trailing newline.
## Usage
Run the script: `python chat.py`
Once the script is running, you can interact with the chatbot through the command line.