Parent-Child Retrieval
In this article
- Explain why a small piece of text is better for finding an answer and a larger one is better for understanding it.
- Build child records that carry a stable parent id, offsets and the parent's permission.
- Turn a list of child hits into a deduplicated set of parents that fits a context budget and keeps the evidence for each.
- Spot how a stale parent id or a missing permission breaks provenance or leaks text.
- Terms defined here: parent-child retrieval.
Overview
A member of the support staff asks the assistant: "Who can approve a fee waiver above $50?" The answer sits in one paragraph of a handbook chapter, but that paragraph only makes sense next to the rest of the chapter: the exceptions, the limits, who counts as a manager. Cut the handbook into small pieces and the search finds the right sentence without its surroundings. Cut it into big pieces and the surroundings arrive, but the search has a harder time telling which piece is about this question.
You do not have to pick one size. Search small pieces, then hand the model the larger piece each one came from. By the end you can build that two-level pattern, merge hits that lead to the same larger piece, keep a citation to the exact lines that matched, and spot the two ways the link between the levels breaks.
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
- Two jobs, two sizes
- Children that know their parent
- Search the children
- Group by parent
- Pack and cite
- When the link breaks
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions