Skip to content
mentoor

Topic 2 of 5 · 4 min read

Fine-tuning teaches behaviour, retrieval supplies facts

Goal: Classify a requirement as a knowledge gap or a behaviour gap and choose retrieval, fine-tuning or both accordingly.

Fine-tuning changes how a model behaves; retrieval changes what it knows right now. Decide which kind of gap you have before you pick the tool. Many teams fine-tune to "teach the model our docs" and end up with a model that sounds right and still gets facts wrong.

Check yourself · 1 of 3

Support answers quote last quarter's price list. Which gap is this?

Choose one answer

Why it matters

Fine-tuning adjusts the model's weights using example inputs and outputs. It is good at making a model follow a format, keep a tone, use your labels or handle a narrow task consistently. It is a poor way to store facts. The facts are blended into the weights, you cannot point to the source, you cannot delete one fact, and a document change means training again. The model can still produce a confident wrong version of what it half learned.

Retrieval puts the current text in front of the model at question time. The answer can quote and cite it, and updating a document is a re-index, not a training run.

How to classify the gap

Ask what is wrong with the current answers:

  1. The model lacks information (price list, policy, this week's release notes): a knowledge gap. Use retrieval.
  2. The model has the information but answers in the wrong shape (wrong JSON fields, wrong tone, ignores your house style, misreads your internal abbreviations): a behaviour gap. Try a better prompt with examples first, then fine-tuning if that is not enough.
  3. Both: retrieve the facts, and fine-tune the behaviour. This is common for domain assistants.

The OpenAI guide on optimizing accuracy draws the same line: retrieval for context problems, fine-tuning for how the model acts.

Before and after

Request: "Our support bot gets the refund window wrong."
Weak plan:   Fine-tune on 2,000 old tickets so it learns the refund policy.
Result:      It repeats the old 30-day window after policy moved to 14 days.

Better plan: Index the live policy page, retrieve it for refund questions,
             cite the section. Change the page and the answer changes.
Request: "Replies must be a JSON object with fixed keys and our tone."
Plan:    Prompt with 3 examples; fine-tune on 500 reviewed replies if
         the prompt still breaks the schema.

What goes wrong

  • Fine-tuning for freshness. The model knows only what it saw at training time.
  • No citations. A fine-tuned fact has no source link to show a user or an auditor.
  • Skipping the cheap tests. A prompt with examples or structured output often fixes a behaviour gap without training.
  • Training on unreviewed data. The model learns your old mistakes along with your style.

Examples

Same symptom, different gap

A legal assistant cites a clause that was amended last month. That is a knowledge gap: index the current contract. A different assistant gets every fact right but writes four paragraphs when the team wants a two-line verdict. That is a behaviour gap: show examples, then fine-tune if needed.

Both gaps at once

A claims assistant must use the current policy (retrieval) and always return a fixed set of fields in the insurer's wording (fine-tuned or prompted format). The retriever supplies the clause; the tuned behaviour shapes the reply.

Key points

  • A knowledge gap means the model lacks information; a behaviour gap means it has the information but answers in the wrong form.
  • Retrieval suits knowledge gaps because the facts stay current, citable and easy to remove.
  • Fine-tuning suits behaviour gaps such as format, tone, labels and narrow repeated tasks.
  • Facts absorbed by fine-tuning cannot be cited, updated individually or reliably deleted.
  • Try a prompt with examples before fine-tuning, and combine both when you have both gaps.

Common mistakes

  • Fine-tuning on documents to add knowledge that changes.
  • Expecting a fine-tuned model to cite where a fact came from.
  • Fine-tuning before trying a prompt with examples.
  • Treating the choice as either-or when the product has both gaps.

Check yourself · 2 of 3

Which requirement is best met by fine-tuning rather than retrieval?

Choose one answer

Check yourself · 3 of 3

A team fine-tunes a model on 3,000 policy documents. Two months later the policy changes. What is the main problem?

Choose one answer

Practice items, not counted towards your mastery.

Start here