- Creation:
python3 -m venv .venv
- Activation:
source .venv/bin/activate
- Install requirements
- Manually create folders src/training-data & src/logs
- Add internal documents to training-data + change code to load them
- Create .env file with your OPENAI_API_KEY= (check: https://platform.openai.com/docs/quickstart?context=python)
- Install frontend dependencies with
cd my-app
&npm install
python src/database.py
export FLASK_APP=src/app.py
flask run
cd my-app
npm start