Home / Blog / RAG or fine-tuning

RAG or fine-tuning? Choosing the right method for enterprise knowledge needs

Short answer: If the model needs to answer on the basis of an organisation's current documents, the right method is RAG (retrieval-augmented generation). If the model needs to produce consistent output in a particular format, in a particular tone or in the language of a narrow domain, fine-tuning comes into consideration. Most organisations start with prompt and context design and then add RAG; fine-tuning is the last step, reserved for format and behaviour problems that these two cannot solve.

“Let's train the model on our own data” is a sentence heard very often in enterprise AI projects. Most of the time what is actually meant is not training but having the model answer from the organisation's documents. Confusing these two needs leads to unnecessary cost and to knowledge going out of date. In this article we separate the three methods and show which problem each one solves.

Three methods, three different jobs

Prompt and context design. This means steering the model's behaviour through the system prompt, examples and the context provided, without touching its weights. It is the fastest and cheapest method; it is the starting point of every project.

RAG (Retrieval-Augmented Generation). When a question arrives, the relevant document passages are first retrieved from the organisation's knowledge base and the model generates its answer based on those passages. The knowledge lives in the documents rather than inside the model; when a document changes, only the knowledge base is updated.

Fine-tuning. The model's weights go through additional training on the organisation's example data. In enterprise use today this is mostly done with parameter-efficient methods such as LoRA and QLoRA: the model's base weights are frozen while small adapter matrices added to the existing layers are trained.

Which method for which need?

NeedRight methodWhy
Accurate answers to questions on current procedures, regulations and policiesRAGThe knowledge stays in the document and is reindexed when it changes
Showing the source document and page in the answerRAGThe retrieved passage comes with its source
Answers drawn only from documents the user is authorised to seeRAG with permission-aware retrievalPermissions are applied at query time
Output with the same structure every time (for example JSON with specific fields)Prompting and structured output first, fine-tuning if that is not enoughFormat is behaviour, not knowledge
A particular correspondence style or reporting languagePrompting, fine-tuning if that is not enoughA behaviour taught through examples
Dense terminology of a narrow domainRAG with an organisational glossary, fine-tuning if neededTerm definitions can be kept in documents
Repetitive narrow tasks such as classification or routingFine-tuningA small model can become consistent and fast at this job
New events the model does not know aboutRAGFine-tuning does not reliably add new knowledge

Why do organisations usually start with RAG?

Enterprise knowledge changes constantly. When a procedure is updated, RAG indexes the new document and uses it from the very next question. Knowledge taught through fine-tuning, by contrast, stays out of date until the model is retrained.

The second reason is verifiability. A RAG answer can show which document it is based on; users and auditors can open the source and check it. Knowledge learned through fine-tuning is spread across the model's weights and its source cannot be shown.

The third reason is permissions and data protection. In RAG, deleting a document from the knowledge base stops that information from being used in answers. Information that enters training data, however, remains in the model; research shows that language models can memorise part of their training data and that this data can be extracted. Fine-tuning on records containing personal data therefore calls for a separate risk assessment; reliably removing a piece of information from a model after the fact is still not a solved problem.

When does fine-tuning really pay off?

Fine-tuning is not a bad method; it only becomes expensive when it is used for the wrong job. It creates value in the following situations:

The costs of fine-tuning should also be understood from the outset: preparing clean and representative training data takes time; training may need to be repeated with each new base model version; fine-tuning for a narrow task can reduce the model's ability on other tasks; fine-tuning an aligned model can also weaken its safety behaviour. That is why both task performance and safety behaviour are tested again after fine-tuning.

A recommended decision sequence

  1. Start with prompt and context. Clarify the system prompt, the examples and the output format.
  2. Build an evaluation set. Prepare a test set made up of the organisation's real questions and the answers expected. Without this set you cannot measure which method works.
  3. Add RAG. Chunk the documents, index them with an embedding model, generate answers with citations; apply permission rules at query time.
  4. Separate the errors. Do the remaining errors come from missing knowledge (wrong or incomplete retrieval) or from behaviour (format, tone, task consistency)? Knowledge errors are fixed on the retrieval side.
  5. If a behaviour problem remains, fine-tune. Start with LoRA or QLoRA and measure against the evaluation set before and after.

In many enterprise systems the outcome is to use both together: a fine-tuned model for format and task, RAG for knowledge.

Frequently asked questions

Does fine-tuning reduce hallucination?
It is not a reliable method for factual accuracy. Grounding answers in the organisation's documents and citing sources is a more effective way to reduce hallucination.
Do our documents go into the model with RAG?
No. The documents stay in the knowledge base; the model only sees the passages retrieved at question time and its weights do not change.
How much data does fine-tuning need?
It depends on the task, the model and the method. What matters more than quantity is that the data is clean, consistent and representative of real use; the result should always be measured against an evaluation set.
Can a model that runs inside the organisation be fine-tuned?
Yes, for open-weight models. It should be confirmed that the licence permits modification and that there is enough GPU capacity for training.
Is RAG still needed now that there are models with long context windows?
For a small number of fixed documents, a long context window may be enough. In large archives, giving the model every document with every question increases latency and processing load; research has also shown that information in the middle of a long context is used less effectively. RAG also shows the source of the answer and makes it possible to restrict access to documents according to the user's permissions.

Related glossary terms

RAG, Fine-tuning, LoRA, QLoRA, Parameter-efficient fine-tuning, Context engineering, System prompt, Structured output, Permission-aware retrieval, Grounding, Hallucination, Catastrophic forgetting, AI memorisation, Machine unlearning

Sources

Want to build a system that gives accurate answers from your organisation's documents?

Tell us which documents and which questions you will be working with; let's work together on the evaluation set, the retrieval architecture and any fine-tuning plan that may be needed.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.