“Should we use RAG or fine-tune a model?” is one of the most common questions we hear at the start of an AI project. They solve different problems, and choosing the wrong one wastes months. Here is how to tell them apart.
What is RAG?
Retrieval-augmented generation (RAG) connects a language model to your own knowledge. When someone asks a question, the system first searches your documents, databases or tickets for the most relevant passages, then gives those passages to the model with the question. The model answers from that material and can cite where each part of the answer came from.
Because the knowledge lives outside the model, updating it is as simple as updating the documents. Nothing needs retraining. That makes RAG the default for anything built on policies, product information, contracts, procedures or case history. It is the core of our data and knowledge systems work.
What is fine-tuning?
Fine-tuning continues training an existing model on your own examples, so it learns to respond in a particular way: a fixed output format, a house tone, a classification scheme, or a specialised task such as extracting fields from one kind of document. Techniques such as LoRA make this far cheaper than it used to be.
Fine-tuning changes behaviour. It is a poor way to teach a model facts that change, because every change means training again, and the model cannot tell you where an answer came from.
RAG vs fine-tuning compared
| RAG | Fine-tuning | |
|---|---|---|
| What it changes | What the model knows when it answers | How the model behaves |
| Best for | Knowledge that changes; answers that need sources | Consistent format, tone or a narrow, repeated task |
| Keeping it current | Update the documents | Retrain the model |
| Citations | Yes, to the source passages | No |
| Data needed | Your documents, indexed | Hundreds to thousands of labelled examples |
| Upfront cost | Lower | Higher: data preparation and training |
| Running cost | Retrieval plus a larger prompt per question | Can be lower if a smaller model does the job |
| Access control | Can respect each user’s document permissions | Everything trained in is available to everyone |
When to use RAG
- Answers depend on documents that change: policies, prices, product details, procedures.
- People need to see where an answer came from before they rely on it.
- Different users may see different documents, and permissions must hold.
- You need to start quickly and improve as you go.
When to fine-tune
- The output must follow a strict format every time, such as a structured record or a specific report layout.
- The task is narrow and high-volume, and a small fine-tuned model can match a large general one at a fraction of the cost.
- The model must follow a style or classification scheme that is hard to describe in a prompt but easy to show with examples.
- Latency matters and a smaller model is needed, for example in a voice agent.
When to use both
Many production systems combine them: RAG supplies current, permission-checked knowledge, and a fine-tuned model turns it into the exact output the workflow needs. A claims system, for example, might retrieve the relevant policy wording and use a fine-tuned model to produce a structured coverage decision for a handler to approve.
Try these before either
Better prompts and a handful of examples in the prompt solve more problems than people expect. When retrieval is the weak point, hybrid search (keywords plus meaning), re-ranking and better document chunking usually help more than a bigger model. Only fine-tune once you have measured that these are not enough.
How we decide on a project
We start by building an evaluation set from real cases with the people who do the work. Then we try the simplest approach that could work, measure it, and add retrieval or fine-tuning only where the numbers show it pays. That keeps the system as simple — and as cheap to run — as the job allows. If you are weighing this choice now, talk to an engineer or read about our LLM development and fine-tuning work.