← Back

RAG vs Fine-Tuning: Which Problem Are You Trying to Solve?

TL;DR

A wrong answer can be a retrieval, behaviour or permission failure. Diagnose it before buying a training pipeline, using a fictional policy example and a reusable failure log.

Conceptual illustration for RAG vs Fine-Tuning: Which Problem Are You Trying to Solve?

Your support assistant knows last year's cancellation policy. It also turns every answer into a small essay. Those failures may appear in the same conversation, but they need different fixes.

Retrieval-augmented generation, or RAG, supplies relevant information when a request arrives. Fine-tuning changes a model using training examples. For a business choosing between them, the useful question is: is the missing ingredient the right evidence, or the right behaviour once the evidence is available?

Start there before committing to a training pipeline. Below, we work through a fictional support-policy example, separate six failure types and show how to compare the options without letting a polished answer hide a wrong decision. The example and worksheet are an editorial test design, not results from a deployed client system or a model benchmark.

The difference that matters in a working product

Microsoft's RAG guidance distinguishes retrieval for private or changing information from fine-tuning for behaviour, style and task performance. A system can use both. Neither label, by itself, tells you whether the resulting answer is reliable.

Decision RAG Fine-tuning
What changes? The evidence supplied with a request The model's learned behaviour through training
Typical starting problem The answer depends on a current document or account record The model repeatedly mishandles a well-defined task despite adequate inputs
Update to inspect Source version, indexing and retrieval filters Training examples, model version and evaluation results
Evidence to request The passages actually retrieved for a failed answer Performance on examples withheld from training
Common mistake Assuming a citation proves the claim Assuming the model has become a dependable database

Fine-tuning may teach domain knowledge, but that does not make it a convenient system of record for information that changes independently. If a customer's entitlement changed this morning, the application should obtain the applicable record and enforce access to it. A model's memory is an awkward place to manage that transaction.

Conversely, putting ten more pages into a prompt will not necessarily teach a model to label an unusual support request consistently. First try a clearer instruction, representative examples and any available output constraints. Consider training when a recurring task still fails and you can assemble good examples of the desired behaviour.

The question here differs from fine-tuning versus training from scratch. That decision concerns how a model is built; this one concerns what a particular product needs to answer correctly.

Diagram showing Evidence: Current source, Decision: Correct outcome, Format: Usable answer, Access: Allowed data.
Editorial diagnostic framework; the support example is fictional and no model benchmark is claimed.

One support question, six different failures

Imagine a fictional subscription business, Northline. Its current policy says that a customer may cancel a renewal within 14 days, provided no work has started. An older document says seven days. A customer asks: “I renewed ten days ago and haven't used the service. Can I cancel?”

These are invented policy rules for the exercise, not consumer-law guidance. The correct handling depends on the current policy and confirmation of the work status. The assistant should not infer that “haven't used” necessarily means “no work has started”.

What happened What the trace reveals First change to test
Answer says seven days Only the retired document reached the model Fix source selection and version handling
Answer gives unconditional approval Current policy arrived; work status did not Obtain the missing record or ask for clarification
Answer refuses every cancellation Correct facts arrived; exception handling is wrong Improve instructions and examples, then evaluate
Answer is correct but unusably verbose Policy reasoning passes; response format fails Tighten response specification before training
Answer names another customer's account Retrieval crossed an access boundary Repair permissions; stop that retrieval path
Answer quotes 14 days but cites the seven-day document Claim and supporting passage disagree Evaluate citation support separately

Our finding from applying the distinction is that “wrong answer” is too broad a category for choosing an architecture. In this scenario, only some failures make a plausible case for training. Others require a data, workflow or permission change. A successful fine-tuning experiment on short answers would not repair the other customer's document appearing in context.

Keep the original question, retrieved passages and response together when investigating a failure. Looking only at the final answer makes a missing record look like weak reasoning. Looking only at retrieval makes a misread exception look like a search problem.

Try the correct evidence before changing the model

For a failed question, manually supply the exact authorised passage that a good retrieval system should have found. Include the same account facts the application is allowed to use. Run the same answer instructions again.

If the answer now passes, investigate retrieval first. Check whether the current document was ingested, whether a retired version remained eligible, and whether an account filter excluded the useful record. Do not automatically increase the number of retrieved passages: more irrelevant text can make diagnosis harder.

If the answer still fails, inspect the task definition. Is the model being asked to determine eligibility, write a customer reply and update the account in one step? Split the decision from the message and validate the decision against explicit rules. An application can check required fields without asking the model to invent them.

This manual-evidence comparison is a diagnostic intervention. It is not proof that RAG will work in production: you temporarily removed the hard search problem. Its value is narrower and useful. It tells you where to spend the next engineering hour.

For Northline, supply both the policy and a work-status record. Require an outcome such as eligible, ineligible or needs_review, plus the evidence identifiers. Then have the application decide which actions are permitted. The customer-facing prose can be written afterwards.

When fine-tuning becomes a reasonable experiment

A useful training candidate has a stable definition of success. Perhaps the assistant must classify support requests into a specialised taxonomy or produce consistently structured summaries from noisy notes. You have corrected examples, realistic exceptions and a way to score outputs that were not used in training.

Before commissioning the experiment, write down the existing baseline. Which prompt, base model, input fields and validation rules are you using? Without that record, a later improvement might come from a cleaner prompt or changed dataset rather than training.

Separate examples by customer, conversation or document family where those relationships could leak the answer. Randomly separating near-duplicate tickets can make the test easier than the real job. Keep difficult cases in the evaluation: a neat average conceals failures concentrated in the very requests that need care.

Do not choose a training-set size from a generic promise. The number of useful examples depends on the task, variation and model. Ask the developer to show which error categories the examples address and how learning will be measured. More copies of easy answers do little to explain a stubborn exception failure.

Fine-tuning also creates an operational asset that needs versioning. Record which training data produced a model, how to roll back and what will trigger reevaluation. If the task definition changes, the previous test result no longer settles the decision.

A fair comparison needs more than answer accuracy

Use the same held-out questions for the approaches you compare. Keep an untouched subset until the final decision; otherwise repeated prompt edits turn the test into another development set.

Score each response on separate axes:

  • Decision correctness: does it reach the right outcome, including when information is missing?
  • Evidence support: does each material claim follow from the authorised source provided?
  • Task completion: can the intended user actually use the output without repairing it?
  • Boundary handling: does it refuse to disclose inaccessible data or perform an unavailable action?
  • Operating effort: how much review, source maintenance and troubleshooting remains?

Record response time and cost for the whole request, including retrieval, retries and human correction. Do not compare a training bill with a single retrieval call and call the cheaper number the winner. Compare equivalent workloads over a declared period, with the same acceptable failure rate.

For a proposal framed as a small experiment, our AI proof-of-concept example shows how to define the decision the work should settle. Agree what result would make you stop, not just what would justify the next phase.

What happens when the policy changes tomorrow?

Return to Northline and change the fictional cancellation window from 14 days to 21. This is an especially revealing test because the previous answer was correct yesterday.

For retrieval, record when the replacement becomes available, whether retired content remains searchable and whether citations show the applicable version. Test the same question before and after the change. A successful upload is not the same thing as a successful answer update.

For a tuned model, establish whether the policy was merely part of its training examples or is still supplied as current context. If it arrives through retrieval, test whether the model follows the new evidence over a familiar pattern. The combined approach needs its own evaluation; passing two isolated component tests is not enough.

Finally, revoke the test user's permission to the policy. The application should stop supplying it even if a cached answer or earlier conversation included it. Have the engineering team document that behaviour. This is a system-design requirement, not something to assume from the choice of model.

Make the architecture decision from a failure log

Download the RAG and fine-tuning decision worksheet. It contains the Northline fixture, expected handling and a blank failure log. It does not contain measured model scores. Use it to record your own baseline and then replace the fictional policy with approved material from your business.

A defensible first decision might be “repair retrieval and retest”, “keep the base model with stronger output checks” or “run a bounded fine-tuning comparison”. Buying both immediately can obscure which part earns its keep.

If you want help making that decision, talk to Pixelfield. Bring a handful of failed questions, the evidence that should have been used and the response a competent colleague would accept. Those examples make a much better starting brief than a request for a particular architecture.

Michal Vávra
Written by
Head of AI & Development

Michal has been with Pixelfield since September 2012 and has held technical leadership roles since 2017. He is the technical force behind our most demanding builds, combining AI expertise with the infrastructure and software architecture needed to make it work in production. His work spans LLM applications, multi-agent orchestration and complex integrations. He sets the engineering standards behind reliability, performance and scale, and guides the team through the decisions that determine how a system runs long after launch.