The short answer
What each one actually does
Retrieval augmented generation
RAG searches your own content at the moment a question is asked and puts the relevant passages in front of the model before it answers. The model’s weights never change. What changes is what it can see, which is why an update to a document is live in the next answer rather than in the next training run.
Fine-tuning
Fine-tuning continues training a model on examples of the behaviour you want, adjusting its weights. It is how you teach consistent output structure, a house style, or a classification decision that is hard to express in a prompt. It does not reliably teach facts, and facts taught this way cannot be cited, updated or removed.
How they compare
| RAG | Fine-tuning | |
|---|---|---|
| Best for | Facts, documents, anything that changes. | Behaviour, format, tone, classification. |
| Updating | Edit the document. Live immediately. | Retrain. Hours to days. |
| Citations | Native. Every answer points at a source. | None. The model cannot show its working. |
| Upfront cost | Lower. Indexing and retrieval design. | Higher. Data preparation dominates. |
| Cost per request | Higher. Retrieved context is tokens. | Lower. Shorter prompts. |
| Latency | Retrieval adds a step. | Faster at inference. |
| Hallucination risk | Lower, because answers are grounded. | Unchanged, and harder to trace. |
| Removing information | Delete the document. | Retrain from a clean base. |
When to use RAG
- The answer lives in documents. Policies, product data, matter files, runbooks, support history.
- The information changes. Anything updated weekly makes fine-tuning a treadmill.
- You need a citation. In regulated work an answer nobody can trace is an answer nobody can use.
- You need to remove things. A document deleted is a fact forgotten, which matters for retention rules.
When to fine-tune
- Output structure has to be exact, every time, and prompting gets you most of the way but not all.
- A house style matters across thousands of generations and cannot be described in a prompt short enough to be affordable.
- You are classifying at volume. A small fine-tuned model regularly beats a large prompted one on cost and latency.
- Prompts have grown unmanageable. When the instruction is longer than the input, that behaviour belongs in the weights.
Can you use both together?
Yes, and mature systems often do, in one order. Get retrieval right first, because it fixes the accuracy problem and is cheaper to change. Then fine-tune for behaviour if the output still needs shaping. Doing it the other way round means retraining every time retrieval changes what the model sees, which is a slow way to learn the same lesson.
Why does fine-tuning not teach facts reliably?
Because training adjusts the likelihood of a phrasing rather than storing a fact you can look up. A fine-tuned model will often produce something that resembles the right answer with complete confidence, and there is no source to check it against. That is the worst combination in a production system: wrong, fluent and untraceable. Retrieval keeps facts as facts, in documents, where they can be corrected.
Which is cheaper, RAG or fine-tuning?
RAG is cheaper to build and change, and more expensive per request because retrieved context costs tokens. Fine-tuning is more expensive upfront, dominated by preparing training data rather than by compute, and cheaper per request afterwards. At low volume RAG wins on total cost. At very high volume with stable behaviour, a small fine-tuned model can win, which is why the volume question is worth asking before either.
Related
- What AI chatbot development costs: where retrieval work sits in a build budget.
- Generative AI development: retrieval grounded features built into your product.
- AI chatbot development: where retrieval and citation matter most.
- What is RAG?: the definition, and what it does not solve.
- What is fine-tuning?: what it teaches well, and what it teaches badly.
