# Chunking

> Chunking splits documents into small passages before embedding them for search. Compare fixed-size, hierarchical and semantic chunks, and check your own pages.

Canonical: https://scaplet.com/glossary/chunking

Glossary Glossary · AI search

Chunking splits documents into small passages before embedding them for search. Compare fixed-size, hierarchical and semantic chunks, and check your own pages.

3 min

read

2

sources

Oct 31, 2026

updated

Scaplet Editorial Team

author

In one line

Chunking is splitting a document into small passages, often a few hundred tokens or fewer, so each can be embedded and retrieved on its own. How you cut decides what a retriever can find. A chunk that loses its surrounding context, such as which company a figure belongs to, becomes hard to match correctly.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fchunking%20(%22Chunking%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fchunking%20(%22Chunking%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fchunking%20(%22Chunking%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fchunking%20(%22Chunking%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

## At a glance

4 facts from the sources below

A passage, measured in tokens

Unit

About 300 tokens, sentence boundaries kept

Bedrock default

A chunk losing its context

Main risk

Embeddings and a vector index

Pairs with

_01_Explained

## Why documents get chunked

A retrieval system rarely embeds a whole page as one vector. Anthropic's contextual retrieval post says documents are typically split into smaller chunks, generally a few hundred [tokens](/glossary/tokenization) or fewer, and each chunk is embedded for search. Amazon's Bedrock docs describe the same pipeline: split, convert to [embeddings](/glossary/embeddings), write to a vector index while keeping a mapping back to the original document.

The same post names the cost of this. Chunking can remove information a passage needs. Its example is a chunk that says revenue grew 3% without saying which company or period it covers. A reader sees the gap at once. A retriever matching that chunk to a query about a specific company cannot.

_02_Chunking options in Amazon Bedrock Knowledge Bases

## Strategies compared

Strategy

### Default

How it cuts

About 300 tokens per chunk, honoring sentence boundaries

Settings you control

None

Strategy

### Fixed-size

How it cuts

A maximum token count per chunk with overlap between neighbors

Settings you control

Max tokens, overlap percentage

Strategy

### Hierarchical

How it cuts

Child chunks inside larger parent chunks. Retrieval finds children, then swaps in the parent

Settings you control

Parent size, child size, overlap tokens

Strategy

### Semantic

How it cuts

Breakpoints where adjacent sentences differ most in meaning

Settings you control

Max tokens, buffer size, breakpoint percentile threshold

Strategy

### None

How it cuts

Each document is one chunk

Settings you control

Pre-split the files yourself

Bedrock notes that semantic chunking adds cost because it calls a foundation model. It also notes that hierarchical retrieval can return fewer results than requested, since children that share a parent collapse into one.

Smaller chunks suit
- Precise lookups where one fact answers the question
- Content with clear sentence-level claims

Larger or parent chunks suit
- Answers that need surrounding explanation
- Documents where a section only makes sense whole

_03_At a glance

## Restoring lost context

Piece

### Original passage

Role

The text a reader would quote

Piece

### Prepended context

Role

A short, chunk-specific summary of where the passage sits in the document

Piece

### Result

Role

Both the embedding and the keyword (BM25) index see the context

Anatomy of a contextualized chunk (illustrative example)

```
Original chunk: "Revenue grew 3% over the previous quarter." After adding chunk-specific context: "From Example Corp's Q2 report, in the section on quarterly results. Revenue grew 3% over the previous quarter."
```

Anthropic describes adding about 50 to 100 tokens of such context per chunk, generated by [Claude](/ai-search/anthropic/ads) from the full document. On its test set, the top-20 retrieval failure rate fell from 5.7% to 3.7% with contextual embeddings, and to 2.9% when contextual BM25 was added. These are the vendor's own results on its datasets, so treat them as a direction, not a guarantee for your content.

_04_Checklist

## Write pages that chunk well

First_2_
Give each section one question and answer it in its opening sentences.

Keep tables labeled with a caption and clear column names, since tables get split along with prose.

Next_1_
Use real headings: parsed content tends to be cut along section boundaries, as Bedrock's docs describe for pages and sections.

Then_1_
Repeat the product or topic name where a reader might land mid-page.

**Pronouns and 'as above' break chunks**A passage that opens with 'This setting' or 'As mentioned earlier' loses its subject once it is cut out. Name the [entity](/glossary/entity) in the first sentence of each section, so the passage still makes sense when retrieved alone.

Public [AI search](/glossary/ai-search) products do not publish how they chunk pages, so this is a writing habit with a sound basis, not a documented ranking factor. See [retrieval-augmented generation](/glossary/retrieval-augmented-generation) for how retrieved passages reach the answer.

_05_How it works

## Check it in 2 minutes

1. 1

### Pick three sections from a page

Copy each section on its own into a blank document.
2. 2

### Read each cold

Ask whether a stranger could tell the subject, the product and the claim from that text alone.
3. 3

### Fix the ones that fail

Replace pronouns and references to earlier sections with the actual names.

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ What chunk size should I use?

The sources here give a default, not a universal answer. Bedrock's default is about 300 tokens, and Anthropic says chunks are generally a few hundred tokens or fewer. Test sizes against your own queries, and measure retrieval quality rather than guessing.

_02_ Is chunking the same as tokenization?

No. Tokenization splits text into the units a model reads. Chunking groups many tokens into passages for retrieval. See [tokenization](/glossary/tokenization).

Sources · 2

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- anthropic.com
- amazon.com

1. 01 [Introducing Contextual Retrieval (Anthropic)](https://www.anthropic.com/news/contextual-retrieval) anthropic.com · checked 2026-11-01
2. 02 [How content chunking works for knowledge bases (Amazon Bedrock)](https://docs.aws.amazon.com/bedrock/latest/userguide/kb-chunking.html) docs.aws.amazon.com · checked 2026-11-01

## Keep learning

[All glossary](/glossary)

[Learn Reranking AI search](/glossary/reranking) [Related Retrieval-Augmented Generation AI search](/glossary/retrieval-augmented-generation) [Read next Tokenization AI search](/glossary/tokenization) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Chrome UX Report (CrUX)](/glossary/chrome-ux-report) [Churn rate](/glossary/churn-rate) [Click-through rate](/glossary/click-through-rate)

More in AI search
[Tool use](/glossary/tool-use) [Vector search](/glossary/vector-search) [AI Agents](/glossary/ai-agents) [AI citations](/glossary/ai-citations) [AI detection](/glossary/ai-detection) [AI Hallucination](/glossary/ai-hallucination) [AI Mode](/glossary/ai-mode) [AI Overviews](/glossary/ai-overviews) [AI search](/glossary/ai-search) [AI visibility](/glossary/ai-visibility) [Answer engine optimization](/glossary/answer-engine-optimization) [ChatGPT search](/glossary/chatgpt-search) [Chunking](/glossary/chunking) [Context window](/glossary/context-window) [Conversational AI](/glossary/conversational-ai) [Embeddings](/glossary/embeddings) [Extended thinking](/glossary/extended-thinking) [Fine-tuning](/glossary/fine-tuning) [Generative engine optimization](/glossary/generative-engine-optimization) [Grounding](/glossary/grounding) [Knowledge cutoff](/glossary/knowledge-cutoff) [Large Language Model](/glossary/large-language-model) [Model Context Protocol](/glossary/model-context-protocol) [Multimodal AI](/glossary/multimodal-ai)

Terms on this page
[Tokenization](/glossary/tokenization) [Embeddings](/glossary/embeddings) [Entity](/glossary/entity) [Retrieval-Augmented Generation](/glossary/retrieval-augmented-generation) [AI search](/glossary/ai-search)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
