Simply, start with installing docker.
- Operation System
- MacOS (recommend)
- Docker
- Python: 3.11.3
git clone [email protected]:aialt/LiverpoolCourses.git
cd LiverpoolCourses
python3 -m venv test_env
source ./test_env/bin/activate
cd rag_app/
pip install -r requirements.txt
Install docker according to this doc Docker
- Set OpenAI key
export OPENAI_API_KEY="****"
- Run the
container
of 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
.env
file
cp .env.example .env
- In
.env
file, 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 -d
Open the browser and go to: http://localhost:8501