What is RAG (retrieval-augmented generation)?
RAG means looking up relevant passages from your own documents and putting them in front of the model together with the question, so the answer comes from your material rather than the model's memory. Nothing is retrained. The documents stay yours, and updating them updates the answers immediately.
Reviewed:
In short
When a vendor says the model was "trained on your data", ask which. Nine times out of ten they mean retrieval, which is cheaper, updates instantly and can cite its source. That is the better answer, so there is no reason to dress it up as training.
| RAG (retrieval) | Fine-tuning | |
|---|---|---|
| What changes | What the model is shown | The model weights |
| Updating a fact | Edit the document | Retrain and redeploy |
| Can cite its source | Yes, the retrieved passage | No |
| Handles a document added today | Immediately | Only after the next training run |
| Good at | Facts, policies, product data | Tone, format, a narrow task |
| Cost driver | Tokens per question | Training runs, then hosting |
| Fails by | Retrieving the wrong passage | Confidently repeating stale training data |
Sources: Lewis et al., Retrieval-Augmented Generation (arXiv:2005.11401) · Anthropic docs: contextual retrieval · reviewed: Jun 7, 2026
Where it shows up in practice
A support bot over your help centre
Every answer is grounded in an article you control, with a link back to it. When the refund policy changes on Tuesday, the bot is correct on Tuesday. This is the case RAG was made for.
A sales assistant over a price list
Retrieval keeps the numbers current and quotable. We still put a hard rule in front of it: the assistant may quote a price only from a retrieved row, never from memory, and says it will check when nothing matches.
An internal search across contracts
People ask in plain language and get the clause plus the document it came from. The citation matters more than the fluency here, because the person is going to open the file anyway.
Where fine-tuning still wins
You want a fixed output shape, or a house tone of voice, on a task where the facts barely move. That is a training problem, not a retrieval one. In practice we combine them rarely and only after RAG alone has been measured.
How we use it
Retrieval is unglamorous and it wins most of the time. The reason is boring: businesses change their facts faster than anyone wants to retrain a model. A price list, a delivery policy, a list of who covers which region. Put those in a document store, retrieve the right rows at question time, and the system is correct the moment someone edits the document.
The part people underestimate is that RAG quality is a search problem, not a model problem. If retrieval hands over the wrong three paragraphs, the best model in the world writes a fluent wrong answer. So most of our build time on these projects goes into chunking, metadata and evaluation: does the right passage come back for the fifty questions customers actually ask? We measure that before anyone sees the bot. The technique traces back to a 2020 paper by Lewis and colleagues and has barely changed in shape since; what changed is that the surrounding tooling got good. It pairs naturally with AI agents, which use retrieval as one of their tools. See how we deploy it in AI chatbots and Voice AI.