Skip to content

AI, decoded

Should you use prompting, RAG, or fine-tuning to customize an AI model?

Start at the cheapest rung and only climb when you must. Prompting shapes behavior with no infrastructure; RAG grounds the model in your data so answers stay current and citable; fine-tuning changes the model's weights to bake in a style, format, or skill. Most teams need prompting plus RAG, and reach for fine-tuning last — for how the model should behave, not what it should know. Intercom's Fergal Reid told Chain of Thought that a production prompt can accumulate something like 50 special cases; post-training can absorb them and shorten the prompt.

· Updated · Chain of Thought

Level 3: Leading with AI · 3.2 Build, buy or rent

RAG & RetrievalEnterprise AI

  • 3 episodes
  • 3 guest clips
  • 8 glossary terms
A ladder with prompting on the bottom rung, RAG above it, fine-tuning above that and an empty dashed rung at the top, beside the words: bottom rung first. Climb only when you must.

In detail

These three get pitched as rivals, but they solve different problems and stack cleanly. The useful framing — echoed by Databricks’ Denny Lee on the show — is a ladder: try the cheap thing first, measure, and only climb a rung when the result demands it.

1. Prompting — start here, always

Prompt engineering shapes the model’s behavior through the instruction alone: the wording, the examples, the output format. No infrastructure, instant to iterate, and on modern models it gets you further than people expect. If a better prompt solves it, you’re done — don’t build anything.

2. RAG — when the answer depends on your data

Retrieval-augmented generation fetches relevant documents at answer time and gives them to the model, so responses are grounded in your sources rather than the model’s frozen training data. Denny Lee’s example on the show is asking your company’s model for the CEO’s salary: rather than constantly retraining it to stay current, point it at a database or vector store that holds the exact figure. That keeps answers current, lets you cite where they came from, and is a main lever against hallucination — all without touching the model. If the problem is what the model knows, RAG is usually the answer.

3. Fine-tuning — when behavior must change

Fine-tuning adjusts the model’s weights on your examples. It’s the right tool when you need a consistent style or format, a specialized skill, or lower latency on a narrow task — things prompting can’t reliably pin down. It’s also the most expensive and brittle option: you need quality training data and a pipeline to retrain as things change. Denny Lee’s ladder puts it after RAG, agents, and a first pass with example questions and answers, with pretraining your own model further up, for a reason — reach for it for how the model behaves, rarely for what it knows.

The decision in one line

Prompting changes the instruction; RAG changes the context; fine-tuning changes the model. Knowledge that updates → RAG. Behavior that must be consistent → fine-tuning. Everything else → prompting first.

Why it matters

The common failure is starting at the top of the ladder — fine-tuning a model to teach it facts that change weekly, when RAG would have been cheaper and stayed current. Match the technique to the problem, climb only when you’ve measured a real gap, and remember the rungs combine: a fine-tuned model fed by RAG and steered by a good prompt is a normal production setup.

Prompting, RAG, fine-tuning: a ladder you climb only when you must A ladder, cheapest rung at the bottom. Rung one, prompting, changes the instruction: no infrastructure, start here always. Rung two, RAG, changes the context: use it when the answer depends on your data that updates. Rung three, fine-tuning, changes the model: use it when behavior, a style, format or narrow skill, must be consistent. Above the ladder, pretraining your own model, which Databricks' Denny Lee says to reach only after going up the ladder step by step. Cost and brittleness rise with each rung. Beside the RAG rung, Denny Lee's example from episode 22: asked your CEO's salary, you don't keep retraining a model to stay current; you point it at a database or vector store that holds the actual value. Underneath: the common failure is starting at the top, fine-tuning a model to teach it facts that change weekly. The rungs combine: a fine-tuned model fed by RAG and steered by a good prompt is a normal production setup. Start at the bottom rung. Climb only when you must. Each rung changes something different, and costs more than the one below it. Pretrain your own model “before you think the need to pre train”: climb first 3 · FINE-TUNING changes the model how it behaves a consistent style, format or narrow skill 2 · RAG changes the context what it knows your data, current and citable 1 · PROMPTING · START HERE changes the instruction no infrastructure, instant to iterate cost and brittleness DENNY LEE’S EXAMPLE · EPISODE 22 “What is the salary of my CEO?” An exact number the model can’t be left to guess. ✕ keep retraining the model to stay current ✓ point it at a database or vector store that holds the actual value That’s rung two. The usual mistake: starting at the top Fine-tuning a model to teach it facts that change weekly, when RAG would be cheaper and stay current. The rungs combine: a fine-tuned model fed by RAG and steered by a good prompt is a normal production setup. Climb a rung only when you’ve measured a real gap. Ladder framing from Databricks’ Denny Lee, episode 22.
Climb a rung only when you’ve measured a real gap. The ladder and the CEO-salary example are Databricks’ Denny Lee’s, episode 22; the three rungs are this page’s simplification of his steps. Download the image

Hear it from the guest

“You could take a smaller model. You can agentify it. You can ragify it. You can then go up the ladder to fine tune it before you ever need to do all these other things.”
“So instead of actually going ahead and trying to have the LM figure it out, I'm going like maybe, just maybe you can refer to some other database or a vector store or hell at this point, a lake house, somewhere that solidly says what the actual value is.”
“You've got like 50 special cases in your prompt and you're overloading your prompt And you just realize, no, I could like post-train these 50 special cases in”
Watch on YouTube

Quotes lightly edited to remove filler words.

Go deeper

From the conversation

This explainer is drawn from these episodes — each carries its full transcript.

Concepts in this explainer

Post-trainingSupervised Fine-TuningRetrieval-Augmented Generation (RAG)Fine-TuningAI HallucinationPrompt EngineeringLatencyPre-training