Prerequisites
- Workspace enabled (
suite.enabled: true) - RAG enabled (
rag.enabled: true) - A connector encryption key set (
connectors.encryption_key)
1
Enable RAG in your config
2
Create a knowledge base
id — you will use it in subsequent steps.3
Add documents (option A: upload files directly)
Upload files directly to the knowledge base:Or ingest from a URL or YouTube video:
4
Sync from an external source (option B: connector)
For continuously updated content, create a connector. This example syncs a Confluence space:Trigger the first sync immediately:
5
Test retrieval
Query the KB directly to verify your documents are indexed and relevant chunks are returned:
6
Use RAG in chat
In the workspace UI, select the knowledge base in the chat settings panel. Your messages will automatically be grounded with relevant document chunks.Citations appear in the chat as clickable references — users can see exactly which documents informed each answer.
Improve retrieval quality
After your KB is populated, tune retrieval in Admin → Settings → RAG:- Hybrid search — combine BM25 keyword scoring with vector search via RRF for better coverage of exact terms
- Rerank model — add a cross-encoder for more precise document ranking after initial retrieval
- Relevance filter — use an LLM to classify and filter low-quality chunks before they reach the context window
- Standard answers — curate QA pairs that short-circuit RAG for common questions your team asks