What is the real difference?
Retrieval-augmented generation (RAG) hands the large language model (LLM) your documents at answer time, while fine-tuning retrains it on good examples.1,2 RAG is the cheaper way to add new data.4 The choice turns on the problem: missing facts need RAG, and inconsistent format needs fine-tuning.3
What does each approach cost?
Fine-tuning costs from $1.49 to $25.00 per 1M training tokens, while managed RAG storage starts at $5.00 per GB a month.10,12
Prices are vendor list prices, read 28 Nov 2026.10,12,11 A token is a small piece of text; 200,000 tokens is about 500 pages.5 Fine-tuning charges for training and for every answer, and RAG charges for storing and searching your documents.10,12
| Option | What it does | Price, read 28 Nov 2026 | Worth knowing |
|---|---|---|---|
| OpenAI fine-tuning, gpt-4.1 | Retrains the model on your examples. | $25.00 per 1M tokens of training, then $3.00 per 1M input and $12.00 per 1M output.10 | Closed to new users.10,13 |
| OpenAI fine-tuning, gpt-4.1-mini | Retrains a smaller, cheaper model. | $5.00 per 1M tokens of training, then $0.80 per 1M input and $3.20 per 1M output.10 | Existing customers can train until 15 Dec 2026.13 |
| AWS Bedrock fine-tuning | Retrains an open model such as Meta Llama 2. | $1.49 per 1M tokens trained for the 13B model, $7.99 for the 70B model.12 | Add $1.95 per custom model per month for storage.12 |
| OpenAI file search | Searches your files and hands the best passages to the model. | $0.10 per GB per day, with 1 GB free, plus $2.50 per 1,000 calls.10 | Works only through OpenAI's Responses application programming interface (API).10 |
| AWS Bedrock Managed Knowledge Base | Stores your documents and retrieves passages on request. | $5.00 per GB of raw data per month, plus $1.00 per 1,000 standard retrieval calls.12 | Embeddings cost $0; you pay for what you store and retrieve.12 |
| Pinecone vector database | Holds your document index for fast search. | Free Starter plan; Builder $20 a month; Standard $50 a month minimum; Enterprise $500 a month minimum.11 | Pinecone calls its usage examples illustrative and subject to change.11 |
What do published studies say about the two?
Studies find RAG beats fine-tuning at adding facts.6 Legal tools built on RAG still hallucinated 17% to 33% of the time.16
Three studies and one practitioner paper test the two approaches directly.6,7,8,16 Two find that fine-tuning learns new facts poorly.6,7
| Study | What it tested | Result | Worth knowing |
|---|---|---|---|
| Ovadia et al., 2023 | Added knowledge by fine-tuning versus by retrieval. | RAG consistently outperformed unsupervised fine-tuning, for old and new knowledge.6 | Models struggle to learn new facts through unsupervised fine-tuning.6 |
| Gekhman et al., 2024 | Fine-tuned on facts the model did not already know. | New-fact examples were learned more slowly and then raised the tendency to hallucinate.7 | Models gain most facts in pre-training; fine-tuning mainly teaches them to use those facts.7 |
| Zhang et al., RAFT, 2024 | Fine-tuned a model to work with retrieved documents. | Retrieval Augmented FineTuning (RAFT) improved results on PubMed, HotpotQA and Gorilla datasets.8 | The abstract gives no percentage.8 |
| Magesh et al., 2024 | Tested three legal research tools built on RAG. | Each hallucinated between 17% and 33% of the time, less than a general-purpose model.16 | RAG lowers errors but does not remove them.16 |
How do they differ in speed, staffing and sources?
RAG updates in a few minutes and can cite its source, while fine-tuning takes a few hours to days and cannot.9
AWS, a vendor that sells both, compares the two on the points a head of operations feels first.9
| Question | Fine-tuning | RAG |
|---|---|---|
| How long to update? | A few hours to days.9 | A few minutes for the latest documents.9 |
| Who builds it? | Might need a data scientist.9 | Managed RAG on AWS needs no specialized machine-learning knowledge.9 |
| Can it cite its source? | No, fine-tuned models give no reference to the source.9 | Yes, it points to the source of the information.9 |
| Where is it weak? | Facts that change often.2 | Summaries of whole documents.9 |
Which one fits your team?
Pick RAG for a firm with many changing documents, prompt-stuffing for under about 500 pages, and fine-tuning only for a fixed format problem.5,3
1. A small team with a short document set
Pick this when all your reference material fits in one request, under 200,000 tokens, which is about 500 pages.5 No search system is needed.
- Ops leadGather the policies and guides the team asks about, and check they fit in 500 pages.
- Ops leadPaste them into the assistant's instructions, with a note to answer only from them.
- TeamAsk questions and mark any wrong answer.
- Ops leadUpdate the documents when a policy changes.
Cost: No search service to buy. Prompt caching, which reuses the repeated text, can cut costs by up to 90%, per Anthropic.5
2. A mid-size firm with many documents
Pick this when your files are too big for one request and change often. This is managed RAG.14,9
- Ops leadChoose the document set and who may see which files.
- IT lead or IT vendorSplit the documents into chunks, embed them (turn each into numbers a search can match), and store them in a search index.14
- Ops leadWrite a set of test questions with known answers before launch, and start with one team's documents.
- Controller or department headReview a sample of answers each week and check the cited passage.
- Ops leadRe-test after every change to the documents or the model.
- General manager (GM) or department headRun it with one team or site first, and widen it when the test questions pass.
Cost: Managed storage runs $5.00 per GB of raw data a month, plus $1.00 per 1,000 retrieval calls on AWS Bedrock.12 Pinecone starts at $50 a month for its Standard plan.11
3. A team with a fixed format or tone problem
Pick this when the model has the facts but answers in the wrong format, style or structure.3 This is fine-tuning, and OpenAI no longer takes new customers for it.13
- Ops leadCollect 50 good example answers in the format you want.13
- Data ownerHold back a separate test set and write the pass mark before training.2
- Data scientist or vendorRun the training job on a platform that still offers it.
- Data ownerCompare the result with your current prompt on the held-out test set, then sign off or stop.2
Cost: AWS Bedrock charges $1.49 per 1M tokens trained for a 13B Llama 2 model, plus $1.95 per custom model per month.12 Budget for repeated runs, evaluation and hosting.2
Where does your team stay in charge?
Your ops lead decides what the model may see, and a named data owner checks results and signs off, because validation continues after launch.4,15
- The ops lead decides which documents the model may see, and the head of the team that uses the answers reviews a sample. AWS says developers keep control of the information and can restrict it by user permissions.4
- A data owner picks the test set and signs off the result. Microsoft says to separate training, validation and final test data.2
- The team that uses a RAG system keeps checking its answers after launch. A study of three case studies found validation is only feasible during operation.15
- The firm assigns a named owner to each stage of the voluntary NIST AI Risk Management Framework: Govern, Map, Measure and Manage.19
How often do employers ask for RAG versus fine-tuning?
RAG and retrieval is named by 360 employers in AI job ads, against 197 for fine-tuning and post-training.18
We counted skills named in 2,046 US AI and machine-learning job ads from 1,172 employers, posted 21 to 25 Nov 2026.18 RAG and retrieval appear at 360 employers, and fine-tuning and post-training at 197.18 By our math, that is about 1.8 times as many employers for RAG.18
| Skill named in the ad | Employers | Share of 1,172 employers |
|---|---|---|
| RAG and retrieval18 | 36018 | 30.7%18 |
| Fine-tuning and post-training18 | 19718 | 16.8%18 |
| LangChain or LangGraph, two tools for building RAG and agent apps18 | 21018 | 17.9%18 |
| LlamaIndex, a tool for connecting models to documents18 | 6718 | 5.7%18 |
Source: Zavient job-ad count at /data.html, ads posted 21 to 25 Nov 2026, pulled 25 Nov 2026. We count distinct employers, and leave out a model maker's own ads for its own model. Ads name skills employers want, not what firms run; one ad can name both, and the 1.8 ratio is 360 divided by 197.
What does each look like in practice?
In an illustrative case, RAG answers a policy question from the current manual and quotes the page, so the ops lead can check it.14,9
| Goes in | Comes out |
|---|---|
| Illustrative case: a 120-person distributor asks, "What is our return rule for damaged pallets?" The answer lives in a 300-page policy manual that changes each quarter. | With RAG, the system searches the manual and hands the top passages to the model. The reply quotes the current page, so the ops lead can check it.14 With fine-tuning alone, the model would answer from its training and could not point to the page.9 |
Illustrative example.
What do teams get wrong when they choose?
Teams expect fine-tuning to teach new facts, treat RAG as finished at launch, and skip the baseline test, which studies and vendors warn against.6,15,2
- Teams expect fine-tuning to teach new facts. Studies find the model learns them poorly, so put facts in RAG and keep fine-tuning for style.6,7
- Teams assume RAG ends made-up answers. Three legal research tools built on it still hallucinated 17% to 33% of the time, so keep a person checking.16
- Teams treat RAG as set-and-forget. Its robustness evolves after launch, so schedule weekly answer reviews.15
- Teams skip the baseline. Microsoft says benefits aren't guaranteed, so compare against your current prompt on held-out data before you pay.2
- Teams build on a fine-tune the vendor is retiring. OpenAI closed fine-tuning to new users, and gpt-4.1 snapshots shut down 14 Jan 2027, so check shutdown dates first.13
- Teams use RAG to summarize whole documents. AWS says RAG does not work well there, so test that job on its own.9
Questions buyers ask before they choose
Is RAG cheaper than fine-tuning?
Yes, usually, because AWS calls RAG a more cost-effective way to add new data and says retraining a model is costly.4
Can you use both fine-tuning and RAG?
Yes, because OpenAI says the techniques stack on top of each other, and the RAFT study trains a model to work with retrieved documents.3,8
How long does it take to update each one?
RAG takes a few minutes to take in new documents, while fine-tuning takes a few hours to days.9
Should you buy a tool or build your own?
Buy a managed RAG service unless your data is your edge, because 76% of U.S. enterprise AI decision-makers' use cases were purchased in 2025.17
Buy: Buy a managed RAG service when you have no machine-learning team and your documents are standard business files. Menlo Ventures surveyed 495 U.S. enterprise AI decision-makers: 76% of AI use cases were purchased in 2025, up from 53% in 2024.17 Managed storage starts at $5.00 per GB a month on AWS Bedrock.12
Build: Build your own only when your data is the edge and you need control over the rules. Menlo found fine-tuning is niche and used mainly by frontier teams.17 Microsoft adds that its benefits aren't guaranteed and must be tested against a baseline.2
When should you pick neither?
Pick neither when your documents fit in one prompt, a better prompt solves it, or the data sits in tables.5,17,12
- A short document set: put it all in the prompt instead. Anthropic says a knowledge base under 200,000 tokens needs no RAG.5
- A simple task: better prompts alone may be enough. Menlo says prompt design remains the dominant technique, with fine-tuning still niche.17
- Questions over tables of numbers: use a database query instead. AWS lists structured data retrieval, which writes a query per request, apart from document retrieval.12
- Summaries of whole documents: consider fine-tuning instead, as AWS suggests for tasks such as summarization.9
Useful resources
- Microsoft: Design and develop a RAG solution: A free step-by-step guide to chunking, embedding and testing a RAG system.
- OpenAI: Optimizing LLM accuracy: Explains when a problem calls for better context and when it calls for a changed model.
- AWS: Comparing RAG and fine-tuning: A side-by-side table of speed, staffing and sourcing for the two approaches.
- NIST AI Risk Management Framework: A free, voluntary checklist for assigning owners to AI risks.
Key numbers on this page
| Number | What it measures |
|---|---|
| 30.7% | of 1,172 employers name RAG and retrieval in AI job ads, against 16.8% for fine-tuning.18Zavient job-ad count, 21 to 25 Nov 2026 |
| 76% | of AI use cases were bought rather than built in 2025, in a survey of 495 U.S. enterprise AI decision-makers.17Menlo Ventures, 2025 |
| 17% to 33% | is how often three legal research tools built on RAG hallucinated.16Magesh et al., 2024 |
| $25.00 | per 1M training tokens for gpt-4.1 fine-tuning, a service closed to new users.10OpenAI pricing, read 28 Nov 2026 |
| $50 | a month is the Pinecone Standard plan minimum for a vector database.11Pinecone pricing, read 28 Nov 2026 |
Sources
Show all 19 sources
| # | Source | What it says |
|---|---|---|
| 1 | Lewis et al., Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (arXiv) | The 2020 paper that named RAG: it combines pre-trained parametric and non-parametric memory for language generation, using a dense vector index of Wikipedia accessed with a pre-trained neural retriever. |
| 2 | Microsoft Learn, Training in Microsoft Foundry | Page dated 2026-11-13: fine-tuning adjusts the model's weights rather than adding examples to each prompt, and doesn't replace retrieval for current information. Benefits aren't guaranteed; held-out evaluation compares the fine-tuned model with your baseline. Separate training, validation and final test data. It adds training and hosting costs; budget for repeated runs, grading, evaluation, hosting and inference. An adapter isn't interchangeable across similarly named base models. |
| 3 | OpenAI, Optimizing LLM accuracy (vendor docs) | Vendor rule of thumb: optimize context when the model lacks knowledge, its knowledge is out of date, or it needs proprietary information; optimize the model when it produces inconsistent results with incorrect formatting. These techniques stack on top of each other. |
| 4 | AWS, What is Retrieval-Augmented Generation (vendor docs) | Vendor statement: RAG is a more cost-effective approach to introducing new data to the LLM; the computational and financial costs of retraining foundation models for organization or domain-specific information are high. Developers keep control over which information the model can draw on and can restrict access based on user permissions. |
| 5 | Anthropic, Introducing Contextual Retrieval (vendor blog) | Vendor blog posted September 19, 2024: RAG retrieves relevant information from a knowledge base and appends it to the user's prompt. A knowledge base smaller than 200,000 tokens, about 500 pages, can go straight in the prompt with no RAG; prompt caching can reduce costs by up to 90%. |
| 6 | Ovadia et al., Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs (arXiv) | Submitted 10 December 2023: RAG consistently outperforms unsupervised fine-tuning, both for existing knowledge encountered during training and entirely new knowledge; LLMs struggle to learn new factual information through unsupervised fine-tuning. |
| 7 | Gekhman et al., Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations? (arXiv) | Submitted 9 May 2024 (EMNLP 2024): fine-tuning examples that introduce new knowledge are learned significantly slower, and once learned they linearly increase the model's tendency to hallucinate; models acquire most factual knowledge during pre-training, and fine-tuning mainly teaches them to use it more efficiently. |
| 8 | Zhang et al., RAFT: Adapting Language Model to Domain Specific RAG (arXiv) | Submitted 15 March 2024: Retrieval Augmented FineTuning (RAFT) trains the model on questions paired with relevant and distractor documents, and consistently improves performance across PubMed, HotpotQA and Gorilla datasets. The abstract gives no percentage. |
| 9 | AWS Prescriptive Guidance, Comparing Retrieval Augmented Generation and fine-tuning (vendor docs) | Vendor comparison: fine-tuning can take a few hours to days; RAG can incorporate the latest documents in a few minutes. Fine-tuning might require a data scientist; RAG on AWS needs no specialized machine-learning knowledge. Fine-tuned models do not provide a reference to the source; RAG provides a reference to the information source. RAG does not work well when summarizing information from entire documents. The two can be combined. |
| 10 | OpenAI API pricing (vendor price page) | Read 28 Nov 2026. Fine-tuning, standard, per 1M tokens (training / input / output): gpt-4.1 $25.00 / $3.00 / $12.00; gpt-4.1-mini $5.00 / $0.80 / $3.20. The page states fine-tuning is closed to new users. File search: storage $0.10 per GB per day, with 1 GB free; tool call $2.50 per 1,000 calls (Responses API only). |
| 11 | Pinecone pricing (vendor price page) | Read 28 Nov 2026. Starter is free; Builder $20 a month flat; Standard $50 a month minimum; Enterprise $500 a month minimum. The page calls its examples illustrative and subject to change. |
| 12 | AWS Bedrock pricing (vendor price page) | Read 28 Nov 2026. Fine-tuning: Meta Llama 2 Pretrained 13B $1.49 per 1M tokens trained, 70B $7.99 per 1M tokens trained; custom model storage $1.95 per custom model per month. Managed Knowledge Base: index storage $5.00 per GB of raw data per month; embeddings generation $0; Standard Retrieval $1.00 per 1,000 API calls; you pay only for what you store and retrieve. Structured Data Retrieval, which generates a query per request, is listed as a separate feature. |
| 13 | OpenAI, Supervised fine-tuning guide (vendor docs) | Read 28 Nov 2026. The minimum number of examples for fine-tuning is 10; OpenAI recommends starting with 50 well-crafted demonstrations and evaluating the results. Best for classification, specific output formats and correcting instruction-following failures. The platform is no longer accessible to new users; eligible existing customers can create training jobs until December 15, 2026; gpt-4.1 and gpt-4.1-mini April 2025 snapshots shut down January 14, 2027. |
| 14 | Microsoft Learn, Design and Develop a RAG Solution on Azure | Page dated 2025-12-17: a RAG pipeline chunks, enriches, embeds and persists documents in a search index; at question time an orchestrator searches the index, packages the top results with the query as context and sends them to the language model. Evaluate each step. |
| 15 | Barnett et al., Seven Failure Points When Engineering a Retrieval Augmented Generation System (arXiv) | Experience report on three case studies (research, education, biomedicine), submitted January 11, 2024: validation of a RAG system is only feasible during operation, and its robustness evolves rather than being designed in at the start. |
| 16 | Magesh et al., Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Tools (arXiv) | Submitted May 30, 2024: three RAG-based legal research tools each hallucinate between 17% and 33% of the time, though less than general-purpose GPT-4. The abstract gives one combined range, not a rate per tool. |
| 17 | Menlo Ventures, 2025: The State of Generative AI in the Enterprise (investor report) | Survey of 495 U.S. enterprise AI decision-makers, November 7-25, 2025: 76% of AI use cases are purchased rather than built internally in 2025, versus 47% built internally and 53% purchased in 2024. Prompt design remains the dominant technique, followed by RAG; fine-tuning and other methods are still niche and used primarily by frontier teams. |
| 18 | Zavient job-ad count | Read 28 Nov 2026. 2,046 US AI and machine-learning job ads from 1,172 employers, posted 21 to 25 Nov 2026 (3,000 pulled, 2,046 kept). Distinct employers counted: RAG and retrieval 360 (30.7%); fine-tuning and post-training 197 (16.8%); LangChain / LangGraph 210 (17.9%); LlamaIndex 67 (5.7%). By our math, RAG is named by about 1.8 times as many employers as fine-tuning. |
| 19 | NIST AI Risk Management Framework | A voluntary framework released January 26, 2023 that names four functions: Govern, Map, Measure and Manage. |
Related: LLM fine-tuning help: what should you walk away with? · LLM evaluation: what should you walk away with? · Build vs buy AI: which should your firm do for each workflow? · Generative AI vs predictive AI: which does your workflow need? · AI document processing: how accurate is it on financial documents?