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.
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.