Back to Insights
RAG ·6 October 2026 ·6 min read

RAG, fine-tuning, or long context: when should you choose each?

RAG, fine-tuning, and long context solve different problems. Learn when to use current, source-backed knowledge, when to shape a model’s behavior, and when to provide documents directly.

For knowledge that changes or that you want to support with citations, RAG is usually the right choice. It retrieves relevant information and provides it to the model so the answer can draw on those sources. Fine-tuning is better suited to teaching a consistent style, format, or task. It is not a good way to keep changing facts up to date.

Long context works when you want to provide a limited amount of text directly to the model for a particular question. For example, you might supply a report that you want summarized. Your choice depends on what you need to change: the knowledge the model can draw on, the model’s behavior, or the information it sees for one question. Often, a combination works best.

What do the three options do?

RAG retrieves information from an external source, such as manuals, internal documents, or web pages. A search step selects passages relevant to the question. The model receives those passages as context and uses them to formulate an answer. Because the source is separate from the model, you can update information by maintaining the source. See RAG explained for more detail.

Fine-tuning adjusts a model using examples so that it follows certain patterns more often. These might include a consistent tone, a preferred answer structure, or a recurring classification task. The model learns behavior and patterns from examples; it does not become a reliable, searchable record of current facts.

Long context means including a relatively large amount of text directly in a question’s input. The model can use that text without a separate retrieval step. The documents remain outside the model: you provide them again whenever you need them.

Facts, behavior, and current information

First ask whether the problem is about facts or behavior. Does the assistant need to know the current version of a procedure, or find an answer in internal documents? RAG is a natural fit. You can update the information without retraining the model, which can make maintenance more straightforward. RAG can also show passages from the source so users can check the answer. This helps, but it does not guarantee that every relevant source will be retrieved or explained correctly.

If you want answers to follow a consistent tone, structure, or method, fine-tuning may help. You can also first try to achieve this with instructions and good examples in the prompt. Fine-tuning requires suitable training examples, evaluation, and model-version management. Adding new facts to the training material does not automatically make those facts current or easy to correct. Read why starting with RAG can make sense before training your own model.

When is long context enough?

Long context is practical when you provide a defined set of texts for each question, such as one contract, policy document, or small case file. You do not need to set up a search index right away, and the user can choose which documents the model should review. This may be enough for a one-off analysis or a simple prototype.

The approach reaches its limits when the text grows, documents contradict one another, or you need to find the right passage across a larger collection. The model may miss relevant details, and longer inputs can require more processing or take longer. You also need to decide what information to include with each question and how to keep it current. How many documents make RAG worthwhile depends on their content, your search needs, and how the system will be used. See how many documents you need for RAG.

Cost, maintenance, and speed

None of the three options is always the cheapest or fastest. Long context is easy to start with, but sending a lot of text with every question requires more processing. RAG requires work on document ingestion, cleanup, search quality, access controls, and source references. In return, it can retrieve only relevant passages instead of sending an entire collection each time.

Fine-tuning requires good examples, a training process, and checks to see whether the desired behavior actually improves. You then need to maintain the adapted model. Which option feels faster depends on factors such as context size, the retrieval step, the model, and the infrastructure. Test with representative questions and documents from real use.

Combining the options and making a choice

The options are not mutually exclusive. You can use RAG for current, source-backed facts and fine-tuning for a consistent answer structure. Long context can also be useful for providing a specific case file or temporary document. Keep the roles clear: RAG supplies sources, fine-tuning shapes behavior, and context provides information for the current question.

A simple decision tree in words: if facts change or users need to see sources, start with RAG. If the main need is a consistent style, structure, or repeatable task, try instructions first and consider fine-tuning afterward. If the question concerns a limited set of text that you can provide directly, use long context. If you have several needs, combine approaches and check whether each step is necessary.

Quick checklist

  • Do the facts change, and should users be able to check the source?
  • Do you need to retrieve knowledge, teach preferred behavior, or provide text for one question?
  • Is the amount of text limited enough to provide directly as context?
  • Can you maintain sources, access controls, and document versions carefully?
  • Have you tested the approach with real questions, including questions the sources cannot answer?
RAG

Which approach fits your knowledge and tasks?

We help you weigh RAG, finetuning and long context for your situation — practical and without invented claims. Curious what that means for your organisation?