Stage 3 · Expert · L6
Grounding Models
The model does not know your data. Give it eyes.
13 lessons · 124 minSteady
About this chapter
Retrieval is a search engine bolted to a writer. Get the search right and the writing mostly takes care of itself, which is why this chapter is about chunking, indexes and ranking rather than about prompts. You will rank passages by meaning, cut documents in the place that keeps a rule whole, measure what an approximate index gives away, and merge a word search with a vector one. Then you will separate retrieval failures from writing failures, which is the skill the rest of it rests on, and work out whether any of it beats pasting the whole handbook into the window.
What you will be able to do
- 18 min
Why the Model Does Not Know Your Data
Explain the gap between training text and your own documents.
- 210 min
Search by Meaning
Turn a question and a set of passages into points, and rank them by angle.
- 311 min
Chunking Decides Everything
Choose a chunk size and an overlap for a document, and say why.
- 410 min
Vector Indexes
Explain approximate search and name the recall it trades away for speed.
- 510 min
Keywords Still Matter
Run a word search beside a meaning search and merge the two ranked lists.
- 69 min
Read the Shortlist Properly
Add a second pass over the top results and measure what it buys.
- 79 min
Answers With Receipts
Design an answer format whose every claim points at a passage you can open.
- 810 min
Retrieval in Arabic
Fold spellings on both sides of a search and name what folding costs.
- 911 min
Measuring the Two Halves
Score retrieval and answering separately, and find which one failed.
- 1010 min
Four Ways It Fails
Name the failure mode from the symptom, and pick its repair.
- 119 min
Paste It All, or Go and Find It
Work out the cost of both approaches for a real workload and choose.
- 129 min
Teach It, or Show It
Choose between changing the weights and changing the window, with a reason.
- 138 min
Every Tool Is a Retriever
Treat a tool call as grounding, and treat its result as untrusted data.