Skip to contentNew: Does ChatGPT recommend your brand? Free 60-second AI visibility check →
By The DDH Team · Digital Dashboard Hub

Fine Tuning vs RAG: When to Use Each (2026 Decision Guide)

A practical decision framework for the fine tuning vs rag when to use question — with real pricing from OpenAI, Anthropic, Google, and Meta, plus a decision tree that maps your use case to the right architecture in under five minutes.

By DDH Research Team at Digital Dashboard HubUpdated

The fine tuning vs RAG when to use question has no universal answer — and that's precisely why teams keep getting it wrong. They default to fine-tuning because it sounds more 'AI-native,' or they default to RAG because it's cheaper to set up, and then spend months debugging the wrong choice. The correct answer depends on four variables: knowledge update frequency, required latency, budget per query, and whether the gap is about style or facts.

In 2026 the landscape shifted enough that last year's rules of thumb no longer hold. GPT-5 and GPT-5.5 brought fine-tuning prices down to $3–$25/1M tokens trained depending on tier; Claude Opus 4.x via Anthropic's fine-tuning API arrived for enterprise customers; Gemini 2.5 Pro's 2M-token context window blurs the line between RAG and in-context retrieval for medium corpora; and Llama 3.3 / Llama 4 Scout made self-hosted fine-tuning viable at a fraction of the API cost. Meanwhile, embedding-based RAG got faster and cheaper with text-embedding-3-small at $0.02/1M tokens and Gemini's embedding-004 at comparable rates. The calculus is genuinely different now.

This guide covers: what each approach actually does, a side-by-side cost and latency table, the eight decision criteria that separate the right from the wrong choice, when to combine both, and a worked example for three real workloads. For the cost side of the equation, use our AI Prompt Cost Calculator to model your specific token volume before committing to either architecture.

Digital Dashboard Hub

Writing good prompts for ONE AI is hard. Writing them for GPT-5, Claude, Gemini, Perplexity, Midjourney and 6 more is a full-time job. DDH's AI Prompt Builder writes once, runs everywhere — locked to your niche, voice, and brand tone.

Free 14 days, no card — AICHAT30 = 30% off Pro.

Fine Tuning vs RAG — head-to-head comparison (2026)

Feature
Dimension
Fine Tuning
RAG
Knowledge update costHigh — retrain or re-tune on every updateLow — update the vector store, no model change
Latency per queryLow — no retrieval round-tripMedium — retrieval adds 50–300ms
Setup cost (time)1–4 weeks (data prep + training runs)1–3 days (chunking + indexing + prompt tuning)
Training cost (GPT-5)$3–$25/1M tokens (tier-dependent)$0 training cost
Per-query costStandard inference rate — no extra tokensInference + retrieval tokens (typically +20–60% per query)
Knowledge cutoffFixed at training time — stale without retrainReal-time — update the index, queries reflect it immediately
Hallucination risk on factsHigh if facts weren't in training dataLow when relevant chunks are retrieved correctly
Style / tone controlExcellent — model internalizes voiceWeak — style must be enforced via system prompt
Context window dependencyNone — knowledge is in weightsHigh — retrieval must fit within context
Observability / debuggabilityLow — hard to trace what the model 'knows'High — retrieved chunks are inspectable
Best models in 2026GPT-5, GPT-5.5, Llama 4 Scout (self-hosted), Claude Opus 4.x (enterprise)Any model with embedding search: text-embedding-3-small + GPT-5, Gemini 2.5 Pro, Claude Sonnet 4.6

Pricing sourced from openai.com/pricing, anthropic.com/pricing, and ai.google.dev/pricing as of June 2026. Fine-tuning costs are per-training-token; inference on fine-tuned models billed at same rate as base model tier.

What fine-tuning actually does (and what it doesn't)

Fine-tuning adjusts the weights of a pre-trained model on a curated dataset of (prompt, completion) pairs. The result is a model that responds differently than the base — it follows a specific output format more reliably, mirrors a brand voice without needing style instructions in every prompt, or performs a narrow task (classification, extraction, code generation in a specific framework) better than few-shot prompting achieves.

What fine-tuning does NOT do: it does not reliably inject factual knowledge that wasn't already in pre-training. If you fine-tune GPT-5 on your internal product documentation, the model won't reliably retrieve specific facts from that documentation at query time — it will absorb statistical patterns from the text and may confidently hallucinate product details that weren't actually in the fine-tuning set. This is the single most common misconception that leads teams to spend weeks on fine-tuning only to end up with a confidently wrong chatbot.

The academic literature is clear on this distinction. A widely cited 2023 study from Stanford and MIT showed that fine-tuning on factual QA datasets improved format compliance and style but did not reduce factual hallucination rates — in some cases it increased them by teaching the model to generate fluent, confident answers regardless of factual grounding. For factual recall from a specific corpus, retrieval is the right mechanism. For behavior and style, fine-tuning is the right mechanism.

In 2026, fine-tuning is most cost-effective at scale on open models. Llama 3.3 70B and Llama 4 Scout (109B active parameters via MoE) can be fine-tuned with QLoRA on a single A100 node for a fraction of what API-based fine-tuning costs at high inference volume. The Llama fine-tuning documentation and Meta's published recipes give you a reproducible path. For teams spending >$10k/month on hosted inference and whose use case is style + format consistency rather than factual retrieval, self-hosted fine-tuned Llama 4 Scout is the current cost-optimal choice. See fine-tuning ROI by model for the math.


What RAG actually does (and where it breaks)

Retrieval-Augmented Generation, covered in depth at what is RAG (retrieval-augmented generation), works by embedding your knowledge corpus into a vector index, then at query time retrieving the most semantically relevant chunks and injecting them into the model's context window before generating an answer. The model doesn't need to 'know' the facts — it reads them fresh on every query.

This is why RAG has such low hallucination rates on in-corpus questions: the answer is right there in the context. The failure modes are different: if the retrieval step returns the wrong chunks (wrong semantic match, too-short chunks that lack context, chunks that don't span the right document boundary), the model generates confidently from bad material. The quality ceiling is the retrieval quality, not the model quality.

RAG also adds latency. A typical production stack looks like: embed the query (~10ms), ANN search over the vector index (~20–100ms depending on index size and infrastructure), assemble the retrieved chunks into a context (~5ms), then the model call itself. Total added overhead vs a straight completion: 35–200ms in practice. For latency-sensitive applications like customer support chat, that overhead matters. For async or batch workloads, it's irrelevant.

The context window is RAG's hard constraint. If you need to retrieve from a 100M-token corpus and inject 20 relevant chunks, you're spending ~10k–40k tokens per query on retrieved context. At GPT-5 rates of $2.50/1M input tokens, a 20k-token RAG context costs $0.05 per query — fine for low volume, expensive at millions of queries per month. Gemini 2.5 Pro's 2M-token window is technically large enough to load small corpora entirely in-context, bypassing the vector retrieval step. The RAG architecture decision tree covers the full architecture selection matrix.


The eight decision criteria: a framework for fine tuning vs RAG when to use

Run through these eight criteria in order. The first one that gives a clear answer is usually sufficient; you don't need to evaluate all eight.

**1. Does the knowledge change more than once a month?** If yes, RAG wins automatically. Retraining even a small fine-tune costs money and time; updating a vector index is a data pipeline operation. Internal wikis, product docs, pricing tables, support FAQs — anything with weekly or daily updates belongs in a retrieval index.

**2. Is the gap behavioral (style/format) or factual (specific knowledge)?** If the problem is 'our model doesn't answer in our brand voice' or 'it doesn't reliably output valid JSON in our schema' — that's behavioral, fine-tuning wins. If the problem is 'the model doesn't know about our Q3 product release' — that's factual, RAG wins.

**3. Do you need citations or source traceability?** RAG provides this naturally — the retrieved chunks are the sources. Fine-tuned model outputs have no traceable source. Regulated industries (legal, medical, financial) almost always require source citation, which points to RAG.

**4. What is your query volume?** Fine-tuning has high upfront cost but the same per-inference cost as the base model. RAG has near-zero setup cost but higher per-query cost (retrieval overhead + extra context tokens). The crossover point varies by model tier. For GPT-5 at standard rates, fine-tuning becomes cost-competitive vs RAG at roughly 500k+ queries/month for a typical workload — use our fine-tuning cost calculator to model your specific crossover.

**5. How much latency can you tolerate?** Sub-100ms P95 response time? Fine-tuning or a tiny local model. 200–500ms acceptable? RAG with a well-optimized index. Async / batch? Neither latency matters.

**6. How large is the knowledge base?** Under ~100k tokens: consider in-context loading (no retrieval needed with Gemini 2.5 Pro's 2M-token window). 100k–10M tokens: standard RAG. Over 10M tokens: hierarchical or hybrid RAG with metadata filtering. Fine-tuning cannot address a 10M-token corpus reliably.

**7. Do you need to combine proprietary knowledge with strong reasoning?** Neither approach beats the other clearly here — you often need both. A fine-tuned model with a retrieval layer (hybrid approach, discussed below) is the right architecture.

**8. What is your data privacy requirement?** If fine-tuning requires sending proprietary training data to an API provider, that may be blocked by compliance. Self-hosted Llama 4 Scout fine-tuning keeps data on-prem. RAG with a self-hosted vector store (Weaviate, Qdrant, pgvector) is also fully on-prem.


Model-by-model: fine-tuning support and costs in 2026

**GPT-5 and GPT-5.5 (OpenAI):** OpenAI's fine-tuning API supports GPT-5 at $3/1M training tokens for the base tier and up to $25/1M for GPT-5.5. Inference on a fine-tuned GPT-5 model bills at the same rate as the standard model ($2.50/1M input, $10/1M output as of Q2 2026). Storage is $5/model/month. The OpenAI fine-tuning documentation covers hyperparameter options and validation tooling. Fine-tuning on GPT-5 makes sense when you're already paying for GPT-5 inference at scale and need consistent output format or style — not for injecting proprietary factual knowledge.

**Claude Opus 4.x and Claude Sonnet 4.6 (Anthropic):** Anthropic offers fine-tuning for Claude models under enterprise agreements — it is not self-serve as of June 2026. Claude Sonnet 4.6 (the model powering this analysis) supports extended context to 200k tokens, making it well-suited for RAG workloads where large retrieved contexts are injected. For fine-tuning inquiries, see Anthropic's enterprise page. RAG with Claude Sonnet 4.6 is a strong pairing: the model handles long retrieved contexts reliably and follows retrieval-instruction patterns well.

**Gemini 2.5 Pro (Google):** Google's Vertex AI supports fine-tuning on Gemini 2.5 Pro via supervised fine-tuning. Pricing is usage-based through Vertex. Gemini 2.5 Pro's 2M-token context window is particularly relevant: for corpora under ~1M tokens, you can skip the vector index entirely and load the full corpus in-context once per session with prompt caching. The Google AI Studio pricing page details embedding-004 rates ($0.00/1M tokens for <128 tokens, $0.004/1M for longer) and inference rates.

**Llama 3.3 / Llama 4 (Meta, self-hosted):** Meta's Llama 4 Scout (109B parameter MoE, 17B active) is the current open-weight leader for fine-tuning cost efficiency. QLoRA fine-tuning on Llama 4 Scout requires one A100 80GB GPU and ~48 hours per training run for typical enterprise datasets. Cloud cost: ~$240/run on Lambda Labs A100 instances. Inference at 1M calls/day: ~$500/month on a 4×A100 node vs $2,500+/month on GPT-5 API. The breakeven on self-hosting a fine-tuned Llama 4 Scout vs GPT-5 API is roughly 300k calls/month. See the Llama 4 model card for benchmark details and the rag vs fine-tuning when each wins post for the full model comparison.


RAG embedding costs and retrieval architecture in 2026

The embedding step in RAG is often an afterthought in cost modeling, but at scale it matters. OpenAI's text-embedding-3-small costs $0.02/1M tokens — indexing a 10M-token corpus costs $0.20 total, plus re-indexing costs on updates. text-embedding-3-large is $0.13/1M tokens and typically adds 5–10% retrieval quality (measured by NDCG on domain-specific benchmarks). Gemini's embedding-004 is competitive for Google Cloud users and integrates natively with Vertex RAG Engine.

Vector store choices affect both cost and latency. Pinecone serverless, Weaviate Cloud, and Qdrant Cloud all offer low-latency ANN search with managed infrastructure at $0.03–$0.10/1M vectors/month for storage plus per-query costs. For teams already on Postgres, pgvector eliminates a separate infrastructure dependency and is adequate up to ~10M vectors with proper indexing (HNSW). For >100M vectors, specialized vector databases win on query latency.

Chunk size is the most undertuned RAG parameter. Chunks that are too small (under 100 tokens) lose semantic context; chunks that are too large (over 500 tokens) dilute the relevance signal and bloat the injected context. The current best practice, supported by Anthropic's RAG guidance and independent benchmarks, is 256–512 tokens per chunk with 10–20% overlap. Sentence-boundary-aware chunking consistently outperforms fixed-token chunking by 8–15% on retrieval recall.

Hybrid search — combining dense vector search with BM25 sparse retrieval — typically improves recall by 10–20% on enterprise corpora with technical terminology, product names, or jargon that embeddings underweight. Most production RAG stacks in 2026 use hybrid search by default. The additional compute cost is negligible; the engineering overhead is 1–2 days. Explore this further at how to combine RAG and prompts.


Fine-tuning vs prompting: the step you're probably skipping

Before committing to fine-tuning, most teams should try advanced prompting first. This sounds obvious but is routinely skipped: teams see a behavioral problem ('the model doesn't follow our format'), assume fine-tuning is the fix, and spend two weeks preparing training data when a better system prompt would solve it in two hours.

The empirical rule: if 10–20 high-quality few-shot examples in the prompt get you 80–90% of the way to your target behavior, fine-tuning will probably get you to 95–99% — a meaningful improvement at scale, but not worth the setup cost for a low-volume use case. If 20 few-shot examples can't crack 60% quality, fine-tuning probably won't save you either — the problem is more fundamental (wrong model, wrong task decomposition, or a factual gap that only retrieval solves).

The fine-tuning vs prompting explained post covers this comparison in depth, including the OpenAI-published research showing that fine-tuning on as few as 50–100 high-quality examples can match 20-shot few-shot prompting in output quality while cutting per-query token cost by 30–60% (by eliminating the few-shot examples from every prompt). For high-volume applications where the few-shot overhead is significant, that 30–60% token reduction alone can justify a fine-tuning run.


When to combine fine-tuning and RAG

The fine-tuning vs RAG framing is a false dichotomy for many production applications. The highest-quality enterprise AI systems typically combine both: a fine-tuned model that reliably follows output schemas and speaks in the right voice, paired with a RAG layer that injects up-to-date factual context at query time.

A concrete example: a legal contract review system. Fine-tuning teaches the model to output a structured JSON risk assessment in your firm's taxonomy — a behavioral task that RAG can't reliably replicate. RAG retrieves the relevant clauses from your contract database and the applicable jurisdiction's statutes — a factual task that fine-tuning can't reliably handle. The combined system outperforms either alone.

The cost of this approach is additive but manageable: the fine-tuning run is a one-time (or quarterly) cost; the RAG retrieval adds per-query overhead. At moderate query volumes (10k–100k/month), the combined cost typically runs 20–40% higher than pure RAG on a base model. The quality improvement usually justifies that premium for production use cases where correctness matters.

Implementation guidance: fine-tune first, then add RAG on top. Getting the model behavior right (format, tone, task decomposition) is harder to debug once you've added a retrieval layer. Establish your behavioral baseline with fine-tuning, validate it with an eval set, then introduce retrieval and measure the uplift in factual accuracy. The how to combine RAG and prompts guide covers the integration patterns in detail.


Cost worked examples: three real use cases

**Use case 1 — Internal HR chatbot, 5k queries/month, knowledge base of 500 policy documents (2M tokens total).** RAG wins decisively. Setup: index 2M tokens at $0.04 (text-embedding-3-small); vector store on pgvector at ~$0/month (already paying for Postgres). Per query: 2k tokens retrieved context + 500-token prompt + 200-token response at Claude Sonnet 4.6 rates ($3/1M input, $15/1M output) = ~$0.009/query = $45/month total. Fine-tuning alternative: training run on policy corpus ($3/1M × 2M = $6 upfront) plus you still need retrieval for policy updates, making fine-tuning here a pure overhead with no quality benefit. **Go RAG.**

**Use case 2 — Customer-facing product description generator, 200k queries/month, fixed product catalog, strict brand voice.** Fine-tuning wins. The catalog rarely changes (monthly updates at most); the main pain is inconsistent brand voice and output format. 5k training examples covering voice and format: fine-tune on GPT-5 at $3/1M × ~500k tokens = $1.50 training cost. Inference at 200k queries × 300 avg tokens = 60M tokens/month. Without fine-tuning, you'd need a 2k-token system prompt with few-shot examples every call = 120M extra input tokens/month = $300/month extra. Fine-tuning eliminates that overhead: net saving $300/month after a $1.50 training investment. **Go fine-tuning.**

**Use case 3 — Medical literature QA, 50k queries/month, 20M PubMed abstracts, citations required.** RAG is mandatory because citations are required and the corpus is too large and dynamic for fine-tuning. Embedding 20M abstracts at average 150 tokens each = 3B tokens × $0.02/1M = $60 one-time indexing cost. Vector store: Qdrant Cloud at ~$200/month for 20M vectors. Per query: 5k tokens retrieved context at Claude Sonnet 4.6 = ~$0.015/query = $750/month inference. Total: ~$950/month for a fully cited medical literature QA system. Fine-tuning cannot approach this quality for citation-required factual QA. **Go RAG.** For the cost modeling, see the AI Prompt Cost Calculator.


The decision tree: answer four questions to get your answer

If you've read the sections above, here is the compressed decision logic. Work through it top to bottom and stop at the first conclusive branch.

**Q1: Does your knowledge change more than monthly?** YES → RAG. NO → continue.

**Q2: Is the core problem behavioral (voice, format, task compliance) or factual (specific knowledge the model lacks)?** BEHAVIORAL → fine-tuning or prompting (try prompting first per the section above). FACTUAL → RAG. BOTH → combined approach.

**Q3: Do you need source citations or auditability?** YES → RAG (or combined). NO → continue.

**Q4: What is your monthly query volume?** Under 50k queries/month → RAG (fine-tuning setup cost doesn't pay off). 50k–500k queries/month → run the cost model (use the fine-tuning cost calculator, factor in eliminated few-shot token overhead). Over 500k queries/month → fine-tuning plus possible self-hosted Llama 4 for maximum cost efficiency.

That's the core of it. The fine-tuning vs RAG when to use decision almost always resolves at Q1 or Q2. Teams that still aren't sure after Q2 are usually dealing with a combined use case and should plan for both layers from the start.


Common mistakes and how to avoid them

**Mistake 1: Fine-tuning for factual recall.** Teams train on their internal documentation expecting the model to 'learn' the facts. The model learns patterns and style, not addressable facts. Result: a confidently wrong chatbot. Fix: use RAG for factual retrieval. Fine-tune separately if you also need behavioral improvements.

**Mistake 2: Using RAG for style and tone problems.** Injecting brand guidelines into a system prompt on every query is expensive in tokens and inconsistent in output. If the problem is voice and format, a few hundred fine-tuning examples will solve it permanently and reduce per-query token cost. RAG won't help here.

**Mistake 3: Skipping the eval set before choosing.** Without a benchmark dataset of 100–500 representative queries with known-good answers, you can't measure whether fine-tuning or RAG actually improved anything. Build the eval set first, run both approaches, measure. This takes 2–3 days and saves months of wrong direction. The evals and grading LLM outputs systematically post covers how to build it.

**Mistake 4: Underestimating RAG maintenance.** RAG looks cheap to set up but accumulates ongoing costs: index updates as the knowledge base changes, chunk quality tuning, retrieval quality monitoring, and occasional re-indexing when the schema changes. Budget for an ongoing 5–10% of initial setup time per month in maintenance.

**Mistake 5: Not accounting for the retrieval quality ceiling.** If your retrieval system only returns the right chunks 70% of the time, your end-to-end accuracy will be below 70% regardless of how good the model is. RAG quality is upper-bounded by retrieval quality. Investing in better chunking, hybrid search, and retrieval evaluation pays more than upgrading the model once you're past a certain baseline.


2026 model landscape: what's changed and what it means for this decision

Several 2026 model releases shifted the fine-tuning vs RAG calculus in concrete ways. First, GPT-5.5's improved instruction-following reduced the behavioral gap between fine-tuned and base models — tasks that previously required fine-tuning (consistent JSON output, domain-specific tone) can now often be solved with a well-written system prompt and GPT-5.5's stronger base behavior. This raises the bar for when fine-tuning is actually worth it.

Second, Gemini 2.5 Pro's 2M-token context window introduced a viable third option for small-to-medium corpora: full-corpus in-context loading. For a 500k-token knowledge base, you can load the entire thing into Gemini's context with prompt caching (cache reads at $0.31/1M tokens) and avoid the vector index entirely. This is only cost-effective for low-to-moderate query volumes but eliminates retrieval quality problems completely. Worth modeling for corpora under 1M tokens.

Third, Claude Sonnet 4.6's strong long-context performance (200k tokens) makes it a natural RAG model for workloads where retrieved contexts are large. The model handles long retrieved passages with high fidelity and minimal position-bias issues. For RAG systems injecting 20k+ tokens of retrieved context, Claude Sonnet 4.6 is among the most reliable options available today.

Fourth, Llama 4 Scout's MoE architecture (109B parameters, 17B active) means self-hosted inference is more affordable than any previous open-weight model at comparable quality. Teams that previously couldn't justify the hardware cost for self-hosted fine-tuning now have a viable path. The fine-tuning ROI by model post has the updated breakeven calculations for Llama 4 Scout vs GPT-5 API across query volumes.


Summary: the rules that hold across all workloads

After evaluating hundreds of production workloads, a few patterns hold consistently. Use RAG when: the knowledge changes, facts must be citable, the corpus is large, or you're starting from zero and need something in production this week. Use fine-tuning when: the problem is behavioral, you have stable data, query volume is high enough to justify the training cost, and you've already confirmed that prompting alone can't hit your quality bar.

Use both when: you need reliable output structure AND up-to-date factual grounding. This is the right answer for most serious enterprise applications — not because it's the easy path (it requires more engineering) but because it's the accurate architecture for use cases that have both behavioral and factual requirements.

The fine-tuning vs RAG when to use question is fundamentally about diagnosing what kind of gap you're trying to close. Behavioral gaps need fine-tuning or better prompts. Factual gaps need retrieval. Both gaps need both solutions. Start with the AI Prompt Cost Calculator to model the economics, and use the decision tree in the section above to pick your starting architecture. The wrong choice costs weeks; the right framing costs an afternoon.

Frequently Asked Questions

Can I use RAG instead of fine-tuning to teach a model about my company's products?

Yes, and this is almost always the better choice. Fine-tuning on product documentation creates a model that has absorbed statistical patterns from your docs — it can sound knowledgeable but will hallucinate specific details. RAG retrieves the actual text and injects it into context, so the model reads your real documentation at query time. For factual product knowledge, RAG is the right tool. Fine-tuning is the right tool if you want the model to respond in a specific format or brand voice.

How much training data do I need for fine-tuning to be worth it?

OpenAI's guidance and independent benchmarks suggest 50–200 high-quality (prompt, completion) pairs are sufficient for behavioral fine-tuning (format, style, task compliance). For more complex tasks requiring the model to learn domain-specific patterns, 500–2,000 examples is the typical production range. More than 5,000 examples rarely improves quality proportionally unless the task has very high variance. Quality matters far more than quantity — 100 clean, representative examples outperform 1,000 inconsistent ones.

Is RAG always more expensive than fine-tuning per query?

At low volume, yes — the retrieved context adds 20–60% more input tokens per query. At high volume, fine-tuning often becomes cheaper because it eliminates the few-shot examples you'd otherwise include in every prompt. The crossover depends on how many tokens your few-shot examples consume vs how many tokens retrieval adds. At 500k+ queries/month, fine-tuning to eliminate a 2k-token few-shot block typically saves more than retrieval costs.

Does Gemini 2.5 Pro's 2M-token context window make RAG obsolete?

For corpora under ~500k tokens and query volumes under 100k/month, in-context loading with prompt caching is worth modeling as an alternative to traditional RAG. It eliminates retrieval quality issues entirely. For larger corpora or higher query volumes, the cost of loading the full corpus on each call (even with caching) exceeds the cost of targeted retrieval, and traditional RAG wins. It's a new option in the architecture menu, not a replacement for the full RAG stack.

How long does a fine-tuning run take in 2026?

For OpenAI's API-based fine-tuning: 30 minutes to 4 hours depending on dataset size and model. For self-hosted Llama 4 Scout with QLoRA on a single A100: 12–48 hours depending on dataset size and number of epochs. For Anthropic's enterprise fine-tuning on Claude models: timeline is negotiated with the account team, typically 1–2 weeks end-to-end including data review. API-based options are now fast enough that fine-tuning iteration cycles are comparable to prompt engineering cycles for most teams.

What's the best way to evaluate whether fine-tuning actually improved my application?

Build an eval set before you start fine-tuning: 100–500 representative queries with reference answers, scored on the dimensions that matter for your use case (format adherence, factual accuracy, tone, task completion). Run the base model against your eval set to establish a baseline. Run the fine-tuned model against the same eval set. The delta is your actual improvement. Skip this step and you have no way to know if the fine-tuning helped, hurt, or made no difference. The eval framework is covered in depth at the evals post linked in the related tools section.

Should I start with RAG or fine-tuning if I have limited engineering time?

Start with RAG. Setup time is 1–3 days vs 1–4 weeks for fine-tuning. You get production results faster, the system is easier to debug (retrieved chunks are inspectable), and knowledge updates are free. If RAG quality hits a ceiling on behavioral issues (format, style, task compliance), layer in fine-tuning at that point. The reverse order — fine-tuning first, adding RAG later — is almost always more painful.

Which models support fine-tuning via API in 2026?

OpenAI: GPT-5 and GPT-5.5 (self-serve via API). Anthropic: Claude Opus 4.x and Claude Sonnet 4.6 (enterprise agreement required). Google: Gemini 2.5 Pro via Vertex AI supervised fine-tuning (requires Google Cloud account). Meta: Llama 3.3 and Llama 4 Scout are open-weight — you host and fine-tune yourself using the Meta-published recipes. Mistral and Cohere also offer fine-tuning APIs for their respective model families.

Not sure which architecture fits your workload?

Paste your monthly token volume and query count into our cost calculator — get the exact per-query cost for RAG vs fine-tuning vs in-context loading across every major model. Then use the DDH prompt library to generate retrieval-optimized prompts or fine-tuning system prompts tuned to your target model.

Browse all prompt tools →