RAG VS FINE-TUNING
which one fits.
RAG and fine-tuning compared for 2026: what each one fixes, published vendor pricing, upkeep, and a plain rule for choosing between them.
In a
nutshell.
Use RAG when an AI product must answer from your own documents or data that changes; use fine-tuning when the model must behave differently, such as a fixed tone, format or narrow task. Most business products should start with RAG. Fine-tuning needs roughly 100 or more labelled examples, and OpenAI training costs up to $25 per million tokens in 2026.
- RAG changes what a language model knows at answer time; fine-tuning changes how the model behaves.
- AWS guidance recommends starting with RAG for question-answering over your own documents.
- AWS says RAG can take in new documents within minutes, while a fine-tuning run takes a few hours to days.
- Google advises trying prompt design first and fine-tuning only with about 100 or more labelled examples.
- OpenAI stops accepting new self-serve fine-tuning jobs on 15 December 2026, so check provider support before planning a fine-tune.
- Anthropic notes that a knowledge base under about 200,000 tokens (roughly 500 pages) can simply go in the prompt, with no RAG needed.

What is the difference between RAG and fine-tuning?
RAG (retrieval-augmented generation) gives a language model the right documents at the moment it answers, while fine-tuning retrains the model on examples so that its default behaviour changes. RAG changes what the model can see; fine-tuning changes how the model responds.
In a RAG system your content is split into passages, indexed in a search system (usually a vector database), and the most relevant passages are added to the prompt for each question. The model itself is untouched. The approach was named in a 2020 research paper by Patrick Lewis and colleagues, which described combining a model’s built-in knowledge with an external, searchable memory that can be updated and can show where an answer came from.
In fine-tuning you prepare hundreds or thousands of example inputs and ideal outputs, run a training job, and receive a new private version of the model. That version has absorbed patterns from the examples, such as a house writing style, a strict output format or the way to classify a specialist document, but it does not keep a searchable copy of your documents.
| Factor | RAG | Fine-tuning |
|---|---|---|
| What it changes | The information supplied with each question | The model’s own behaviour |
| Best for | Answers from company documents and live data | Consistent tone, format or a narrow repeated task |
| Updating knowledge | Re-index documents; minutes according to AWS | Retrain the model; a few hours to days according to AWS |
| Source citations | Yes, answers can link to the passages used | No, a fine-tuned model does not reference sources |
| Data needed | Your existing documents | About 100 or more labelled examples (Google guidance) |
| Skills needed | Software and search engineering | Data preparation and machine-learning evaluation |
When should you use RAG?
Use RAG when the AI product has to answer from information the base model was never trained on, especially information that changes. Typical examples are support assistants that answer from help-centre articles, internal search over policies and contracts, and sales tools that answer from a product catalogue.
AWS Prescriptive Guidance recommends starting from a RAG-based approach for question-answering over custom documents. Its comparison lists three practical advantages: RAG can incorporate the latest documents in a few minutes, a RAG answer can reference its information source, and grounding the answer in retrieved text reduces the risk of hallucination, meaning confident but invented answers.
RAG also keeps access control simple. Because documents stay in your own index, the system can filter what each user is allowed to retrieve, and deleting a document removes it from future answers straight away. Removing information from a fine-tuned model means training the model again.
- The content changes weekly or daily, such as prices, policies, stock or tickets.
- Users need to see the source of an answer for trust, audit or compliance.
- Different users are allowed to see different documents.
- You have documents but no set of labelled example answers.
- You want to switch to a newer base model later without redoing training.
When should you use fine-tuning?
Use fine-tuning when the problem is how the model behaves rather than what it knows. Fine-tuning suits a narrow, repeated task where good prompts still give inconsistent results: writing in a fixed brand voice, returning a strict structured format, classifying specialist documents, or matching the judgement of your own experts.
Google’s Gemini tuning documentation advises starting with prompt design to find the best prompt, then moving to fine-tuning only if needed. It describes fine-tuning as most effective when you have a sizable labelled dataset, which it puts at 100 examples or more, and when the task is complex or unusual enough that advanced prompting is not sufficient.
Fine-tuning has clear limits. AWS notes that fine-tuned models do not provide a reference to the source in their responses, that hallucination risk can rise when a fine-tuned model is used to answer factual questions, and that fine-tuning is a poor fit when documents change frequently. Fine-tuning also ties you to one base model: when the provider retires that model, the fine-tune has to be repeated on its replacement.
- The task is narrow and repeated thousands of times a day.
- Output must follow one tone or format every time.
- You already hold at least 100 high-quality example inputs and outputs, ideally many more.
- Prompt instructions have become long and still fail on edge cases.
- A smaller, cheaper model could do the job if it were specialised.
How much do RAG and fine-tuning cost in 2026?
The platform fees for both RAG and fine-tuning are small in 2026; most of the cost of either approach is engineering time and ongoing upkeep. OpenAI’s published prices show the pattern. Embedding text for a RAG index costs $0.02 to $0.13 per million tokens, while fine-tuning training costs $3 to $25 per million tokens depending on the model.
A worked example makes the scale clear. Using Anthropic’s rule of thumb that 200,000 tokens is about 500 pages, a 10,000-page knowledge base is roughly 4 million tokens, which costs about $0.52 to embed once with OpenAI’s larger embedding model. A fine-tuning set of 5,000 examples averaging 400 tokens is 2 million tokens; if three training passes are billed, that is 6 million tokens, or about $150 on GPT-4.1.
The running costs differ more. RAG adds retrieved passages to every prompt, so each question uses more input tokens, and the index needs hosting. A fine-tuned model avoids long prompts but is priced higher per token: on OpenAI’s price list, fine-tuned versions cost 1.5 to 2 times the base model’s rate. In TechCirkle’s experience scoping these projects, data preparation and evaluation outweigh the training bill many times over.
| Item | Published price | Applies to |
|---|---|---|
| Embeddings, text-embedding-3-small | $0.02 per 1M tokens | Building a RAG index |
| Embeddings, text-embedding-3-large | $0.13 per 1M tokens | Building a RAG index |
| Hosted file search storage | $0.10 per GB per day, first 1 GB free | Managed RAG storage |
| Hosted file search tool call | $2.50 per 1,000 calls | Managed RAG retrieval |
| Fine-tuning training, GPT-4.1 | $25 per 1M training tokens | Creating a fine-tuned model |
| Fine-tuning training, GPT-4.1 mini | $5 per 1M training tokens | Creating a fine-tuned model |
| Fine-tuned GPT-4.1 usage | $3 input / $12 output per 1M tokens | Base GPT-4.1 is $2 / $8 |
Is fine-tuning still offered by the major AI providers in 2026?
Fine-tuning is still available in 2026, but not from every provider or for every model, so provider support should be checked before a fine-tuning project is planned. The clearest example is OpenAI, which is closing its self-serve fine-tuning platform to new work.
OpenAI’s deprecations page states that from 15 December 2026 no organisation can create new self-serve fine-tuning jobs. The cut-off was originally announced as 6 January 2027 and then brought forward. Access was narrowed in stages during 2026, and OpenAI says existing fine-tuned models can still be used until their underlying base model is retired.
Other routes remain. Google Cloud documents supervised tuning for Gemini models, AWS offers model customisation in Amazon Bedrock, and open-weight models can be fine-tuned on your own infrastructure using methods such as low-rank adaptation (LoRA). AWS’s own guidance still cautions that fine-tuning might not be available for all models. RAG has no such dependency: a RAG system works with any model that accepts text in its prompt.
| Date | What changes |
|---|---|
| 7 May 2026 | Organisations that have never run a fine-tuning job can no longer create one |
| 2 July 2026 | Organisations with no fine-tuned model usage in the past 60 days can no longer create training jobs |
| 15 December 2026 | No organisation can create new self-serve fine-tuning jobs |
| After the cut-off | Existing fine-tuned models keep working until their base model is retired |
Do you need RAG or fine-tuning at all?
Many products need neither RAG nor fine-tuning at the start; a well-written prompt with the right reference material is often enough. Anthropic’s engineering guidance says that if a knowledge base is smaller than about 200,000 tokens, roughly 500 pages, the whole knowledge base can simply be included in the prompt, with no need for RAG.
Prompt caching makes this practical, because the provider stores the long reference text once and charges less to reuse it on later requests. A staff handbook, a product manual or a single contract set fits comfortably inside that limit.
A sensible order of work is therefore: prompt design first, then long-context prompting with your documents, then RAG when the content outgrows the prompt or changes too often, and fine-tuning last, once you have evidence that behaviour rather than knowledge is the remaining problem. Each step costs more to build and maintain than the one before it.
Can you combine RAG and fine-tuning?
Yes. RAG and fine-tuning solve different problems and can be used together: RAG supplies current facts, and a fine-tuned model applies the right tone, format or reasoning style to those facts. AWS describes this as combining the best of both approaches, with the RAG architecture unchanged and a fine-tuned model generating the answer.
Researchers at the University of California, Berkeley formalised one version of this in a method called RAFT (retrieval-augmented fine-tuning), which trains a model to answer from retrieved documents while ignoring retrieved passages that are irrelevant.
Retrieval quality usually deserves attention before any training. Anthropic reported that its contextual retrieval technique reduced failed retrievals by 49%, and by 67% when combined with a reranking step, without changing the model at all. In TechCirkle’s experience a combined build is worth considering only after a RAG system is live and its remaining errors are clearly about style or format rather than missing information.
How do you choose between RAG and fine-tuning for a business product?
Choose between RAG and fine-tuning by asking what is wrong with the base model’s answers today. If the answers lack your facts, use RAG. If the answers have the facts but the wrong style, structure or judgement, consider fine-tuning. If both are true, build RAG first and measure again.
The build effort is also different. As a TechCirkle working estimate, a production RAG pilot over one well-organised document set typically takes 4 to 8 weeks, most of it spent on document preparation, retrieval tuning and testing answers. A fine-tuning project typically takes 6 to 12 weeks, most of it spent collecting and cleaning examples and building an evaluation set. These are planning ranges, not survey figures.
| Use case | Recommended starting point | Why |
|---|---|---|
| Customer support assistant | RAG | Help articles change often and answers should link to them |
| Internal policy or contract search | RAG | Needs citations and per-user access control |
| Product catalogue question-answering | RAG | Prices and stock change daily |
| Brand-voice marketing copy | Fine-tuning, after prompt design | The gap is style, not knowledge |
| High-volume document classification | Fine-tuning a small model | Narrow task where speed and unit cost matter |
| Specialist assistant in a regulated field | RAG first, fine-tuning later if needed | Facts must be current and traceable; tone can be refined afterwards |
| Small, stable knowledge base under 500 pages | Long-context prompt | The content fits in the prompt without retrieval |
Where the
numbers come from.
- AWS Prescriptive Guidance — Comparing Retrieval Augmented Generation and fine-tuning
- OpenAI — API pricing (embeddings, file search and fine-tuning)
- OpenAI — Deprecations: update to self-serve fine-tuning
- Google Cloud — Introduction to tuning for Gemini models
- Anthropic Engineering — Introducing Contextual Retrieval
- Lewis et al. (2020) — Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
- Zhang et al. (2024) — RAFT: Adapting Language Model to Domain Specific RAG
Figures are general market ranges for the stated year, not TechCirkle quotes. Last reviewed 25 November 2026. More guides in the TechCirkle guides library.
Ready to
build it?
Frequently asked
questions.
RAG is usually cheaper to start and to keep up to date, because there is no training run and new documents are simply re-indexed. Fine-tuning has a modest training fee, up to $25 per million tokens on OpenAI in 2026, but needs labelled data and re-training whenever the task or base model changes. At very high volumes on a narrow task, a small fine-tuned model can become the cheaper option per request.
No. Fine-tuning teaches a model patterns from examples; it does not give the model a reliable store of facts to check against. AWS guidance notes there can be an increased risk of hallucination when a fine-tuned model is used to answer questions. RAG is the better tool for factual accuracy because each answer is grounded in retrieved text that can be shown to the user.
Google’s Gemini tuning guidance suggests fine-tuning is most effective with a sizable labelled dataset of 100 examples or more. In practice quality matters more than volume: each example should pair a realistic input with the exact output you want, and the set should cover the edge cases the model currently gets wrong. You also need a separate set of examples kept aside for testing.
Yes. In a RAG system documents stay in an index that you control, and the system can filter results so each user only retrieves what they are permitted to see. Only the passages needed for a question are sent to the model. Businesses with strict requirements can run the index and the model inside their own cloud account, and should confirm the model provider’s data-retention terms.
A vector database stores numerical representations of text, called embeddings, so that passages with a similar meaning to a question can be found quickly. Most RAG systems use one, but it does not have to be a separate product: common databases such as PostgreSQL have vector extensions, and providers offer hosted file search. Small knowledge bases may not need retrieval at all.
A RAG system is updated whenever its documents change, and that update is routine: new or edited content is re-indexed, which AWS says can take a few minutes. A fine-tuned model has to be retrained to learn anything new, which takes a few hours to days per run plus testing, and the fine-tune must be repeated when the provider retires the base model.
Rarely at the beginning. A start-up usually lacks the labelled examples that fine-tuning depends on, and its product is still changing. Prompt design plus RAG reaches a usable product faster and keeps the freedom to switch models as better ones are released. Fine-tuning becomes worth revisiting once there is real usage data showing a specific, repeated behaviour the base model keeps getting wrong.