# Chunk Overlap

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

## What is Chunk Overlap?

**In one sentence:** Chunk overlap repeats a little text between neighboring chunks so ideas split at the edges are not lost.

If a key sentence is cut between two chunks, neither chunk may make sense on its own. Overlap copies the end of one chunk into the start of the next.

![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.*

## What is an example of Chunk Overlap?

With a 500-token chunk size and 50-token overlap, each chunk shares 50 tokens with the one before it.

## Why does Chunk Overlap matter?

Overlap reduces the chance of missing information that falls on a boundary.

## Related Concepts

- [Chunk Size](https://getaimath.com/dictionary/chunk-size/): Chunk size is how big each piece of a split document is, usually measured in tokens or characters.
- [Reranking](https://getaimath.com/dictionary/reranking/): Reranking reorders search results with a more careful model so the most relevant ones end up on top.
- [Chunking](https://getaimath.com/dictionary/chunking/): Chunking splits long documents into smaller pieces before turning them into embeddings for search.
- [Relevance Score](https://getaimath.com/dictionary/relevance-score/): A relevance score is a number showing how well a result matches a search query.
- [Metadata Filtering](https://getaimath.com/dictionary/metadata-filtering/): Metadata filtering narrows search results using extra information, such as date, author or category, alongside similarity.
- [Hybrid Search](https://getaimath.com/dictionary/hybrid-search/): Hybrid search combines keyword search and semantic vector search to get better results than either alone.

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