AI ENGINEERING · LLM STRATEGY

RAG vs Fine-Tuning: Which Does Your Business Data Need?

Most teams asking for a fine-tuned model actually need retrieval. Here is how we decide between RAG, fine-tuning, or both when a business wants an LLM to work with its own data.

Hussain Saifuddin

Chief Executive Officer (CEO)

Nov 17, 2026 9 min read

💡 Key Takeaways & Architecture Summary

  • RAG changes what the model knows at answer time. Fine-tuning changes how the model behaves. They solve different problems.
  • If the data changes weekly, needs citations, or differs per customer, retrieval is the right starting point.
  • Fine-tuning earns its cost for narrow, high-volume tasks with a fixed output format and hundreds of clean examples.
  • Build an evaluation set of real questions before choosing. It is the only way to know which approach is actually better for your data.

Two Different Tools for Two Different Problems

Retrieval-augmented generation (RAG) and fine-tuning are often presented as competing ways to teach an LLM about your business. They are not. RAG leaves the model untouched and hands it the relevant documents at the moment a question is asked. Fine-tuning leaves your documents out of the prompt and instead adjusts the model's weights on examples of the behaviour you want. One changes what the model can see. The other changes how the model responds. Picking the wrong one is the most common reason an AI project stalls after a promising demo.

When RAG Is the Right Answer

Choose retrieval when the knowledge lives in documents that change: policies, product catalogues, contracts, support tickets, case law. A RAG pipeline indexes those documents into a vector store, finds the passages closest to the user's question, and passes them to the model with an instruction to answer only from what it was given. Updating the system means re-indexing a document, not retraining a model. Answers can cite the exact source passage, which matters in legal, finance, and healthcare. Access control is also straightforward, because you filter what gets retrieved per user or per tenant before the model ever sees it. This is the pattern behind the legal research assistant we built on a Qdrant collection of US case law.

When Fine-Tuning Is the Right Answer

Choose fine-tuning when the problem is behaviour, not knowledge. Typical cases are classifying incoming messages into your own categories, extracting fields into a strict JSON schema, or writing in a house style that a prompt cannot hold consistently. These tasks share three traits: the input and output shape is stable, volume is high enough that a smaller tuned model saves real money, and you can collect a few hundred to a few thousand clean examples. Fine-tuning does not reliably teach a model facts. A model tuned on your product manual will sound like your product manual and still get specific details wrong, with no source to check against.

A Decision Checklist We Use With Clients

Four questions settle most cases. Does the information change more often than once a quarter? Use RAG. Does the user need to see where an answer came from? Use RAG. Must different users see different data? Use RAG. Is the task one narrow operation repeated thousands of times a day with a fixed output format? Consider fine-tuning. If none of these apply strongly, start with a well-written prompt and a current frontier model before building anything. A surprising number of projects end there.

typescriptCode Snippet
type Signals = {
  dataChangesOften: boolean;
  needsCitations: boolean;
  perUserAccess: boolean;
  narrowHighVolumeTask: boolean;
  hasLabelledExamples: boolean;
};

export function recommendApproach(s: Signals) {
  const retrieval = s.dataChangesOften || s.needsCitations || s.perUserAccess;
  const tuning = s.narrowHighVolumeTask && s.hasLabelledExamples;

  if (retrieval && tuning) return "RAG for knowledge, fine-tuned model for the narrow step";
  if (retrieval) return "RAG";
  if (tuning) return "Fine-tuning";
  return "Prompt engineering on a frontier model first";
}

Cost and Maintenance Are Where the Choice Shows Up

RAG costs more per request, because every call carries retrieved context, and it adds infrastructure to run: an ingestion job, an embedding model, a vector database, and usually a re-ranker. Its maintenance is mostly data hygiene. Fine-tuning moves the cost up front into dataset preparation and training, then lowers the per-request price with shorter prompts and a smaller model. Its maintenance is re-training every time the task definition or the base model changes. Teams tend to underestimate the second kind. A tuned model is a snapshot, and the business it was trained on keeps moving.

Using Both Together

Production systems often combine them. A small fine-tuned model routes or classifies the request, retrieval pulls the relevant records, and a larger general model writes the final answer from that context. Each part does the one thing it is good at. The mistake is starting with the combined architecture. Ship retrieval first, measure where it fails, and add a tuned component only for the step where the measurements show a prompt is not enough.

Evaluate Before You Commit

Before choosing, write down fifty to a hundred real questions your users will ask, together with the answers a domain expert would accept. Run a plain prompt, a basic RAG pipeline, and if relevant a tuned model against that set and score the results. This takes days, not months, and it replaces opinion with evidence. It also becomes the regression test you run every time a document set, a prompt, or a model version changes, which is what keeps an AI feature reliable after launch.

Tags:
#RAG
#Fine-Tuning
#LLM
#Vector Search
#AI Strategy
#AI Integration

Related Engineering Articles

AI ENGINEERING · LLM STRATEGY

Claude Opus 5.5 vs Fable 5.1: Which Model Should Power Your Product?

Anthropic now ships two frontier tiers with the same 1M-token context window and very different price tags. Here's how we decide between Claude Opus 5.5 and Claude Fable 5.1 for client builds, and why most production traffic doesn't need the top tier.

IOT · AI ENGINEERING

AI at the Edge: Running Inference on Hardware You Don't Control

An NFC smart stand or a plant-floor tablet doesn't have a GPU and can't always reach the cloud. Here's how we decide what runs on-device, what stays server-side, and what fails gracefully when the connection drops.

Let's scope your first AI workflow

A 30-minute call, a shortlist of automations, and an honest estimate of what they're worth.