ai /Practical AI0 / 55 lessons complete

LEVEL 02 · LESSON 19

Parent-child retrieval

Search small to find the right place; read larger to understand it.

What it is

Parent-child retrieval searches smaller passages but returns a larger containing section when more context is needed.

Why it matters

Small passages are often precise search targets. Larger sections preserve definitions, qualifications, and exceptions needed to interpret them.

A business example

A search matches one paragraph saying travel expenses are reimbursable. The system returns the whole parent section, including the spending limit and approval requirement that follow it.

How it actually works

During indexing, assign each small child chunk a stable link to its parent section. Search the children, map the matches to parents, remove duplicate parents, and fit useful context into the request budget. Parent size needs testing: returning an entire manual for every match defeats the benefit. Keep citations precise enough that a reader can locate the actual supporting passage.

A common misconception

Returning more surrounding text does not always help. Too much context can bury the answer and consume resources.

ONE SENTENCE TO REMEMBER

Search small to find the right place; read larger to understand it.

CHECK YOUR UNDERSTANDING

A system searches small passages but returns their parent sections. Answers improve, but responses slow down and sometimes bury the key sentence. What should the team adjust?

Show the answer

Answer: D.

Search small to find the right place; read larger to understand it. Parent size needs testing, because too much context can bury the answer and consume resources. Keep citations precise enough that readers can find the supporting passage.

Take it into your next meeting

What surrounding text is necessary to interpret your most frequently retrieved policy rule?

One more concept, understood.

Mark this lesson complete to keep your place.