Tech Solutions/Use cases

RAG, fine-tuning or better prompting: a decision framework

A team sketching an approach together across a long table
The short answer

Start with prompting. It is free, instant to iterate and solves more than teams expect.

Add retrieval (RAG) when the model needs knowledge it was not trained on — your documents, your records, anything that changes. This is where the large majority of enterprise use cases land and stop.

Fine-tune only to change behaviour or format, not to inject facts. Fine-tuning teaches a model how to respond, not what is true today — so the moment your facts change, you retrain.

The expensive mistake is fine-tuning to add knowledge. Retrieval handles changing information natively and lets you cite sources, which is usually a business requirement anyway.

What each technique actually does

Prompting

Instructing the model well: clear role, explicit constraints, worked examples, a defined output structure. No infrastructure, no training, changes take effect immediately.

Underrated because it looks too simple. A carefully constructed prompt with three or four good examples frequently outperforms a hastily fine-tuned model, and it can be changed in a minute rather than a week.

Retrieval-augmented generation

Before the model answers, search your corpus for relevant material and place it in the context window. The model reasons over supplied facts rather than recalled ones.

This is the right default for private, current or frequently changing knowledge. Add a document and it is usable immediately. Remove one and it stops being used. The model can cite what it used, so a human can verify.

Fine-tuning

Continuing training on your own examples so the model internalises a style, a format or a specialised task. It changes how the model behaves by default.

Genuinely useful for consistent tone, reliable adherence to an unusual output schema, domain-specific classification, or compressing a very long prompt into learned behaviour for latency or cost reasons.

The decision tree

  1. Does the model need information it was not trained on? If no, go to step 3. If yes, you need retrieval — continue.
  2. Does that information change? If yes, retrieval is required and fine-tuning cannot substitute. If it is genuinely static and small, a long prompt may suffice.
  3. Is the problem that responses are wrong, or that they are badly shaped? Wrong → retrieval or better context. Badly shaped → prompting first, fine-tuning if prompting plateaus.
  4. Have you exhausted prompting? Including few-shot examples, output schemas and decomposing the task into steps. Most teams have not.
  5. Do you have 500+ high-quality labelled examples? If not, you cannot fine-tune well, and a poorly fine-tuned model is worse than the base model.
  6. Only now consider fine-tuning — and keep retrieval for the facts regardless.

Comparison

PromptingRAGFine-tuning
Adds new knowledgeLimited by contextYesPoorly, and it goes stale
Handles changing factsManuallyNativelyNo — requires retraining
Changes behaviour / formatOften enoughNoYes
Can cite sourcesNoYesNo
Setup costNear zeroModerateHigh
Time to first resultHoursWeeksWeeks to months
Ongoing maintenanceLowModerate — keep the index currentHigh — retrain on drift
Per-call costLowHigher — longer contextLower — shorter prompts
Needs labelled dataA handful of examplesNo500+ quality examples
The combination that covers most enterprise cases

Good prompting plus retrieval, with fine-tuning reserved for a specific, measured behavioural gap. Teams that start with fine-tuning usually end up adding retrieval anyway — having spent a quarter discovering that a model cannot memorise facts that change weekly.

Where RAG goes wrong

Retrieval is the right answer most of the time, but it is not free of failure modes. The ones we see repeatedly:

  • Retrieval quality is the ceiling. If the right passage is not in the top results, no model can recover. Most "the model is bad" complaints are retrieval problems — measure retrieval separately before blaming generation.
  • Naive chunking destroys meaning. Splitting on a fixed token count cuts tables in half and separates headings from content. Chunk on document structure.
  • Vector search alone misses exact terms. Product codes, error numbers and names need keyword matching. Use hybrid search and rerank.
  • Stale corpora produce confident, outdated answers. Removing superseded documents matters as much as adding new ones.
  • Permissions ignored at retrieval time. The most serious failure: the system surfaces content the user cannot otherwise access. Filter by entitlement before ranking, not after.

When fine-tuning genuinely earns its place

  • You need a consistent voice across thousands of generated outputs and prompting drifts.
  • You need reliable conformance to an unusual output schema that prompting does not hold.
  • You have a narrow classification task with abundant labelled data, where a smaller fine-tuned model beats a larger general one on both cost and latency.
  • Your prompt has grown so long that latency or cost has become the binding constraint, and the behaviour can be internalised instead.

In each case, note that the requirement is behavioural. Facts still come from retrieval.

Common questions

Is RAG cheaper than fine-tuning?

Usually, when you count total cost of ownership. Fine-tuning has a one-off training cost plus the recurring cost of retraining whenever your data or the base model changes. RAG has higher per-call cost because the context is longer, but no training cost and far lower maintenance.

The exception is very high call volume with stable behaviour, where a fine-tuned model with short prompts can be cheaper per call at scale. Model the crossover with your actual volumes before deciding.

Can you use RAG and fine-tuning together?

Yes, and for mature systems it is often the best combination. Fine-tune for behaviour — tone, output format, domain-specific reasoning patterns — and use retrieval for facts.

The sequencing matters: build retrieval first and measure it. Only once you can see a specific behavioural gap that prompting will not close should you add fine-tuning, because otherwise you cannot tell which component improved the result.

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

For meaningful behavioural change, 500 to 1,000 high-quality examples is a realistic floor, and quality matters far more than quantity. A hundred carefully constructed examples will outperform ten thousand noisy ones.

If you cannot assemble several hundred examples you are confident are correct, fine-tuning will likely make the model worse. Invest the effort in prompting and retrieval instead.

What is the biggest mistake teams make with enterprise AI?

Treating it as a model selection problem. The model is close to a commodity choice; the system around it is where projects succeed or fail — retrieval quality, data freshness, access control, evaluation and the human review path for cases the system should not decide alone.

A close second is building without an evaluation set. If you cannot measure whether a change made things better, you are not engineering, you are guessing — and you will not notice when a model update quietly degrades your results.

Facing this one yourself?

This is the call we are most often brought in to make with a client — sometimes as a short advisory engagement to pressure-test a decision already half-made, sometimes as the team that goes on to build it. Either way the first conversation costs nothing and is with someone who would be on the engagement.