Fine-tuning vs RAG: which do you need?
Use RAG for knowledge and fine-tuning for behaviour. Most teams need retrieval, citations and structured outputs first; fine-tune only for a measured gap.
Use RAG for knowledge and fine-tuning for behaviour. Most teams need retrieval, citations and structured outputs first; fine-tune only for a measured gap.
Use classic RAG when the evidence sits in one place; add an agent loop when it is spread across documents or needs tools. Most systems route between the two.
Embeddings turn text into vectors so search matches meaning, not keywords. Pair them with keyword search and a reranker, and test models on your own queries.
A recurring report. A slow review. A prototype that needs to work in the real world.
Use RAG for knowledge and fine-tuning for behaviour. If you want a model to answer from your current policies, contracts or case records, connect it to them with retrieval-augmented generation: searching your documents at question time and handing the model the relevant passages to cite. Only reach for fine-tuning (training the model further so its weights change) when you need a behaviour that prompting, examples and structured outputs can't produce. In 2026, that's rarer than it used to be.
"Can we train the model on our data?" is still one of the first questions leadership teams ask. It sounds intuitive: if the model already knew your policies, surely it'd get the answers right. In practice, most teams need the model to reach the right information, cite its source and stay up to date as things change. That's a retrieval problem, not a training one.
Key takeaways
The real difference between the two approaches is where your information sits. With RAG it stays in your documents and systems, under your own access controls, and the model reads the relevant part each time. With fine-tuning it's baked into the model's weights during training, where you can't cite it, permission it or update it without training all over again.
RAG is the right starting point whenever an answer depends on facts that change, need a source, or aren't meant for everyone to see. In public sector and regulated work, that's most knowledge work:
RAG has its own failure modes, mostly in retrieval: poor chunking, missed passages and evidence scattered across documents. Our guides to embeddings and hybrid search and RAG vs agentic retrieval cover how to fix them.
Fine-tuning earns its keep when the gap is behaviour, you've measured it, and the cheaper options have already had a fair crack:
What no longer justifies tuning on its own is output format. Every major API now offers structured outputs: supply a JSON schema and the response is constrained to match it, with no training at all. If you once planned to fine-tune for "always return valid JSON in this shape", use a schema instead (see writing effective prompts).
Less than you used to. Availability has narrowed and varies by provider, so check before designing around it:
There's also a maintenance tax teams routinely underestimate. A tuned model is pinned to its base model. When the provider retires that base, you train again, re-run your evaluations and migrate, often only to discover the newer base model already does the job out of the box.
Context windows have grown fast: many current models take around a million tokens, and prompt caching bills a repeated long prefix at a fraction of the normal input price. For a fixed, modest set of documents (one framework agreement or a single handbook), dropping the whole text into the prompt is now a sensible design.
It doesn't replace a knowledge system, though. A long context can't enforce which documents each user is allowed to see, won't update itself when policies shift, and makes citations harder to verify. Every request still pays for the whole context in latency, and in cost on a cache miss. Our explainer on how LLM cost, context and latency work walks through the arithmetic.
| Option | When to use | Trade-offs |
|---|---|---|
| Prompt and examples | Early work, low volume, or a task the model already does well with clear instructions | No access to private or current knowledge; behaviour depends on prompt discipline |
| Long context | A small, stable set of documents that every user can see | No per-user permissions; cost and latency grow with every page added |
| RAG | Private or changing knowledge, citations, different permissions | An ingestion and retrieval pipeline to build, evaluate and monitor |
| Fine-tuning | A measured behaviour gap on a narrow, stable, high-volume task | Training data, retraining when the base model retires, regressions without evals |
| RAG plus a tuned model | High-volume retrieval tasks where a small tuned model cuts cost | Two systems to version and evaluate together |
A council wants an assistant that answers staff questions about its housing allocation policy and drafts letters to applicants in a standard format. It looks like one project, yet it splits cleanly into two different jobs:
Measure before you decide: take 50 real questions and 30 real letters, score the baseline, change one thing, and score again. Let the numbers tell you whether training is worth it, rather than intuition.
A practical selection process
For almost every organisation that asks us about training a model on its data, we start with retrieval: clean document processing, hybrid search, citations and permissions, all measured against a test set built from real questions. We fix format with schemas and style with examples. We only reach for fine-tuning when a narrow, high-volume task still shows a gap after all of that, and usually on a smaller model the client can run or swap out easily.
The Company Twin keeps your AI assistants grounded in live operational records, with citations and per-user permissions, rather than whatever a model happened to be trained on. See live retrieval in the Company Twin →
Further reading