# Chunking

> Chunking is cutting long documents into short passages before they're indexed, so a search can return just the part that answers a question.

Canonical: https://heykiko.io/glossary/chunking
Last updated: 2026-11-05

## What it means

Chunks that are too long bury the answer in other text; chunks that are too short lose the context, such as the exception next to a rule.

## Related

- [RAG (retrieval-augmented generation)](https://heykiko.io/glossary/rag)
- [Embeddings](https://heykiko.io/glossary/embeddings)
- [Knowledge base](https://heykiko.io/glossary/knowledge-base)
- [How to train a chatbot on your website](https://heykiko.io/blog/how-to-train-a-chatbot-on-your-website#how)
- [Full glossary](https://heykiko.io/glossary)
