EngineeringUpdated 2026-10-24

Chunking

Splitting long documents into smaller passages for retrieval and embedding, a key step in RAG quality.

#RAG#检索#文档

In plain language

Chunks that are too large add noise; too small lose context. Common strategies include fixed length with overlap, heading/paragraph splits, semantic boundaries and parent-child chunks (retrieve small, return large). Chunk size should match the embedding model and question type: factual lookup suits small chunks, multi-hop reasoning suits larger context or graph structures. Preserve source, heading and page metadata for citation and filtering.

Example

Split a product manual by chapter and section, attach model number and page, then filter by model before semantic matching.

Recommended tools

Related terms