-
Notifications
You must be signed in to change notification settings - Fork 1
Pipeline
peter-olai edited this page May 7, 2025
·
3 revisions
This page describes the main pipeline for processing user queries in the chat service, including RAG (Retrieval-Augmented Generation).
- Query Embedding: Convert the user’s query (or a combination of query and context) into an embedding using the embeddings model.
- Context Retrieval: Perform a similarity search in the database to pull out relevant pieces of text (e.g., task guidance, environment details).
- Prompt Generation: Combine the user’s query, retrieved context, and additional information (like user actions or environmental variables) into a well-structured prompt.
- LLM Generation: Send the prompt to the LLM to generate a helpful, natural language response.
- Return Answer: Deliver the response back to the VR environment, where the NPC can relay the information to the user.
- Query Processing & Embedding: Clean and preprocess the user query, then generate an embedding vector.
- Similarity Search: Use cosine similarity to compare the query embedding with stored document embeddings and retrieve the top N relevant documents.
- Prompt Generation: Combine the base prompt, user query, retrieved context, and any additional VR data.
- LLM Response: Pass the prompt to the LLM and post-process the response if needed.
For more details, see chat_service_pipeline.

Place an exported pipeline diagram image in the diagrams/ folder to display it here.
Authors:
Peter Olai Johnsen
Tobias Fremming
Erik Le Blanc Pleym
About Chat-Service
Core Components
Development
Codebase Details
- Codebase Architecture
- Routes
- Command-py
- Config-py
- Context Upload-py
- LLM-py
- Main-py
- Pipeline-py
- Streaming WS-py
- Transcribe-py
Deployment and Operations