Chunking
The ingestion step that divides a document into smaller passages so a retrieval system can index and return the most relevant context.
Business example
A 70-page employee handbook is split by headings into passages. A leave question retrieves the approved policy section instead of sending the entire handbook to the answer model.
How it works
- 1.Parse the source while preserving useful structure such as headings, pages, tables, and metadata.
- 2.Split the content into fixed, structural, semantic, or hierarchical passages.
- 3.Optionally overlap neighbouring passages so facts at a boundary keep enough context.
- 4.Embed and index each passage while retaining its source and permission metadata.
- 5.Test retrieval with representative questions and revise the strategy when passages are too broad or too fragmented.
Common misconceptions
Related concepts
Related reading
Sources
- https://learn.microsoft.com/en-us/azure/databricks/agents/tutorials/ai-cookbook/quality-data-pipeline-rag
- https://docs.aws.amazon.com/bedrock/latest/userguide/kb-chunking.html
Reviewed:
Reviewed by: Javier Chulvi Bernad · LLM Engineer · Madrid