Overview
RAG combines search with generation. Rather than trusting what a model memorised during training, the system retrieves relevant passages from your own corpus at query time and asks the model to answer using only those passages — which is the single most effective way to reduce invented facts.
How it works
Documents are chunked and embedded into a vector index. At query time the question is embedded, the nearest chunks are retrieved (often re-ranked), and they are placed in the prompt with an instruction to answer only from that context and cite it.
Use cases
Internal knowledge assistant
Answer staff questions from policies, runbooks and wikis, with links to the source.
CorporateCustomer-facing docs search
Let users ask questions of product documentation and get cited answers.
SaaSLegal and compliance research
Search a contract or regulation set and quote the governing clause.
LegalSupport deflection
Resolve common tickets from the knowledge base before they reach an agent.
SupportBenefits
- Answers reflect your current documents, not a training cut-off.
- Citations make every answer auditable.
- No retraining needed when the knowledge base changes.
- Access control can be enforced at retrieval time.
Limitations
- Answer quality is capped by retrieval quality — bad chunks, bad answer.
- Chunking strategy materially changes results and needs tuning.
- Multi-hop questions spanning several documents remain hard.
- Keeping the index in sync with the source of truth is real ongoing work.
What to look for when choosing a tool
- Citations linking back to the source document
- Permission filtering applied during retrieval
- Re-ranking, not just nearest-neighbour lookup
- Incremental re-indexing when documents change
- Evaluation tooling to measure groundedness over time