Skip to content
mentoor

Topic 2 of 6 · 4 min read

Knowledge gaps call for retrieval

Goal: Classify a list of product requirements as knowledge problems or behaviour problems and route each to retrieval or training.

If the model lacks facts, give it the facts at request time with retrieval or a tool. If it lacks a habit, that is the job for training. Mixing the two up is the most common reason fine-tunes disappoint.

Check yourself · 1 of 3

Which requirement is a knowledge problem rather than a behaviour problem?

Choose one answer

Why it matters

Fine-tuning changes how a model behaves: its style, format and choices. It is a poor way to store facts. A model trained on your price list may recite a price with full confidence and be wrong. It cannot say which document the price came from. When the price changes next week, you must train again. Retrieval keeps facts in a database you can update, search, permission and cite. The original retrieval-augmented generation paper made this case: keep knowledge in an index that can be edited, and let the model read from it.

How to sort a requirement

Ask four questions about each requirement.

  1. Does the answer depend on facts that change? Prices, stock, policies, tickets: retrieval or a tool call.
  2. Is the data private or per user? Access rules apply at retrieval time. Weights have no per-user permission.
  3. Must the answer cite a source? Only retrieval can point at a passage.
  4. Is the gap in how it answers, not what it knows? Tone, structure, always using a tool the right way: behaviour, so tuning is a candidate.

A tool call, such as an API that returns the live order status, is retrieval in a stricter form: exact, fresh and auditable.

Before and after

Weak: "The assistant gets our return policy wrong, so we will fine-tune on the policy PDF."

Better: "Policy answers are knowledge. Index the policy, retrieve the matching clauses, answer from them and quote the clause. The reply format, which is the same four-line template every time, is behaviour, and we measure whether examples in the prompt hold it first."

Hybrid is normal

Production systems often use both: retrieval for the facts and a small tune for the answer style. Treat them as separate decisions with separate evals, so you can tell which one moved the score.

What goes wrong

  • Training facts into weights. Answers sound sure and carry no source. Stale facts survive until the next run.
  • Retrieval with a poor index. If chunking or search returns the wrong passage, a better model will not save it. Eval retrieval on its own.
  • Ignoring permissions. Data trained into a shared model can surface for the wrong user.
  • Calling every miss a knowledge gap. If the right passage is in the context and the model still answers badly, the problem is behaviour or reasoning.

Examples

One product, two problems

A bank assistant must quote current fee schedules (knowledge, changes monthly, must cite) and always reply in a fixed three-part template (behaviour). Fees go to retrieval. The template is first tested with prompt examples and becomes a tuning candidate only if that fails.

The right passage was there

Retrieval returns the correct refund clause, and the model still tells the customer the wrong window. Adding more documents will not help. This is a behaviour or reasoning failure, to be tested with prompt changes, a stronger model, then possibly training.

Key points

  • Fine-tuning shapes behaviour; it is an unreliable and unattributed way to store facts.
  • Facts that change, are private or must be cited belong in retrieval or a tool call.
  • Trained-in facts go stale until the next training run, while an index can be updated at once.
  • Sort each requirement by asking whether it is about what the model knows or how it answers.
  • Evaluate retrieval separately from generation so you know which part failed.

Common mistakes

  • Fine-tuning on a policy or product document to teach the model facts.
  • Expecting a trained-in fact to come with a source.
  • Judging retrieval and generation together, so a bad index looks like a bad model.
  • Skipping per-user permissions because the data is "in the model" rather than in a database.

Check yourself · 2 of 3

Why is training facts into a model's weights a weak way to keep them current?

Choose one answer

Check yourself · 3 of 3

The correct policy clause is in the prompt, but the model still gives the wrong refund window. What kind of problem is this?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic