# Chunk Size

- **Canonical URL:** https://getaimath.com/dictionary/chunk-size/
- **Topics:** [Context, Memory & Retrieval](https://getaimath.com/dictionary/category/context-memory-and-retrieval/)
- **Last updated:** 2026-11-25

## What is Chunk Size?

**In one sentence:** Chunk size is how big each piece of a split document is, usually measured in tokens or characters.

Small chunks are precise but may lack context. Large chunks keep more context but can include unrelated text and use more of the prompt. People test different sizes to find what works best.

![Context Window vs. Memory: Your Desk vs. The Filing Cabinet — Simple cartoon comparing the AI Context Window (a small desk that can only fit a few pages right now) with External Memory & Search (a big filing cabinet where a librarian grabs just the 3 pages you need).](https://getaimath.com/diagrams/context-memory-and-retrieval.png)
*Napkin Diagram (Context, Memory & Retrieval): The context window is the small desk the AI can see right now; search grabs the right pages from the filing cabinet.*

### Quick Math / Rule of Thumb

Most RAG pipelines start around 256–512 tokens per chunk with 10–15% overlap (~30–60 tokens) so sentences aren't sliced mid-thought.

## What is an example of Chunk Size?

A chunk size of 512 tokens is a common starting point.

## Why does Chunk Size matter?

The right chunk size can make retrieval much more accurate.

## Related Concepts

- [Chunking](https://getaimath.com/dictionary/chunking/): Chunking splits long documents into smaller pieces before turning them into embeddings for search.
- [Chunk Overlap](https://getaimath.com/dictionary/chunk-overlap/): Chunk overlap repeats a little text between neighboring chunks so ideas split at the edges are not lost.
- [Metadata Filtering](https://getaimath.com/dictionary/metadata-filtering/): Metadata filtering narrows search results using extra information, such as date, author or category, alongside similarity.
- [Reranking](https://getaimath.com/dictionary/reranking/): Reranking reorders search results with a more careful model so the most relevant ones end up on top.
- [Chroma](https://getaimath.com/dictionary/chroma/): Chroma is a free, open-source vector database designed to be simple to use for AI apps.
- [Relevance Score](https://getaimath.com/dictionary/relevance-score/): A relevance score is a number showing how well a result matches a search query.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/chunk-size/)
