
Services
When should you invest in fine-tuning versus a RAG pipeline? A practical decision framework with cost benchmarks, real-world examples, latency trade-offs, and a flowchart that gets to the right answer in under a minute.

Almost every founder I talk to asks the same question: "Should we fine-tune a model on our data?" It is the wrong first question, and it is why so many RAG vs fine-tuning debates go in circles. The right first question is "what kind of problem are we solving - a knowledge problem or a behavior problem?" This guide is the decision framework I use with paying clients to answer it in under five minutes.
Use RAG when the model needs new information. Use fine-tuning when the model needs new behavior. Use both only when you have proven RAG alone is not enough.
Foundation models have improved dramatically - GPT-5, Claude 4 Opus, and Gemini 3 Pro all ship with 1M+ token context windows and dramatically better reasoning than 2023-era models. That means the threshold where fine-tuning beats RAG has shifted significantly. According to Anthropic's 2026 evaluation report, RAG with strong retrieval beats fine-tuning on roughly 85% of business workloads tested - up from about 60% in 2024.
The cost of picking wrong is real. A failed fine-tuning project burns 4-8 weeks of engineering, $10k-$50k in compute, and an opportunity cost of features you could have shipped on RAG.
Retrieval-Augmented Generation gives a general-purpose model access to your specific data at query time. You chunk and embed your documents, store them in a vector database, and at inference you pull the most relevant chunks into the prompt.
Fine-tuning modifies the model's weights based on your training data. The model learns to behave differently - to speak in your tone, follow your output format, or specialize in a narrow task at higher accuracy than the base model.
| Dimension | RAG | Fine-Tuning |
|---|---|---|
| Best for | New information | New behavior |
| Time to v1 | 1-3 weeks | 4-12 weeks |
| Upfront cost | Under $1k | $5k-$50k |
| Per-query cost | Base LLM cost | Often 30-60% cheaper |
| Latency overhead | +100-400ms retrieval | None |
| Updates when data changes | Instant | Requires re-training |
| Citations and traceability | Yes | No |
| Team skill required | Backend engineer | ML engineer |
A founder asked me whether to fine-tune Llama-3 on their support history. The actual problem: customers asked about features and pricing the base model did not know. We shipped RAG over their docs, pricing pages, and recent product changelog in 11 days. Quality hit acceptable thresholds in week one. Total cost: roughly $400 upfront and $0.04 per resolved ticket. They never needed to fine-tune.
Different client - they needed every output to follow a strict 14-clause legal structure with specific phrasing requirements. We built RAG first, but the model wandered from the structure on roughly 12% of generations - unacceptable for the use case. Fine-tuned a Mistral-7B variant on 1,400 hand-labeled examples. Format compliance jumped to 99.4% and per-query cost dropped 70% versus running GPT-4o on the same workload.
The pattern: RAG solved the knowledge problem in case 1, fine-tuning solved the behavior problem in case 2. Most teams need the former, not the latter.
At scale, the strongest systems use both. Fine-tune a small model to handle the high-volume, narrow tasks cheaply. Keep a RAG pipeline on a larger general model for the long tail. Route queries between them based on intent.
I have seen this pattern cut total cost by 40-65% on systems serving more than 100k queries per day, while improving quality on the narrow tasks the fine-tuned model was trained for. It is the right pattern - but only after you have proven RAG-only does not work.
OpenAI offers fine-tuning on most GPT-4 family models. Anthropic does not offer public fine-tuning APIs as of 2026 - if you need fine-tuning on Claude-class models, your options are open-weight alternatives like Llama 3.3, Mistral Large, or Qwen 3.
The practical floor is 1,000 high-quality, diverse rows. 5,000-10,000 is where you start seeing reliable behavior. Below 1,000, prompt engineering with strong few-shots almost always wins.
Yes when the retrieval is strong - the model has the right answer in its context, so it has less reason to invent one. Yes also when the retrieval misses - the model can still hallucinate from the wrong context. Quality of retrieval determines hallucination rate more than the model choice.
For very specific domains - medicine, law, narrow technical fields - yes. For general business workloads, the marginal gain over strong RAG plus reranking is rarely worth the engineering effort.
Build an eval set of 100-200 query/answer pairs. Measure recall at K (does the right document appear in the top K retrievals?) and answer accuracy. If recall@5 is below 80%, fix retrieval before you blame the LLM.
Nine out of ten founder-scale AI products are better served by RAG plus careful prompt engineering than by fine-tuning. Fine-tuning earns its keep at high volume, narrow tasks, or when format compliance is a contractual requirement. The hybrid pattern wins at scale, but only after RAG has been proven insufficient. If your RAG accuracy has plateaued, try the agentic RAG patterns before reaching for fine-tuning.
If you are sizing a specific architecture and want a second opinion before you commit a training budget, I do free 30-minute calls.
Free 30-minute call. I will give you a straight answer for your specific use case in 15 minutes.
Book a Scoping Call