
Short answer: If the assistant needs to know things, such as your products, policies or documents, use RAG: retrieve the relevant text at answer time and give it to the model. If it needs to behave differently, such as following a strict output format, keeping a tone or doing one narrow task cheaply, fine-tuning can help. Before either, write a good prompt and measure it: OpenAI, Anthropic and Google all tell you to start there. Research also shows fine-tuning is a poor way to teach a model new facts.
What are the three ways to adapt a model?
| Prompting | RAG | Fine-tuning | |
|---|---|---|---|
| What changes | The instructions and examples you send | The documents the model sees for each question | The model’s weights |
| Good for | Most tasks; the first thing to try | Knowledge that is large, private or changes often | Format, tone, a narrow repeated task, shorter prompts, a smaller model |
| Updating | Edit the prompt | Edit the documents | Train again |
| Shows its source | No | Yes, it can cite the retrieved passage | No |
| Effort | Lowest | A search index and a pipeline | Labelled examples, training runs, evaluation |
Why start with the prompt and a test set?
All three major providers put the same step first.
- OpenAI says to build evaluations on representative inputs to get a baseline, then improve the prompt with context, clear instructions and examples. It notes that prompting alone may be enough.
- Anthropic says to define success criteria, have a way to test against them and write a first prompt before tuning anything. It also notes that not every failure is a prompting problem; sometimes another model is the easier fix.
- Google recommends finding the best prompt first and tuning only when you need more performance or keep seeing the same errors.
Without a test set you can’t tell whether RAG or fine-tuning made anything better.
Why is RAG the default for knowledge?
The RAG paper (Lewis et al., NeurIPS 2020) pointed out two problems with knowledge stored in model weights: it’s hard to update and hard to trace back to a source. A separate text index fixes both. In one experiment, swapping a 2016 Wikipedia index for a 2018 one updated the answers about world leaders without any retraining.
Later work compared the two approaches directly:
- Ovadia et al. (EMNLP 2024) tested three 7-billion-parameter models on knowledge questions and on 910 questions about events after their training data. RAG beat unsupervised fine-tuning both for facts the models had seen before and for entirely new ones. Fine-tuning improved when the same facts were included in several phrasings.
- Gekhman et al. (EMNLP 2024) found that fine-tuning examples containing new facts were learned much more slowly than examples the model already knew. Once learned, they made the model hallucinate more. The authors conclude that models get most of their factual knowledge in pre-training, and fine-tuning mainly teaches them to use it.
So if your prices, stock or return policy change, put them in documents the assistant retrieves, not in training data. That also lets it show where an answer came from, which helps against made-up answers.
When is fine-tuning the right tool?
The providers’ documentation lists cases where tuning pays off:
- You need more examples than fit in a prompt. OpenAI names this directly.
- You want shorter prompts. Long instructions and examples cost tokens on every request; tuning can build them in, cutting cost and latency.
- A smaller, cheaper model should do one narrow task, such as classification, extraction or translation into a fixed format.
- Output must be consistent: custom syntax, domain rules or a house style. Google mentions these, and lists supervised tuning for format and classification and preference tuning for tone.
Google suggests about 100 or more labelled examples, and stresses that quality matters more than quantity.
Can the two be combined?
RAFT (Zhang et al., 2024) fine-tunes a model specifically to work with retrieved documents: to ignore unhelpful passages, quote the relevant one and reason towards an answer. The authors report gains on medical, multi-hop and API-documentation questions. That’s a tuning job, though, and it only makes sense once a basic RAG setup has been measured.
Can you still fine-tune? (December 2026)
Whether you can fine-tune at all depends on the provider, and it has changed this year:
- OpenAI is winding down self-serve fine-tuning. According to its deprecations page, from December 15, 2026 no organisation can create new self-serve fine-tuning jobs; existing fine-tuned models keep working until their base model is retired.
- Anthropic’s Claude models were offered for fine-tuning on Amazon Bedrock only for Claude 3 Haiku, and that model has now reached end of life there. We found no current self-serve option for fine-tuning Claude.
- Google Vertex AI documents supervised and preference tuning for Gemini models.
Check the provider’s current documentation before you plan a project around tuning.
How do you decide quickly?
- Write a test set of real questions with good answers.
- Improve the prompt until it stops getting better.
- Is the gap missing knowledge? Add RAG.
- Is the gap behaviour, format or cost at scale? Consider fine-tuning, if your provider still offers it and you have enough good examples.
- Re-run the same tests after every change.
Summary
- Prompting first, with a test set to measure against.
- RAG for knowledge: easier to update, can show its source, and beat fine-tuning at teaching facts in the research above.
- Fine-tuning for behaviour: format, tone, narrow tasks, shorter prompts or a smaller model.
- Self-serve fine-tuning is becoming harder to get from major providers; check availability first.

