RAG or fine-tuning: how to decide
They solve different problems. One gives a model your facts; the other changes how it behaves. Most business cases need the first.
Use retrieval when the answer depends on your own documents, and fine-tuning when you need to change how a model behaves. They are often presented as two routes to the same place, and they are not: one changes what the model knows at the moment it answers, the other changes its habits. Most business cases need the first, and a fair number need neither.
RAG: give the model your documents
With retrieval, the system finds the relevant passages from your own documents and hands them to the model with the question. The model answers from what it was given and can cite it. When a policy changes, you update the document, not the model.
The idea has a clear origin. A 2020 research paper by Patrick Lewis and colleagues named the weakness it fixes: a model that holds facts only in its own parameters finds it hard to show where an answer came from, and hard to update what it knows. Retrieval-augmented generation, RAG for short, pairs the model with a searchable store of text, so both problems move out of the model and into the documents.
In practice the documents are cut into short passages and indexed, often twice: once by meaning and once by exact words, so a search for a part number or a clause reference still lands. The best few passages go into the prompt. Some models can then point at the text they relied on. Anthropic's citations feature, for one, returns the exact passages that support each claim, which lets a reviewer check an answer instead of trusting it.
Fine-tuning: change the model's habits
Fine-tuning trains a model further on your examples so that it adopts a style, a format or a narrow skill. It is good at consistent tone, a fixed output structure, or a specialised classification. It is poor at facts that change, because the facts are frozen into the model at training time.
The vendors' own guidance is narrower than the sales pitch. Google Cloud's tuning guide for Gemini models tells teams to start with prompting, and recommends tuning for tasks such as classification, sentiment analysis, entity extraction and simple summarisation. It suggests a hundred labelled examples or more, and says quality counts for more than quantity. The reward it describes is practical: a tuned model needs shorter prompts, so each request is quicker and cheaper.
A close relative is distillation. Amazon Bedrock's documentation describes it as using a larger "teacher" model to train a smaller, faster and cheaper "student". That is the route when a small model must do one narrow job at high volume.
First check whether you need either
Both techniques answer a problem you may not have. If the model already does the task well with clear instructions and a few examples in the prompt, stop there. If your reference material is small, you may not need retrieval at all: Anthropic's engineering note on retrieval says a knowledge base under about 200,000 tokens, roughly 500 pages, can simply be included in the prompt for its models. A staff handbook and a price list may well fit. Ten years of contracts will not.
The two side by side
| Question | RAG | Fine-tuning |
|---|---|---|
| What it changes | What the model can see when it answers | How the model behaves on every answer |
| Best for | Answers that depend on your documents | A fixed format, a consistent voice, a narrow classification |
| When facts change | Update the document | Train the model again |
| Showing sources | Can cite the passage it used | Cannot point to where an answer came from |
| What you need to start | Clean, current documents and a record of who may see what | A hundred or more good examples of the task done well |
| Where the cost sits | Longer prompts on every request, plus a search index to maintain | Training up front, then shorter prompts |
| Usual cause of failure | Messy documents and weak search | Too few good examples, or using it to teach facts |
How to choose
- The answer depends on your documents, and they change: RAG.
- You need to show where an answer came from: RAG.
- You need a consistent format or voice across thousands of outputs: fine-tuning.
- A small model must do one narrow task cheaply and fast: fine-tuning.
- Both are true: retrieval for the facts, a tuned model for the form.
A supplier risk to check before you tune
A tuned model is tied to the base model it was trained from, and base models are retired. The clearest recent example: OpenAI's fine-tuning guide now says the company is winding down its fine-tuning platform. It is closed to new users, and eligible existing customers can create training jobs only until 6 January 2027. Models already tuned stay available until their base model is shut down.
The lesson is not that fine-tuning is finished. Google Cloud and Amazon Bedrock both document it as a current service. The lesson is that the lasting asset is your set of examples, not the tuned model. Keep the examples, keep a test set that scores the result, and you can tune again on another vendor's model or on an open-weight model you run yourself.
What usually goes wrong
Retrieval fails when the documents are a mess: duplicates, old versions, scans nobody can read, and no record of who may see what. Fine-tuning fails when there are too few good examples, or when it is used to teach facts. In both cases the model is rarely the problem. The data is.
The search step deserves the same attention as the documents. In Anthropic's published tests, preparing the passages with more context and re-ranking the results cut failed retrievals by 67 per cent, from 5.7 per cent of cases to 1.9 per cent. That gain came entirely from the search step. If answers are poor, look at what the model was handed before you blame the model.
Start with retrieval
For most business questions, start with retrieval and a good general model. It is quicker to build, easier to correct and simpler to audit. Reach for fine-tuning when you can name the behaviour you want and have the examples to teach it.
We would begin with a small set of real questions and the answers a competent person would give, then test every change against it. If you would like a second opinion on which route fits your documents, get in touch.
Common questions
Can we use both together?
Yes. Retrieval supplies the facts and a tuned model supplies the form, such as a fixed report layout or a house style. Build the retrieval first, because it is the part you can correct in an afternoon by fixing a document.
Does fine-tuning stop a model making things up?
No. Fine-tuning shapes style and format; it gives the model no way to check a fact. Retrieval with citations does not make errors impossible either, but it lets a person see the passage behind a claim and catch the mistake.
How many examples does fine-tuning need?
Fewer than most people expect, and they must be good. Google's guide suggests a hundred or more. OpenAI's guide sets a minimum of ten and reports improvements from 50 to 100. Start small, measure, and add examples where the model still gets it wrong.
Who can see what, once our documents are connected?
With retrieval, access can be enforced at the search step, so a user is shown only passages they are allowed to read. That depends on having a record of permissions in the first place. With fine-tuning, anything in the training examples can surface for any user, so sensitive records do not belong in a training set.