Skip to content
mentoor

Topic 5 of 6 · 5 min read

Choosing prompting, retrieval or fine-tuning

Goal: Choose the lightest customization that meets a stated need and explain why heavier options are not justified yet.

Climb the customization ladder one rung at a time: improve the prompt first, add retrieval when the model lacks facts, and fine-tune only when you need consistent behaviour or lower cost that the first two cannot give. Each rung costs more to build and more to change, so stay on the lowest one that meets the need.

Check yourself · 1 of 3

A support bot gives outdated return-policy details because the policy changed last month. Which fix fits best?

Choose one answer

Why it matters

Fine-tuning feels serious, so teams reach for it early. Most failures are cheaper to fix lower down. Vendors that offer all three, such as OpenAI in its optimization guide, advise starting with evaluations and prompt changes, then adding retrieval or fine-tuning for the specific gap.

The three rungs

  1. Prompting. Better instructions, examples and output format. Changes take minutes, cost nothing extra and can be undone. Try this first.
  2. Retrieval. The system looks up relevant documents and puts them in the prompt. This fixes missing or changing facts: your price list, policies, product docs. The model does not need to be changed, and updating a document updates the answer.
  3. Fine-tuning. You train the model further on examples. This fixes behaviour: a fixed style, a strict output structure, a task done the same way thousands of times. Distillation, where a smaller model learns from a larger model's outputs, can cut cost and delay at scale. Fine-tuning is poor at adding fast-changing facts.

How to choose

Start with a test set of real cases and a score. Then ask what the failures look like:

  • The model ignores instructions or formats badly: improve the prompt.
  • The model gives wrong or outdated facts about your business: add retrieval.
  • The model knows enough, but is inconsistent in tone or structure, or the bill is too high for a simple task: consider fine-tuning or distillation.

Move up only when the failures on your test set remain after serious work on the rung below.

Before and after

Weak: "Our support bot makes mistakes, so let's fine-tune a model on our docs."

Better: "Of 100 test questions, 30 failed. 24 failed because the bot did not know current return rules, so we added retrieval over the policy pages and 20 of those passed. Four failures were tone problems that a better prompt fixed. Two remain, so we hold off on fine-tuning."

What goes wrong

Teams fine-tune to teach facts and find the answers go stale. Others add retrieval over messy documents and blame the model for what the search returned. Others skip a test set, so they cannot tell if any rung helped.

Examples

Match the failure to the rung

Failure 1: the bot quotes last year's shipping fees. Rung: retrieval over the current fee page.

Failure 2: replies come back in five different formats. Rung: prompt with a fixed template, then fine-tune only if it still drifts.

Failure 3: a simple tagging task costs too much at millions of calls a month. Rung: distil into a smaller model once quality on the test set is proven.

Key points

  • Prompting is cheapest and fastest, so try it first and measure on a test set.
  • Retrieval fixes missing or changing facts by looking them up, and updating a document updates the answers.
  • Fine-tuning fixes behaviour such as style, structure or consistency, and distillation can lower cost for narrow tasks.
  • Fine-tuning is a poor way to teach facts that change.
  • Move up a rung only when failures on your own test set remain after real effort on the rung below.

Common mistakes

  • Fine-tuning to add facts that change every month.
  • Blaming the model for wrong answers when retrieval returned the wrong passage.
  • Moving to a heavier rung without a test set that shows the lighter one failed.
  • Fine-tuning before the prompt has had a serious revision.

Check yourself · 2 of 3

What should a team do before moving from prompting to fine-tuning?

Choose one answer

Check yourself · 3 of 3

A simple tagging task runs millions of times a month, and a large model costs too much. Which option is most likely to help once quality is proven?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic