-
Clone the ai-virtual-assistant repository
git clone https://github.com/RHEcosystemAppEng/ai-virtual-assistant cd ai-virtual-assistant
-
Run the following command to start the PostgreSQL
To delete the database before restarting PostgreSql db
podman compose down && podman volume rm ai-virtual-assistant_pgdata
podman compose --file compose.yaml up --detach
-
Install dependencies:
python3.10 -m venv venv source venv/bin/activate pip3 install -r backend/requirements.txt
-
Start Server
Initialize db
cd backend alembic upgrade head cd ..
./venv/bin/uvicorn backend.main:app
In another terminal:
-
Install dependencies
cd frontend npm install
-
Start server
npm run dev
podman build --platform linux/amd64 -t quay.io/ecosystem-appeng/ai-virtual-assistant:1.1.0 .
-
Start PostgreSQL database
-
Run the container
podman run --platform linux/amd64 --rm -p 8000:8000 \ -e DATABASE_URL=postgresql+asyncpg://admin:password@host.containers.internal:5432/ai_virtual_assistant \ -e LLAMASTACK_URL=http://host.containers.internal:8321 \ quay.io/ecosystem-appeng/ai-virtual-assistant:1.1.0