Create a .env
file including these variables:
POSTGRES_DRIVER=psycopg
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DB=test
POSTGRES_USER=example
POSTGRES_PASSWORD=example
OPENAI_API_KEY=<KEY>
Using PG Vector Database from https://hub.docker.com/r/ankane/pgvector
Commands:
docker-compose up
Commands:
virtualenv venv
source venv/bin/activate
pip install --upgrade pip
pip install --requirement requirements.txt
python main.py