Retrieval Sufficiency and Stopping
In this article
- Write the claims an answer needs before any search, and track each one in a ledger with a status and the chunk ids behind it.
- Tell a structured grader verdict apart from weak hints such as retrieval scores and the model's own confidence.
- Apply a stop test in code that ends the loop when every claim is supported, the round cap or budget is reached, or a round brings nothing new.
- Choose a full answer, a partial answer or an abstention with an offer of a person from the ledger, and count both kinds of grader error on labelled cases.
Overview
Your assistant answers two-part questions, and one part is often missing from what it found. It can search again, but someone has to say when to stop. Ask the model "do you have enough?" and a yes comes easily, because the passages are on topic. On topic is not enough: a customer who asked two things and got one answered has not been helped.
In a made-up example, Brightline, a home-internet provider, runs a support assistant that searches its help pages and router manuals and passes the best 3 chunks (short passages of a page) to the answer step, the later model call that writes the reply. You will write the claims an answer needs, track them in a ledger, stop the loop with a test in code, and pick a full answer, a partial answer or an honest "I can't".
This article is part of Pro
Pro includes the staff-level and expert articles in every path. It opens after the four core paths are complete.
Still to read in this article
- Write the claims before you search
- What may fill a row
- The ledger, round by round
- The stop test
- When nothing new arrives
- Tuning the grader
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions