Skip to content

RHEcosystemAppEng/ai-virtual-assistant

Repository files navigation

ai-virtual-assistant

Clone the repository

  1. Clone the ai-virtual-assistant repository

    git clone https://github.com/RHEcosystemAppEng/ai-virtual-assistant
    cd ai-virtual-assistant

Start PostgreSQL database

  1. 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

Start the backend server

  1. Install dependencies:

    python3.10 -m venv venv
    source venv/bin/activate
    pip3 install -r backend/requirements.txt
  2. Start Server

    Initialize db

    cd backend
    alembic upgrade head
    cd ..
    ./venv/bin/uvicorn backend.main:app

Start the ui server

In another terminal:

  1. Install dependencies

     cd frontend
     npm install
  2. Start server

     npm run dev

Building container image

podman build --platform linux/amd64 -t quay.io/ecosystem-appeng/ai-virtual-assistant:1.1.0 .

Running container image

  1. Start PostgreSQL database

  2. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5