esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

Prompting vs Fine-Tuning: Where Is the Line?

Where prompting stops and fine-tuning starts: what each one changes in the model, when to switch, and how to say it in your AI interview.

In short

Prompting changes what you send the model, and the model's weights stay the same. Fine-tuning trains the model on examples, so its weights change. Try prompting first, and fine-tune only when a tested prompt still can't get the style or format right.

11 min readIntermediateCommon · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

Prompting is changing what I send the model: instructions, examples and retrieved text. The model itself stays the same. Fine-tuning changes the model. I train it on good examples, and its weights, the numbers inside it, are updated. So I prompt first, because it's cheap to test. I fine-tune only when the style or format still drifts after good prompts and a proper test set. Facts that change belong in retrieval.

What are prompting and fine-tuning, in plain words?

Prompting means writing everything the model sees each time you call it: instructions, a few worked examples, and any text your app pastes in. The model itself stays the same. Fine-tuning means training an existing model on your own examples, so its weights change. Weights are the numbers inside the model that decide how it responds.

Think of a pharmacist. A dosing sheet pinned on the wall is prompting, and you can swap it on Monday. Retraining the pharmacist's habits on a thousand past cases is fine-tuning. It takes weeks and is hard to undo. An AI team at a mid-size insurer faces the same choice with a claims summariser that must write notes in one exact layout.

Key words

Prompt
Everything sent to the model with one request: rules, examples and pasted text.
Few-shot example
A sample input with the answer you want, placed inside the prompt.
Weights
The numbers inside a model. Training changes them, and a prompt doesn't.
Fine-tuning
Training an existing model on your examples, so its weights change.
Retrieval
Finding the right text in your own files and adding it to the prompt.

Where exactly is the line?

Ask one question: does the fix change what the model receives, or what the model is? If the fix lives in the request, it is prompting, and you undo it by editing text. If it changes the weights, it is fine-tuning, and undoing it means going back to the old model file.

  • Prompting

    Changes the input

    Instructions, examples and retrieved text go in each request. The weights stay fixed, so you can test an edit in minutes.

  • Fine-tuning

    Changes the model

    Training examples update the weights in a training run. Every later request uses the new model, and the prompt can often be much shorter.

Take a bank's support assistant that writes long, chatty replies, while the team wants two short sentences. Adding that rule to the prompt and re-running the test set takes minutes. Training the model would first mean collecting approved replies, then running the training.

Where each fix changes the answer

A wrong answer

the team sees the failure first

Change the input

Instructions

clearer rules and a schema

Few-shot examples

worked answers in the prompt

Change the model

Training examples

good answers, saved as a file

Training run

updates the weights

Right answer

tested on the same set

  1. 1The cheaper path: change the text the model receives.
  2. 2The costlier path: train the model on good examples.
  3. 3A better prompt often fixes it with no training at all.
  4. 4Training changes the model, then the same tests check it.
Two ways to fix a wrong answer. Prompting changes the text sent with each request. Fine-tuning trains the model, which then runs with new weights. Both are tested against the same test set.

Few-shot examples sit on the prompting side, even though they teach. The GPT-3 paper tested its tasks with examples in the prompt and no training steps. Fine-tuning has its own benefit too: OpenAI notes that training can replace long instructions and examples, so the prompt gets shorter.

  • “For all tasks, GPT-3 is applied without any gradient updates or fine-tuning, with tasks and few-shot demonstrations specified purely via text interaction with the model.”

    GPT-3 paper, Brown et al. (2020)

  • “We use it to update the model's weights and produce outputs like the ones included in your data.”

    OpenAI, supervised fine-tuning guide

LoRA sits in between. It is still fine-tuning, but a cheaper kind. The original weights are frozen, and small extra tables of numbers, called matrices, are trained beside them. The LoRA paper says this greatly reduces the number of trainable parameters. It notes that full fine-tuning, which retrains all model parameters, becomes less feasible as models grow.

Tip

Say the line in one sentence: prompting changes the input, and fine-tuning changes the model. Interviewers listen for whether you know which one you are changing.

When does prompting run out?

OpenAI's optimisation guide describes two kinds of problem. A context problem means the model lacks knowledge it never saw, its knowledge is out of date, or it needs your private information. A behaviour problem means the output is inconsistent or has the wrong format, the tone or style is off, or the reasoning is not being followed consistently.

Context problems are usually fixed with retrieval, which puts the right text into the prompt for each question. Behaviour problems are where fine-tuning helps, because training shapes how the model responds. OpenAI also says prompt engineering is typically the best place to start, and that its biggest issue is that it often doesn't scale. Anthropic's prompting guide says not every failing eval is best solved by prompt engineering. A different model can sometimes improve latency and cost more easily.

Take the bank's support assistant from the practice section. It quotes last year's card fees, because this year's fee sheet is not in its prompt. That is a facts problem, and the fix is retrieval: fetch the current sheet for each question. If its replies to upset customers also drift in tone, that is a style problem, and tuning could help later.

Which fix for which failure

Try prompting first

clear rules and a few examples

Still failing: why?

Facts missing or old

new or old text the model lacks

Style or format drifts

the same rules break now and then

Add retrieval

current text added per question

Fine-tune the model

train on approved examples

  1. 1Start with the prompt, since it is the cheapest change.
  2. 2Missing or old facts go to retrieval, which adds current text.
  3. 3Style or format that keeps drifting is the case for tuning.
Start with the prompt. Missing facts go to retrieval, and style or format that keeps drifting goes to fine-tuning. Each fix is checked against the same test set before it ships.
  1. 1

    Build the test set first

    Collect real cases with the answers you want, and a score for each one. These tests, called evals, come before any training.

  2. 2

    Improve the prompt

    Write clearer rules, add the output layout and a few examples, then re-run the same test set.

  3. 3

    Sort what still fails

    Missing or old facts go to retrieval. Style, format or tone that keeps drifting goes to fine-tuning.

  4. 4

    Fine-tune only what remains

    Train on good examples, test against the same set, and keep the prompt if it still helps.

Tip

Check availability before you plan a tuning project. OpenAI says its fine-tuning platform is winding down and no longer open to new users. As of November 2026, eligible existing customers can create training jobs until December 15, 2026, unless the base model shuts down earlier. Google's Vertex AI tuning guide says tuning works by training on a dataset of examples, so compare vendors before you commit.

How would you decide for a claims summariser?

A claims team at a mid-size insurer uses a summariser that writes a short note for each claim, in one exact layout that the claims system reads. The numbers below are made up, to show the logic.

First round: a prompt with the layout spelled out and five example claims. On a made-up test set of 200 claims, 168 pass. The 32 failures fall into two piles. Eleven notes invent a policy number that is not in the claim. That is a facts problem, so the fix is to fetch the policy record for each claim. The other 21 keep drifting: the note runs long, and the tone turns cold with angry customers. That is a behaviour problem, so I would test fine-tuning on about 400 approved notes.

  • Prompt only

    Invents policy numbers

    The layout looks right, but a made-up policy number still reaches the claims system.

  • Right fix per failure

    Facts from retrieval, style from tuning

    The policy record is fetched per claim, and tuning is tested only on the length and tone failures.

I keep the prompt after tuning. The tuned model still gets the layout rules, and the same test set decides whether the tuned version is better.

What does the interviewer want to hear?

A strong answer covers

  • The line: prompting changes the input, fine-tuning changes the weights.
  • Prompting first, with an eval set to measure what it gets right.
  • Facts that change go to retrieval.
  • Fine-tuning fits steady behaviour: format, style and tone.
  • Vendor check: tuning options change, so confirm availability first.
  • A cheaper middle ground, such as LoRA, when full tuning is too costly.

Common traps

  • Trap"Fine-tuning is how you teach a model your facts."

    BetterFine-tuning is a poor place to store facts. A trained fact goes stale, and each change needs another training run. Facts that change go to retrieval.

  • Trap"Prompting is just typing better questions."

    BetterPrompting also means rules, examples and retrieved text. It changes the input, which is a real design job.

  • Trap"Fine-tuning always beats prompting."

    BetterIt depends on the failure. Drifting style may need tuning, but missing facts need retrieval.

Can you spot the right fix?

Spot the right fix

A bank's support assistant quotes last year's card fees. Which fix is right?

Quick check

A team needs every reply in one five-field layout. A clear prompt with five examples, plus a schema check with retries, still breaks the layout about one reply in ten. What is the next step?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q281Fine-tune vs RAG vs prompting: when to use which?10 min
  2. Q284What is LoRA?10 min
  3. Q282What is full fine-tuning?10 min
  4. Q306Fine-tuning for tone or format?11 min
  5. Q033What is in-context learning?11 min
  6. Q076What is prompt engineering?11 min

Learn it in depth

Last updated on 26 November 2026

Building an assistant that needs new facts or a fixed format?

I design and build AI products and agents, including the UI and the system behind them. Book a short call and tell me what the assistant gets wrong today.