RAG or fine-tuning: how to choose for company knowledge
Use retrieval-augmented generation (RAG) when the AI must answer from your own documents and data, especially when that information changes or access to it is restricted. Use fine-tuning when you need the model to follow a consistent style, format or narrow task that prompting cannot achieve. For company knowledge, RAG is almost always the starting point, and fine-tuning is an optional later step.
What each one does
RAG leaves the model unchanged. When a question arrives, the system searches your documents, passes the most relevant passages to the model, and asks it to answer from them with citations. Fine-tuning changes the model itself by training it further on examples, so the behaviour is built in.
Why RAG fits company knowledge
Company knowledge has three properties that favour retrieval.
- It changes. A new policy or price takes effect the moment the document is indexed. A fine-tuned model would need retraining.
- It is restricted. Retrieval can respect who is allowed to see which document. Knowledge trained into a model is available to everyone who uses it.
- It needs sources. A RAG answer can link each claim to the passage it came from, which is what lets a person check it.
When fine-tuning earns its cost
Fine-tuning is worth considering when the task is narrow and repeated at high volume: classifying tickets into your own categories, writing in a strict house format, or extracting fields from a document type the base model handles poorly. It can also allow a smaller, cheaper model to do a job that otherwise needs a larger one. It requires hundreds to thousands of good examples and a way to measure the result.
What decides quality in a RAG system
Most weak RAG systems fail at retrieval, not at the model. The parts that matter are how documents are split, whether search combines keywords with meaning, whether results are re-ranked, and whether the system admits when it found nothing relevant. Score retrieval and answer quality separately, so you know which one to fix.
A sensible order of work
Start with good prompting and RAG over a small, clean set of documents. Build an eval set of real questions. Improve retrieval until the right passage is found reliably. Only then ask whether a remaining gap in tone, format or cost justifies fine-tuning.
Common questions
Is RAG cheaper than fine-tuning?
Usually at the start, because there is no training run and documents can be updated without retraining. At very high volume a fine-tuned smaller model can be cheaper per request, so the answer depends on scale.
Can we use both?
Yes. A common pattern is a model fine-tuned for format or tone that still retrieves current facts through RAG.
Does RAG stop the model inventing answers?
It reduces the risk but does not remove it. Add a grounding check that confirms each claim is supported by a retrieved passage, and send unsupported answers to a person.