# Chunking

Canonical page: https://www.theglitch.ai/ai-glossary/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.](https://www.theglitch.ai/images/cards/glossary/chunking.png?v=df10ecce0ac731fb)

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](https://www.theglitch.ai/ai-glossary/retrieval-augmented-generation) · [Embedding](https://www.theglitch.ai/ai-glossary/embedding) · [Vector database](https://www.theglitch.ai/ai-glossary/vector-database)

## Guides that use it

[Write pages AI can quote.](https://www.theglitch.ai/learn/write-for-ai)

## Sources

- [Pinecone: Chunking strategies for LLM applications](https://www.pinecone.io/learn/chunking-strategies/)

Definition updated 2026-10-29.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
