Chunking
Definition
Dividing longer documents or texts into smaller, usefully processable sections for search, embeddings or RAG.
In chunking, documents are segmented in such a way that individual sections fit into search index, embedding model or context windows. Strategies range from fixed size with overlap to structure- or meaning-based chunking. Size and limits affect retrieval quality, cost and contextual fidelity.
Simply explained
A long document is broken down into smaller pieces of text so that the search can find exactly the right places.
Why it matters in practice
Central to RAG and semantic search, because poorly cut chunks lose relevant connections or contain too much irrelevant context.
Example from business
Example scenario: A manual is segmented along headings and paragraphs, and each section is embedded separately.
Limits and pitfalls
- Use a fixed chunk size unchecked for all documents; tear apart tables or headings; choose overlap too large; do not test quality with real questions.
Origin & history
Chunking comes from word processing and information search and became a central architectural topic with embedding and RAG systems.
Use in mid-sized companies
- Test multiple strategies with representative document types and real search queries; obtain metadata and document structure if possible.
Frequently asked questions
What is a chunk?
A delimited content section. Is smaller always better? No. What is semantic chunking? Segmentation according to content context.
Sources
- RAG-Chunking · Microsoft Azure Architecture Center, RAG-Chunking
Source verification: 09.10.2026. Definition and documented classification cross-checked; examples describe possible applications.
Editorially reviewed on: