An LLM powered chat app that gets smarter the more knowledge you provide it.
If you don’t have Python installed, install it from here.
-
Clone this repository
-
Navigate into the project directory
$ cd brain-py
-
Create a new virtual environment
$ virtualenv virt $ source virt/bin/activate
-
Install the requirements
$ pip install -r requirements.txt
-
Make a copy of the example environment variables file
$ cp .env.example .env
-
Add your OpenAI API key to the newly created .env file
-
Run the application
$ ./cli.sh
-
Generate a secret key
$ python -c 'import secrets; print(secrets.token_hex())'
Once generated, set the
FLASK_APP_SECRET_KEY
in your.env
as the new value. -
Run the application
$ python server.py
All contributions are welcome! Reach out for more information.