Simply, start with installing docker.
- Operation System
- MacOS (recommend)
- Docker
- Python: 3.11.3
git clone git@github.com:aialt/LiverpoolCourses.git
cd LiverpoolCourses
python3 -m venv test_envsource ./test_env/bin/activate
cd rag_app/
pip install -r requirements.txtInstall docker according to this doc Docker
- Set OpenAI key
export OPENAI_API_KEY="****"- Run the
containerof PostgreSQL + PgVector
docker run -d \
-e POSTGRES_DB=ai \
-e POSTGRES_USER=ai \
-e POSTGRES_PASSWORD=ai \
-e PGDATA=/var/lib/postgresql/data/pgdata \
-v pgvolume:/var/lib/postgresql/data \
-p 5532:5432 \
--name pgvector \
agnohq/pgvector:16- Run with local streamlit ui app
streamlit run ./run_app_streamlit_ui.py- Setup
.envfile
cp .env.example .env- In
.envfile, set the OpenAI key
OPENAI_API_KEY=your-openai-key
- Run the containers with
docker-compose
docker-compose -f docker-compose.dev.yml up --build -dOpen the browser and go to: http://localhost:8501