Chunking

Splitting documents into smaller pieces before embedding them, so retrieval can return just the relevant part.

Chunking, common card #053 in The Glitch AI glossary: Splitting documents into smaller pieces before embedding them, so retrieval can return just the relevant part.
GLS 053 · common

Also called: Text splitting.

For: Builders

Why it matters

Chunk size quietly decides RAG quality: too big and answers get diluted, too small and context gets lost.

In practice

A 40-page handbook is split by heading into 120 chunks of a few paragraphs each.

Watch for

Splitting mid-table or mid-sentence breaks meaning; split on the document’s structure where you can.

Related terms

Retrieval-augmented generation · Embedding · Vector database

Guides that use it

Write pages AI can quote.

Sources

Definition updated 2026-10-29.

The Ultimate AI Glossary (2027): every term