Kipt

Your prompts and skills, one keystroke away.

Explore

Fine-tuning vs RAG: which one does your LLM app need?

Fine-tuning vs RAG explained: what each changes, when to use retrieval or training, how they combine, and which vendors still offer fine-tuning in October 2026.

By the Kipt team · Updated 26 October 2026

RAG and fine-tuning solve different problems. RAG (retrieval augmented generation) looks up relevant information at request time and adds it to the prompt, so the model can answer from facts it was never trained on. Fine-tuning further trains a model on your examples, so it changes how the model behaves: its format, style or skill at a narrow task.

A quick rule: if the model is missing knowledge, use RAG. If it has the knowledge but behaves inconsistently, consider fine-tuning. And before either, try better prompts. OpenAI's accuracy guide puts it plainly: "Prompt engineering is typically the best place to start."

This guide compares the two, shows when each fits, and covers which vendors still offer fine-tuning in October 2026, which has changed a lot this year.

What is the difference between fine-tuning and RAG?

Both make a model more useful for your case. They act at different points:

RAG Fine-tuning
What changes The prompt for each request The model's weights
Best at Missing, private or changing knowledge Consistent format, style or narrow behavior
What you need Documents and a retrieval step (often embeddings) A labeled set of good input and output examples
Updating Edit or re-index the documents Train again
Citations Easy: you know which passages were used Not built in
Model choice Works with any model you can prompt Only models the vendor lets you tune
Extra cost Retrieval plus longer prompts Training, then inference on the tuned model

OpenAI frames it as two axes. You optimize context "when 1) the model lacks contextual knowledge," and you optimize the model "when 1) the model is producing inconsistent results with incorrect formatting." The first improves response accuracy; the second improves consistency of behavior.

What is RAG?

Anthropic's glossary defines RAG as "a technique that combines information retrieval with language model generation to improve the accuracy and relevance of the generated text, and to better ground the model's response in evidence."

The flow is simple. Your app takes a question, searches a knowledge base for relevant passages, and sends those passages to the model along with the question. The search is often semantic search over embeddings, sometimes combined with keyword search. The model itself is untouched.

The glossary also states the main limit: "the effectiveness of RAG depends on the quality and relevance of the external knowledge base and the knowledge that is retrieved at runtime." Bad retrieval means bad answers. Our guide to what RAG is covers the pipeline step by step.

What is fine-tuning?

The same glossary says: "Fine-tuning is the process of further training a pretrained language model using additional data. This causes the model to start representing and mimicking the patterns and characteristics of the fine-tuning dataset."

Vendors offer several methods. OpenAI's model optimization page lists four:

  • Supervised fine-tuning: train on examples of correct responses.
  • Vision fine-tuning: supervised training with image inputs.
  • Direct preference optimization (DPO): train on pairs of better and worse responses.
  • Reinforcement fine-tuning (RFT): a grader scores responses and the model learns from higher-scored ones; for reasoning models only.

Google's tuning docs list supervised fine-tuning, reinforcement learning fine-tuning and preference tuning for Gemini models.

When should you use RAG?

RAG is the default choice when the answer depends on information the model does not have. Anthropic's glossary says it "can be particularly useful for tasks that require up-to-date information, domain-specific knowledge, or explicit citation of sources." Typical cases:

  • Answering questions over internal docs, tickets, wikis or code.
  • Anything that changes often: prices, policies, inventory, release notes.
  • Answers that must show where they came from.
  • Per-user data that you could never bake into one shared model.

RAG also keeps you free to switch models, since the knowledge lives in your documents, not in weights.

One caveat before you build a pipeline: you may not need retrieval at all. Anthropic's Contextual Retrieval post notes that if your knowledge base is smaller than 200,000 tokens, about 500 pages, you can often include all of it in the prompt. See context engineering for how to manage a large context well.

When should you use fine-tuning?

Fine-tuning fits when you can show the model what good output looks like, but prompting alone does not get it there reliably. Google's supervised tuning docs say: "Supervised fine-tuning is a good option when you have a well-defined task with available labeled data." The same page suggests tuning when:

  • You need specific structures or formats for output.
  • You want specific behaviors, such as when to be terse or verbose.
  • A behavior is hard to put into words in a prompt.
  • "You want to reduce the context length by removing the few-shot examples."

OpenAI's page adds two efficiency reasons: shorter prompts once the examples are trained in, and training a smaller, cheaper model to do a task that would otherwise need a larger one.

Fine-tuning needs a real dataset, an evaluation set to prove the tuned model is better, and retraining whenever your requirements change. Google also notes that you pay inference costs for the tuned model after paying for training tokens.

Should you try prompting before either?

Yes, and OpenAI's and Google's docs both point that way. OpenAI's accuracy guide advises: "squeeze as much accuracy out of basic methods as you can before reaching for more complex RAG or fine-tuning." Its optimization page adds: "The prompt engineering process may be all you need in order to get great results for your use case."

Google's tuning page makes the same point from the other side: foundation models "work well when the expected output or task can be clearly and concisely defined in a prompt and the prompt consistently produces the expected output."

Both OpenAI and Anthropic recommend building evaluations first. Anthropic's prompt engineering overview assumes you already have clear success criteria and a way to test against them. Without evals, you cannot tell whether RAG or tuning actually helped. A clear system prompt with a few worked examples fixes many formatting problems that look like they need training.

Can you combine fine-tuning and RAG?

Yes. OpenAI's guide says the methods are "additive, not exclusive" and that "they stack, and some use cases will require you to use them together."

A combined setup usually looks like this: retrieval supplies current facts and source passages for each request, and a tuned model turns them into output in your exact format. Build them in order. Get retrieval working and measured first, because a tuned model cannot fix passages that were never retrieved.

Which vendors offer fine-tuning in October 2026?

This changed a lot in 2025 and 2026, so check before you plan around tuning. As of October 2026, from each vendor's docs:

Vendor Fine-tuning status
Anthropic (Claude API) Not offered. The glossary says "The Claude API does not currently offer fine-tuning, but ask your Anthropic contact if you are interested in exploring this option."
OpenAI (API) Winding down. "OpenAI is winding down the fine-tuning platform." It is "no longer accessible to new users," and existing users can create jobs "for the coming months."
Google (Gemini API and AI Studio) Not available. The Gemini API tuning page says no model there supports fine-tuning since Gemini 1.5 Flash-001 was deprecated in May 2025.
Google Cloud (Gemini Enterprise Agent Platform) Supported. Supervised fine-tuning is listed for Gemini 3.5 Flash-Lite, 3.5 Flash, 3.1 Flash-Lite, 2.5 Pro, 2.5 Flash-Lite and 2.5 Flash.

OpenAI notes that existing fine-tuned models "will remain available for inference until their base models are deprecated." Its deprecations page gives the dates: since July 2, 2026, organizations that have not run inference on a fine-tuned model in the past 60 days cannot create jobs, and from January 6, 2027, active existing customers can no longer create new fine-tuning jobs. Open-weight models can still be fine-tuned on your own hardware or through cloud platforms, which is outside the scope of this guide.

The practical effect: for most teams building on hosted frontier models today, prompting plus retrieval is the main lever, and tuning is a specialist option on a few platforms.

Where do the prompts for either approach live?

Both approaches depend on prompts you refine over time: the instructions that wrap retrieved passages, and the examples you would use as a starting dataset for tuning. Kipt keeps prompts and Agent Skills as Markdown in a private GitHub repo you own, with tags and fill-in blanks, so the version that passed your evals is the one your team reuses.

Start with what is RAG and what are embeddings if retrieval fits your problem. If your concern is wrong answers, read AI hallucinations for causes and the mitigations vendors document.

Questions

What is the difference between fine-tuning and RAG?

RAG retrieves relevant information at request time and adds it to the model's prompt, leaving the model unchanged. Fine-tuning further trains a model on your examples so its weights change and it picks up a pattern, format or style. In short, RAG changes what the model can see for one answer, and fine-tuning changes how the model behaves on every answer.

Is RAG better than fine-tuning?

Neither is better in general; they fix different problems. OpenAI's accuracy guide says to optimize context when the model lacks knowledge and to optimize the model when its results are inconsistent or badly formatted. Many teams start with prompting, add RAG for missing knowledge, and fine-tune only if behavior is still inconsistent.

Can you fine-tune Claude?

Not through the Claude API. Anthropic's glossary says the Claude API does not currently offer fine-tuning and suggests asking your Anthropic contact if you want to explore it. Most Claude apps use prompting, RAG, examples and tools instead.

Can you use fine-tuning and RAG together?

Yes. OpenAI's guide calls the two methods additive, not exclusive, and says some use cases need both. A common pattern is RAG for current facts and documents, with a tuned model that follows your output format or tone.

Is OpenAI fine-tuning still available?

Only for active existing users, as of October 2026. OpenAI's model optimization page says it is winding down the fine-tuning platform, that the platform is no longer accessible to new users, and that existing users can create training jobs for the coming months. Its deprecations page says active existing customers can no longer create new fine-tuning jobs from January 6, 2027, while fine-tuned models stay available for inference until their base models are deprecated.

Does fine-tuning reduce hallucinations?

It can make a model more consistent on a narrow task, but it is not the usual fix for wrong facts. For questions about private or changing information, retrieval gives the model the source text at answer time and lets it cite where an answer came from. Anthropic's glossary notes that RAG helps when tasks need up-to-date information, domain knowledge or explicit citations.

More in Learn

All guides

Keep your prompts and skills in one place, in your own GitHub. Install every skill with one command.

Get started

Kipt is an independent product, not affiliated with or endorsed by Anthropic, OpenAI, Cursor or GitHub. Claude, ChatGPT, Codex, Cursor and GitHub are trademarks of their owners.