A language model knows what was in its training data, up to a cutoff date, and nothing about your company's policies, products or tickets. Retrieval-augmented generation closes that gap. AWS defines it as optimizing a model's output "so it references an authoritative knowledge base outside of its training data sources before generating a response," without retraining the model (AWS, What is RAG).
AWS lists the problems RAG addresses: models presenting false information when they lack an answer, giving out-of-date or generic answers, drawing on non-authoritative sources and confusing terms that mean different things in different places. IBM adds a benefit that matters for trust: a RAG system can cite the passages it used, so users can check the answer against the source (IBM, What is RAG). IBM is also clear about the limit: RAG reduces the risk of hallucination but "cannot make a model error-proof."
You may not need RAG at all. Anthropic's contextual retrieval write-up, read on 2026-10-17, says that a knowledge base smaller than about 200,000 tokens, roughly 500 pages, can simply be placed in the prompt, and that prompt caching makes this cheaper and faster on repeated calls (Anthropic, Contextual retrieval). Check how large your corpus is before you build a pipeline. RAG earns its complexity when the material is too big for the prompt, changes often or must be filtered by who is asking.
| Situation | Usual approach |
|---|---|
| Small, stable reference material | Put it in the prompt and cache it |
| Large or frequently updated documents | RAG |
| A consistent style or output format | Prompting and examples, sometimes fine-tuning |
| Facts about one user over time | Agent memory, often alongside RAG |



