Umvix
All posts

RAG vs fine-tuning: which does your business need?

Almost every business asking for a fine-tuned model needs retrieval instead. The difference without jargon, and when fine-tuning genuinely earns its cost.

Umvix Team 6 min read
Share

"We want to train the AI on our data" is one of the most common requests we get, and roughly nine times out of ten the thing being described is not training.

The difference, plainly

Fine-tuning changes the model's weights. You show it thousands of examples of the behaviour you want, and it learns a style, a format, or a task. It does not reliably learn facts, and it cannot be updated without retraining.

Retrieval-augmented generation (RAG) leaves the model alone. When a question arrives, you search your own content for the relevant passages and hand them to the model along with the question. The model answers using text it can see.

The distinction that matters: fine-tuning teaches how to behave. Retrieval provides what to know.

Why most businesses need retrieval

If your goal is "the assistant should know our products, policies, and prices", retrieval wins on every axis:

  • Freshness. Update a document; the next answer reflects it. No retraining, no delay.
  • Citations. You can show which source produced the answer, which is what makes the output trustworthy — and auditable.
  • Access control. Retrieval can respect who is allowed to see what. Fine-tuned weights cannot: whatever went in is available to everyone.
  • Cost. A retrieval pipeline is dramatically cheaper to build and to change.
  • Correctability. A wrong answer is usually a wrong document or a bad chunk — fixable in minutes.

Fine-tuning facts into a model, by contrast, produces something that recites confidently, cannot cite anything, and goes stale the day your prices change.

When fine-tuning is genuinely right

It earns its cost when the problem is behaviour, not knowledge:

  • A consistent voice or format across thousands of outputs, where prompting keeps drifting.
  • A narrow, repetitive classification task where a smaller fine-tuned model is far cheaper per call than a large general one at scale.
  • Structured extraction from messy documents in a specific domain, where examples teach patterns that instructions cannot.
  • Latency or cost ceilings that a small tuned model meets and a large general model does not.

Notice the pattern: fine-tuning is an optimisation, applied after you know exactly what good output looks like — usually after a retrieval system has been running long enough to generate training data.

The order we build in

  1. Prompt engineering first, on a model chosen by evaluation rather than leaderboard. A well-written system prompt with a few examples solves more than people expect, at zero infrastructure cost.
  2. Add retrieval when the assistant needs to know things that live in your content.
  3. Improve the retrieval, not the model. Chunking strategy, hybrid search, and reranking produce bigger gains than any model swap.
  4. Consider fine-tuning only when you have measurable evidence that behaviour, not knowledge, is the limit.

Most projects stop at step three, permanently, and that is a success rather than a shortcut.

Side by side

Retrieval (RAG)Fine-tuning
What it changesWhat the model can seeHow the model behaves
Update costEdit a documentRetrain
Time to first versionDaysWeeks
Typical build cost$10,000 – $40,000$15,000 – $60,000+
Can cite sourcesYesNo
Respects access controlYesNo
Handles new factsImmediatelyOnly after retraining
Per-call costHigher (longer prompts)Lower (shorter prompts)
Fails byRetrieving the wrong passageConfidently inventing

The last row matters most. Retrieval fails visibly and fixably. Fine-tuned recall fails invisibly.

What a retrieval pipeline actually looks like

Worth knowing before you commission one, because the quality lives in the middle steps:

  1. Ingest. Pull content from your docs, CMS, database, and files. Normalise to text with the metadata you will want to filter on later.
  2. Chunk. Split on structure — headings, sections — not on arbitrary character counts. Keep a heading attached to the rule underneath it.
  3. Embed and index. Store vectors alongside keyword search. Postgres with pgvector handles both for most projects, which is why it is our default.
  4. Retrieve hybrid. Vector search for meaning, keyword search for exact terms — product codes, error numbers, policy names. Merge the results.
  5. Rerank. Fetch twenty, rerank, pass five. Consistently the highest-value step and the one most often skipped.
  6. Generate with constraints. Pass the passages, instruct the model to answer only from them, and require citations.
  7. Evaluate. A fixed question set with expected answers, run on every change.

Most of the cost sits in steps 1 and 2. Most of the quality sits in steps 4 and 5.

When you would use both

They are not mutually exclusive, and the combination has a specific shape:

  • Retrieval supplies the facts. Fine-tuning supplies the format. A tuned model that reliably produces your exact output structure, answering from retrieved passages.
  • A small tuned model as a router, deciding which retrieval index to search, with a larger model generating the answer.
  • A tuned classifier upstream — intent detection, routing, or triage — where a small specialised model is far cheaper at volume than a general one.

In each case, fine-tuning is applied after retrieval is working, using data the retrieval system generated. That order is not optional.

Cost and time in practice

RetrievalFine-tuning
Data preparationClean and structure contentBuild a labelled example set
Volume neededYour existing contentHundreds to thousands of examples
Iteration loopMinutesHours to days
Ongoing maintenanceKeep content currentRetrain as behaviour drifts
Where it breaksChunking and rankingData quality and overfitting

The labelled example set is the real barrier to fine-tuning. Teams routinely underestimate it, then produce a few hundred inconsistent examples and conclude fine-tuning does not work.

Common questions

Is RAG cheaper than fine-tuning? To build, almost always. Per call, often not — longer prompts cost more tokens. At high volume a small tuned model can be cheaper to run, which is exactly when fine-tuning starts making sense.

How much content do I need for RAG? There is no minimum. A single well-written FAQ page works. Quality and consistency matter far more than volume — contradictory documents produce contradictory answers.

Can I fine-tune on my documents? You can, and it usually disappoints. The model absorbs style, not reliable facts, and you lose citations and access control. If the goal is "know our content", use retrieval.

Does a bigger context window remove the need for retrieval? No. Stuffing everything into context is expensive, slower, and accuracy degrades as context grows. Retrieval is how you send the right 2,000 words instead of the wrong 200,000 — and it keeps the running cost sane.

How do I know it is working? An evaluation set, run on every change, including questions it should refuse. Without one, "we improved it" is a feeling. The full reliability stack is here.

Where RAG projects actually go wrong

Almost never in the model. Nearly always in retrieval:

  • Chunking that splits meaning. Cutting documents at arbitrary character counts separates a heading from the rule underneath it.
  • Pure vector search. Semantic search alone misses exact terms — product codes, error numbers, policy names. Combine it with keyword search.
  • No reranking. Fetching the top twenty and reranking to five beats fetching five directly.
  • Stale or contradictory sources. If two documents disagree, the model will confidently pick one. Fix your content.
  • No evaluation set. Without a fixed list of questions and expected answers, "we improved it" is a feeling, not a fact.

Retrieval is also what keeps the build cost in the tens of thousands rather than the hundreds.

If you have been told you need a custom-trained model, send us the use case first — we will tell you honestly whether retrieval gets you there for a fraction of the cost.

Keep reading