Evidence Packing
In this article
- Split a question into the needs its answer depends on, and admit retrieved chunks in rank order only while they cover a need still open.
- Collapse two chunks that say the same thing to the shorter one, and keep a chunk that adds a distinct rule.
- Render each kept chunk with its heading so a short passage keeps its meaning.
- Stop packing when nothing new is covered, and test the packer against a fixed top-K baseline.
- Terms defined here: evidence packing.
Overview
A customer writes: "My BL-R7 shows E-42 and arrived 20 days ago. Can I return it, and how do I reset it?" Your search hands back eight passages, best first. How many go into the request you send to the model? "The best three" sounds sensible. "As many as fit" sounds generous. Both can leave the customer without an answer, or pay for text that only gets in the way.
By the end you can choose passages by what each adds to the answer, drop repeats, keep each passage readable on its own, stop when nothing new is left to add, and check whether that logic pays for itself.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Three questions, four needs
- The obvious answers
- Packing for coverage
- Same text twice
- Keep the heading
- Stopping with room to spare
- Worth the code?
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions