AWS Cloud Certify · Practice exams

GenAI Developer

Amazon Bedrock Knowledge Base Chunking Strategies: Fixed-Size, Hierarchical, Semantic or None

Updated November 2026 · 2 min read · Based on official AWS documentation

Quick answer

Amazon Bedrock Knowledge Bases offer default chunking (about 300 tokens), fixed-size chunking (max tokens plus overlap), hierarchical chunking (search small child chunks, return the parent), semantic chunking (split where meaning changes) and no chunking. Pick by how your content carries context, then tune retrieval with hybrid search, metadata filters and reranking.

The chunking strategies side by side

Chunking strategies in Amazon Bedrock Knowledge Bases
StrategyHow it worksWatch out for
DefaultChunks of about 300 tokens that keep whole sentences.No control over size.
Fixed-sizeYou set the maximum tokens per chunk and an overlap percentage.Can split ideas that span paragraphs.
HierarchicalChild chunks are searched; each match is replaced by its larger parent chunk.Fewer results than numberOfResults when children share a parent.
SemanticSplits where meaning changes, using a buffer size and a breakpoint percentile threshold.Uses a foundation model, so it adds cost.
No chunkingEach document is one chunk; you split files yourself.No page numbers in citations and no page-number filter.

Source: docs.aws.amazon.com/bedrock/latest/userguide/kb-chunking.html

Semantic chunking parameters

When retrieval returns the wrong passages

Chunking is only half of RAG quality. Bedrock Knowledge Bases also let you tune the query:

Citations and the prompt template

By default a query returns up to five results. If you customize the generation prompt, keep the `$search_results$` placeholder, and keep `$output_format_instructions$` if you want citations: without it the response has no citations.

Why it matters for AIP-C01

Task 1.5 of the exam is designing retrieval mechanisms, including segmentation, embeddings, vector search, hybrid search, reranking and query handling. Domain 1 is 31% of the exam. See Domain 1 and RAG data: chunking and embeddings.

Frequently asked questions

What is the default chunk size in Bedrock Knowledge Bases?

About 300 tokens, keeping sentence boundaries.

When should I use hierarchical chunking?

When small chunks match precisely but the model needs the surrounding context: child chunks are searched and replaced by their parent at retrieval.

Does semantic chunking cost more?

Yes. It uses a foundation model to find boundaries, which adds model cost.

Why does my knowledge base return fewer results than I asked for?

numberOfResults is a maximum. With hierarchical chunking, children that share a parent collapse into one result.

Sources

AWS updates its programs and documentation. Check the linked official pages for the latest details before you decide or pay.

Practice for AIP-C01

Free AWS Generative AI Developer – Professional practice questions with an explanation for every option. No sign-up.

Start a practice test GenAI Developer hub

Keep reading