Child points to newer parent
Detect: Source versions disagree during retrieval.
Recover: Require matching lineage and rebuild the inconsistent chunk set.
Retrieve precise child passages, then expand them into bounded parent context that preserves meaning, provenance, and access boundaries.
Parent-child chunking separates the unit optimized for retrieval from the unit supplied for interpretation. Small child chunks make individual facts easier to match; a larger parent section restores definitions, exceptions, or surrounding procedure steps. Stable child-to-parent relationships let the retriever find a precise passage without forcing the model to reason from a context fragment.
Parent expansion is not permission to attach an entire document. The system should select the smallest coherent parent, deduplicate siblings, and enforce a token budget. Parent and child records must share version lineage; otherwise a retrieved child can be explained using a different revision. Access control also applies to the expanded parent.
A prototype compares passage-only answers with section-expanded answers on questions requiring nearby definitions or exceptions.
Production stores explicit lineage, source offsets, section hierarchy, and authorization metadata for both levels.
At scale, use bounded expansion policies, update parent-child sets atomically where possible, and measure expansion usefulness against context cost.
Recognizes sections, tables, headings, and source offsets.
Stores focused passages optimized for similarity retrieval.
Preserves coherent sections with document and version identity.
Fetches authorized parent context and deduplicates overlapping children.
Chooses the useful portion of each parent within the prompt allocation.
flowchart LR
D["Versioned maintenance manual"] --> P["Parent procedure sections"]
P --> C["Child passage index"]
Q["Technician question"] --> C
C --> R["Matched child identifiers"]
R --> E["Authorized parent expansion"]
P --> E
E --> B["Deduplicated context budget"]Extract meaningful document boundaries instead of relying exclusively on character counts.
Assign children to versioned parents and retain precise source positions.
Search small passages under the request’s access and freshness constraints.
Fetch matching parent revisions and reject missing or unauthorized expansions.
Merge sibling hits and preserve the relevant subsection plus necessary definitions.
Present source pointers that distinguish the matched passage from the broader explanatory section.
Aviation maintenance · Illustrative enterprise scenario, not a reported customer outcome.
A maintenance assistant helps technicians locate approved inspection instructions.
A retrieved sentence gives a torque value but omits the nearby exception for a specific component revision.
Return the value together with the procedure conditions and source revision.
Manual sections form parents; individual steps and notes form indexed children.
If the matching parent revision is unavailable, the assistant withholds the procedure answer and links the verified manual location.
Measure applicability accuracy and evidence coverage against prompt size; operational benefit comes from preserving conditions, not merely retrieving more text.
| Decision | Benefit | Cost |
|---|---|---|
| Small children | Improve targeted matching. | May lose context before expansion. |
| Larger parents | Restore definitions and exceptions. | Consume tokens and can introduce distractors. |
| Structural parsing | Produces semantically coherent boundaries. | Requires format-specific extraction and quality checks. |
Detect: Source versions disagree during retrieval.
Recover: Require matching lineage and rebuild the inconsistent chunk set.
Detect: Parent includes restricted annex content.
Recover: Authorize expanded sections independently or split the parent.
Expand to the smallest useful coherent section.
Deduplicate parent context while preserving child evidence markers.
Use document structure to retain applicable labels and units.