Conversational voice assistant that joins a LiveKit room, answers questions using OpenAI-powered retrieval, and streams transcripts in real time through a React frontend.
| Voice + Realtime | Web Client | AI & Retrieval | Runtime & Ops |
|---|---|---|---|
ℹ️ Dependencies are managed with
uv(Python) andnpm(frontend). See.agent/System/project_architecture.mdfor a deep architectural walkthrough.
The fastest way to spin up the full stack—LiveKit agent worker, token API, RAG service, and frontend—is with Docker Compose.
-
Copy environment templates:
cp services/livekit_agent/.env.example services/livekit_agent/.env cp services/rag_service/.env.example services/rag_service/.env cp frontend/.env.example frontend/.env
Populate LiveKit, OpenAI, and Deepgram credentials, plus
VITE_LIVEKIT_WS_URL,VITE_BACKEND_URL, andVITE_RAG_SERVICE_URL. -
Launch everything:
docker compose up --build
- FastAPI token API is exposed on port
8000. - RAG service listens on
8081. - Frontend is available at
http://localhost:5173.
- FastAPI token API is exposed on port
-
Visit the frontend, join a room, and converse with the agent. Compose handles dependent start order so the RAG service is ready before the agent connects.
To tear everything down: docker compose down (add -v to remove volumes if desired).
Prefer running services individually? Start them in this order:
- RAG HTTP service
cd services/rag_service uv run rag-service - FastAPI token API
Configure host/port/CORS in
cd services/livekit_agent uv run livekit-backend-apiservices/livekit_agent/.env. - LiveKit agent worker
cd services/livekit_agent uv run livekit-backend dev - Frontend
cd frontend npm install npm run dev
services/livekit_agent/— uv-managed Python app providing the agent worker (livekit-backend) and token API (livekit-backend-api).services/rag_service/— FastAPI service offering/query,/search, and/documentsendpoints backed by OpenAI vector stores.packages/rag_core/— Shared retrieval utilities consumed by the agent and RAG service.frontend/— Vite + React UI for joining rooms, rendering transcripts, and managing knowledge documents.storage/documents/— Source PDFs synced into the OpenAI vector store..agent/— Living documentation (architecture, SOPs, and feature plans). Start with.agent/README.md.
services/livekit_agent/.env— LiveKit keys, RAG endpoint, LLM/STT/TTS model toggles.services/rag_service/.env— OpenAI vector store configuration and HTTP server settings.frontend/.env— Frontend URLs for LiveKit WebSocket, backend API, and RAG service.- Root
.env.examplelinks to each service template for convenience.
- Review
.agent/README.mdfor the documentation index. - After modifying behaviour, update the relevant doc in
.agent/System,.agent/SOP, or.agent/Tasks. - Keep
docker-compose.ymland environment templates aligned with the docs to prevent drift. - Tailor the agent’s role, personality, and core instructions in
services/livekit_agent/src/personality.mdto match your use case.
Happy hacking! 🎧🧠