Field notes

RAG vs fine-tuning: which does your AI project need?

Retrieval-augmented generation gives a model your knowledge; fine-tuning changes how it behaves. When to use each, when to use both, and what to try first.

Quick answer

What is the difference between RAG and fine-tuning?

RAG (retrieval-augmented generation) gives a language model access to your documents at the moment it answers, so answers stay current and can cite sources. Fine-tuning trains the model on examples so it behaves differently — following a format, tone or narrow task more reliably. Use RAG for knowledge that changes; fine-tune for consistent behaviour. Many production systems use both.

RAG changes
What the model knows
Fine-tuning changes
How the model behaves
Use RAG for
Changing facts, citations
Fine-tune for
Format, tone, narrow tasks

Last updated 19 November 2026

“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

RAGFine-tuning
What it changesWhat the model knows when it answersHow the model behaves
Best forKnowledge that changes; answers that need sourcesConsistent format, tone or a narrow, repeated task
Keeping it currentUpdate the documentsRetrain the model
CitationsYes, to the source passagesNo
Data neededYour documents, indexedHundreds to thousands of labelled examples
Upfront costLowerHigher: data preparation and training
Running costRetrieval plus a larger prompt per questionCan be lower if a smaller model does the job
Access controlCan respect each user’s document permissionsEverything 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.

Questions

Common questions.

Is RAG cheaper than fine-tuning?

Usually, to start. RAG needs no training run and updates as soon as your documents change. Fine-tuning has an upfront cost for data preparation and training, but can lower running costs by letting a smaller model do a narrow job well.

Does fine-tuning reduce hallucinations?

Not reliably for facts. Fine-tuning teaches behaviour, not knowledge that stays current. To reduce made-up facts, ground the model in retrieved sources with RAG, require citations and measure accuracy on an evaluation set.

How much data do you need to fine-tune a model?

For a narrow task, a few hundred to a few thousand high-quality examples is often enough. Quality matters more than volume: consistent, correct examples beat large, noisy ones.

Can you fine-tune commercial models like GPT or Claude?

Some providers offer fine-tuning for some of their models, with different options and limits. Open models such as Llama and Mistral can be fine-tuned and hosted in your own cloud, which also keeps training data under your control.

Should we use RAG or a long context window?

If your knowledge fits comfortably in the context window and changes rarely, putting it in the prompt can be simpler. For large or changing collections, RAG is cheaper per question and easier to keep accurate.

Let’s find the first system worth building.

A 45-minute working session with an engineer. Bring a workflow; leave with a first idea and an honest view of what it is worth.

Book a working session