-
Notifications
You must be signed in to change notification settings - Fork 1
RAG Upload Documents
Follow these instructions to upload relevant documents to the RAG-Database for use by the Chatbot.
Open a terminal in the root of your project and run:
uvicorn src.main:app --reloadThis will start the FastAPI server locally.
Navigate to the FastAPI documentation in your browser:
http://127.0.0.1:8000/docs
In the API documentation:
- Scroll to the
POST /upload/section labeled Document Upload.
- Click the "Try it out" button.

You must select one of the following categories for the document:
-
Scene Name(e.g., "Blue Sector", "Lab Scene", etc.) - General Information — General knowledge that may help the Chatbot better understand the module or content.
- Behavioral Context — Instructions for how the Chatbot should behave and formulate responses.
- Conversational Assets — Expected conversation trees for different NPCs.
- Training Data — Environmental details and user expectations within the VR world.
- Miscellaneous — For all content that doesn’t fit any other category.
Remember that the files are directly instructing the Chatbot. To avoid misguiding or confusing the Chatbot, it is best practice to address the Chatbot in second person and the player in third person in these documents.

- Accepted file types:
.mdor.txt -
Note for DOCX users: Save your
.docxfile as a.txtfile to make it uploadable. -
Note for PDF users: Copy and paste the contents into a
.txtor.mdfile manually.
After selecting the category and uploading the file, click Execute to complete the upload process.

If you follow these steps, your document will be successfully uploaded and processed by the RAG-Database system.
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