Step 6 of 13 Intermediate 10 min

Fine-Tuning vs RAG vs Prompting: Choosing the Right Technique

Lesson 6 — Someone on your project is about to propose 'let's just fine-tune a model on our data.' It's the single most expensive wrong answer in enterprise AI, and this lesson is the two-minute argument that saves the budget.

S
s4ready.ai Team

Prerequisites

  • Lesson 5: Retrieval-Augmented Generation (RAG)

Every AI project eventually reaches a meeting where someone says, with total confidence, “let’s just fine-tune a model on our data.” It sounds rigorous. It sounds like the proper engineering answer. It is, in the large majority of enterprise cases, the wrong one — and an expensive one to discover after the fact.

You now have three tools: prompting (Lesson 3), RAG (Lesson 5), and fine-tuning, which we’ve mentioned but not yet unpacked. This short lesson is the decision framework that keeps you from reaching for the most expensive tool when a cheaper one already solves the problem.

Three techniques, three different things they change

  • Prompting changes how you ask. No data pipeline, no training run. Cheapest, fastest, and it should always be your first move.
  • RAG (grounding) changes what the model knows at answer time, by retrieving your data into the prompt. The model’s weights never move; your knowledge stays current, because you’re not baking anything in.
  • Fine-tuning changes the model itself, by further training it on your examples and adjusting its weights. Expensive, slow to iterate, and it freezes whatever it learned at that exact point in time.

The decision framework, in the order you should actually ask it

  1. Is this a behaviour or format problem? (“Answers are too long.” “I need JSON.” “Wrong tone.”) → Prompting. Try this first, every single time, before you consider anything else.
  2. Is this a knowledge problem? (“It doesn’t know our products, our policies, our Z-tables.” “Facts must stay current.”) → RAG. This covers the large majority of what enterprises actually need.
  3. Is this a deep style or skill problem that prompting and RAG genuinely can’t reach? — a highly specialised output dialect, latency pressure from oversized prompts → only now, consider fine-tuning.

The blunt version, worth pinning above your desk: prompt first, RAG for knowledge, fine-tune rarely.

Why “just train it on our data” is the instinct to be suspicious of

It’s the reflex of someone who mentally treats an LLM like a database you load once. It doesn’t hold up:

Fine-tuning teaches patterns and style, not reliable facts — and a fine-tuned model still hallucinates, because the underlying mechanism from Lesson 1 hasn’t changed at all. Your business data changes constantly; a fine-tuned model is frozen the moment training finishes, while RAG stays current by design. Fine-tuning is expensive to run and re-run, and hard to govern — can you actually say what it memorised, and prove it to an auditor? And it does nothing for traceability: RAG can point to its sources; a fine-tuned answer can only shrug.

For “the model should know our stuff” — the most common ask in enterprise AI — RAG wins almost every time.

Where this shows up in SAP

This is exactly why SAP’s platform leans so heavily on grounding — RAGe plus the Knowledge Graph — instead of asking customers to fine-tune foundation models themselves. Grounding keeps your data in your control, current, and auditable, which fits enterprise governance far better than quietly baking facts into a set of weights nobody can fully inspect. Models like SAP-ABAP-1 are pre-trained by SAP itself on ABAP — that’s SAP’s investment to make once, not something you’re expected to redo per customer.

Try it yourself — classify before you build anything

For each of these real-shaped scenarios, name the right technique, out loud, before reading on:

  1. “Joule’s answers are too verbose for our service desk.”Prompting. Constrain the output.
  2. “The agent must answer from our 400-page returns policy.”RAG. Ground it in the actual document.
  3. “It keeps inventing material numbers that don’t exist.”RAG plus a refusal instruction — give it the real catalogue, and tell it explicitly to say “not found.”
  4. “We need output in a very specific legacy EDI dialect, every time, at low latency.” → a genuine candidate for fine-tuning — but only after prompting and RAG have actually been tried and fallen short.

If you can classify all four correctly on the first pass, you’ve just avoided the most expensive mistake in enterprise AI: solving a knowledge problem with a training run.

Key takeaways

  • Prompting changes how you ask. RAG changes what the model knows right now. Fine-tuning changes the model itself.
  • The decision order is fixed: behaviour → prompt. Knowledge → RAG. Deep style or skill → fine-tune, rarely, and only last.
  • “Train it on our data” is usually the expensive wrong answer — RAG is current, governable, and citable; fine-tuning is none of those things by default.
  • SAP deliberately favours grounding over asking customers to fine-tune.

You’ve now mastered making a model know things and answer reliably. Next, we make it act — the leap from a chatbot that talks to an agent that does something.