Skip to content

aialt/LiverpoolCourses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Education AI Agent

Simply, start with installing docker.

Environmental requirements

  • Operation System
    • MacOS (recommend)
  • Docker
  • Python: 3.11.3

Quickstart

1. Clone the repository

git clone [email protected]:aialt/LiverpoolCourses.git
cd LiverpoolCourses
python3 -m venv test_env

2. Install dependencies

source ./test_env/bin/activate
cd rag_app/
pip install -r requirements.txt

3. Install Docker

Install docker according to this doc Docker

4.Run without docker-compose

  1. Set OpenAI key
export OPENAI_API_KEY="****"
  1. 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
  1. Run with local streamlit ui app
streamlit run ./run_app_streamlit_ui.py

5. Run with docker-compose

  1. Setup .env file
cp .env.example .env
  1. In .env file, set the OpenAI key
OPENAI_API_KEY=your-openai-key
  1. Run the containers with docker-compose
docker-compose -f docker-compose.dev.yml up --build -d

6. Access to Application

Open the browser and go to: http://localhost:8501

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •