Fine-Tuning, and When Not ToLesson 4 of 84

Module 1 · Deciding whether to fine-tune at all

Try the retriever first

In this lesson

  • 9 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 4 of 9 in this chapter

This chapter’s goalDiagnose a model failure as a format, knowledge, style, capability or cost problem, name the cheapest lever that fixes that class, and defend in writing a decision to fine-tune (or not to) against the prompt, retrieval, encoder and distillation alternatives and their licence constraints.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

The generator is usually innocent

When a retrieval-augmented system answers badly, almost everybody blames the model that wrote the answer. That is the wrong end. Before any of that, measure one number: how often the passage containing the answer was in the context at all.

This is recall at k. Take fifty questions for which you know the correct source passage, run your retriever, and count how often the right passage appears in the top k that you actually pass to the model.

Python
hits = sum(gold_id in [c.id for c in retrieve(q, k=5)] for q, gold_id in pairs)
print(f"recall@5 = {hits}/{len(pairs)} = {hits/len(pairs):.2f}")

If that comes back 0.62, then 38% of your failures were decided before the language model saw anything. No amount of fine-tuning the generator recovers a document that was never in the window. You would be training a model to guess better, which is exactly the behaviour you are trying to stop.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Running Models Yourself exam.

Stuck on something?Ask Rafael, your AI tutor

How to cite: Addaly (2026) ‘Try the retriever first’, in Fine-Tuning, and When Not To. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/fine-tuning/try-the-retriever-first (Accessed: 29 November 2026).