RAG Knowledge Base
March 23, 2026 · View on GitHub
Upload documents so JARVIS can cite them when answering questions.
Prerequisites:
- JARVIS running, logged in, and an OpenAI API key configured in Settings (required for embeddings via
text-embedding-3-small)
Upload a Document
- Click Documents in the left sidebar.
- Click Upload Document.
- Select a file — supported formats: PDF, TXT, MD, DOCX.
- Wait for processing. JARVIS chunks the document (500 words / 50-word overlap) and indexes it in Qdrant using
text-embedding-3-small(1536 dimensions).
Ingest from a URL
- In the Documents panel, click Add from URL.
- Paste a public URL (HTML page, PDF link, etc.).
- JARVIS fetches, extracts, chunks, and indexes the content automatically.
Ask a Question
After uploading, start a new conversation and ask a question related to your documents:
"Summarize the key findings in my Q4 report."
JARVIS performs a hybrid vector + keyword search, retrieves the top-5 matching chunks, and injects them as context before the LLM call. Sources are cited inline: [1] "document-name".
Workspace Collections
Within a Workspace, all members share a common knowledge base:
- Go to Workspace Settings → Documents.
- Upload documents — they are stored in a shared
workspace_{id}Qdrant collection. - All members' conversations in that workspace automatically search both their personal collection and the workspace collection.
Personal and workspace results are merged and re-ranked by combined score (70% vector, 30% keyword overlap) before being passed to the LLM.
Remove a Document
- Go to Documents.
- Click the trash icon next to the document.
- The document and all its indexed chunks are deleted.