Back to AI Engineering Mind Map
中文·English
🤖 AI EngineeringID: parent-child-chunking

Parent-Child Chunking

Parent-Child 父子切块策略
🎯Core Definition
Parent-Child Chunking (Hierarchical Document Chunking) is a two-tier (or multi-tier) tree-structured RAG chunking paradigm; a raw document is first partitioned into large, context-rich segments (Parent Chunks, e.g., 1000-2000 tokens per section), and each parent chunk is subdivided into multiple smaller segments (Child Chunks, e.g., 100-200 tokens); only child chunks are vector-embedded with metadata pointers (`parent_id`); during search, high-precision child vector hits automatically resolve to their encompassing parent document for LLM generation.
💡Use Cases
Hierarchically organized technical manuals, API documentation, legal policy codes, and multi-chapter corporate knowledge bases.
Key Problems Solved
Small chunks offer superior semantic retrieval accuracy but starve LLM generation of surrounding context; large chunks preserve context but dilute vector similarity; Parent-Child unifies fine-grained retrieval with coarse-grained rich generation context.
🎯5 High-Frequency Exam Points
1
Compare Parent-Child Chunking vs Sentence-Window Chunking in context structure and multi-level inheritance?
2
When multiple child chunks hit the same parent document, how to deduplicate and score-weight the returned parent?
3
How to leverage native Markdown heading trees (H1->H2->H3) to automatically build multi-tier Parent-Child tree node hierarchies?
4
Explain the architecture of storing parent documents in a DocStore (Mongo/Redis) synchronized with child vector indexes?
5
How to ensure child chunk boundaries do not cut through table rows or fenced code blocks within parent chunks?
Updated 2026-08-14
🎯
Test Your Knowledge: Practice Questions for "Parent-Child Chunking"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardSentence-Window ChunkingNext CardSemantic Chunking

🔗 More AI Engineering Knowledge Cards

Vector Distance Metrics & L2 NormalizationScalar Quantization (SQ8/SQ4)Product Quantization (PQ)ADC Asymmetric Distance Computation