Building AI Chatbots With Retrieval: Chunking Strategies Compared

Chunking decides what your AI chatbot retrieves. Compare fixed-size, recursive, semantic, parent-document, propositional, and late chunking — with benchmarks.

By Galactic News Editorial · Published 2026-11-23T19:34:26+00:00 · Updated 2026-11-23T19:34:26+00:00

AI chatbot retrieval chunking strategies compared for building chatbots

Building AI Chatbots With Retrieval: Chunking Strategies Compared

A chatbot that answers from your own documents is only as good as the passages it retrieves. Chunking decides what those passages look like. Cut documents badly, and the bot retrieves half an answer or the wrong section entirely. Cut them well, and it answers with confidence. This comparison covers the chunking strategies teams actually use, how each one works, and which one to start with for your own chatbot.

Why AI chatbot retrieval chunking strategies matter

Retrieval-augmented generation, or RAG, works in four steps. First, chunking breaks large documents into smaller pieces. Second, each piece is turned into a vector. Third, those vectors are stored in a database built for similarity search. Fourth, the chatbot fetches the most relevant chunks and feeds them to the language model as context. The model can only answer from what it is given. If the right facts sit in chunks the search never returns, the answer is wrong or missing.

The core tension is simple. Chunks need to be small enough to retrieve precisely, but large enough to hold meaningful, self-contained information. A chunk that is too large matches many queries slightly and none perfectly. A chunk that is too small loses the context around a fact. Every strategy below is a different answer to that tension. None is right for every corpus.

Fixed-size chunking: the fast baseline

Fixed-size chunking slices text into equal windows, such as 1,000 characters with 200 characters of overlap. It ignores sentence and paragraph boundaries. LangChain's CharacterTextSplitter implements it. It is the simplest option, and it is useful for prototyping. It is almost never the right answer in production.

The failure mode is obvious. A sentence can split across two chunks. A table can split mid-row. The retrieved chunk then carries half a fact, and the model fills in the rest from guesswork. Use fixed-size chunking only to get a pipeline running. Replace it before you ship. Its one real advantage is cost. It needs no embedding calls and no model calls to decide where to cut.

Recursive character splitting: the default that holds up

Recursive character splitting is the benchmark-validated default for most RAG pipelines. It tries a sequence of separators in priority order: double newlines, single newlines, sentences, then spaces. It splits at the largest separator first and falls back only when a piece is still too big. LangChain's RecursiveCharacterTextSplitter implements it. It preserves paragraph and sentence boundaries when it can.

The evidence for it is strong. A February 2026 benchmark across 50 academic papers found recursive splitting at 512 tokens scored 69 percent end-to-end answer accuracy, beating every more expensive alternative tested. Chroma's research reported 85 to 89 percent retrieval recall at 400 to 512 tokens. The recommended starting point is 512 tokens with 50 to 100 tokens of overlap, which is 10 to 20 percent of the chunk size.

Start here. Tune later. Recursive splitting costs nothing beyond a tokenizer, and it performs well on most corpora. Only move to a fancier strategy when you can show, on your own test set, that it beats this baseline.

Semantic chunking: split where the meaning changes

Semantic chunking splits text based on meaning rather than size. It embeds each sentence, measures the similarity between consecutive sentences, and cuts where similarity drops. Chunks align with topic shifts instead of character counts. LangChain's SemanticChunker implements it. LlamaIndex offers the SemanticSplitterNodeParser, which takes a buffer size and a breakpoint percentile threshold. The usual settings are a buffer of one sentence and a threshold of 95, so only the most divergent sentence boundaries become cuts.

The results are mixed. Chroma's testing showed semantic chunking reaching 91.9 percent retrieval recall, beating recursive splitting's 85 to 89 percent. But the FloTorch benchmark told a different story: semantic chunking scored only 54 percent end-to-end answer accuracy against recursive splitting's 69 percent. Better recall did not mean better answers. The chunks were larger and noisier, so the model had more to sift through.

Semantic chunking also costs more. It embeds every sentence once to decide the splits, then embeds the final chunks again. It is slower, and it is non-deterministic across embedding model versions. Pin the embedding model if you use it. Cap it to high-value document types, such as long-form guides or mixed-topic manuals, where topic shifts are the real problem.

Parent-document retrieval: small chunks, big context

Parent-document retrieval splits the document twice. Small child chunks are embedded and searched. Larger parent chunks hold the full context. The retriever matches a child, then returns the parent that contains it. LangChain's ParentDocumentRetriever implements this. LlamaIndex offers a similar hierarchical parser. Amazon Bedrock Knowledge Bases ships it as hierarchical chunking.

This strategy fixes the core tension directly. Retrieval stays precise because the search runs on small chunks. The model still sees full context because it receives the parent. It costs more storage, since two granularities are kept, but the storage is cheap compared to the gain in answer quality. Use it when your documents have clear structure: manuals, contracts, and policy documents with sections that only make sense whole.

Propositional and late chunking: the expensive edge

Propositional chunking uses a language model to break each passage into atomic, self-contained statements. Each proposition becomes a chunk. It produces the highest-quality retrieval units, because each chunk states exactly one fact. The cost is high. Every passage needs a model call, and the corpus grows. It suits small, high-value corpora where accuracy matters more than cost.

Late chunking takes the opposite route. It embeds the whole document first, then slices the resulting embeddings into chunks. Meaning crosses chunk boundaries because the embeddings were computed with full context. It needs one embedding pass over the full document, which keeps cost down, but it requires an embedding model that supports the technique. Both approaches are worth knowing. Few teams need either one first.

How the strategies compare

StrategyHow it cutsBest forCostTooling
Fixed-sizeEqual character windowsPrototyping onlyNoneLangChain CharacterTextSplitter
Recursive characterParagraph, then sentence, then wordMost corpora; the defaultNone beyond a tokenizerLangChain RecursiveCharacterTextSplitter
SemanticEmbedding similarity between sentencesLong-form docs with topic shiftsEmbeds every sentenceLangChain SemanticChunker; LlamaIndex SemanticSplitterNodeParser
Parent-documentSmall child chunks, large parent contextStructured manuals and contractsTwo granularities storedLangChain ParentDocumentRetriever; Bedrock hierarchical chunking
PropositionalModel breaks passages into atomic factsSmall, high-value corporaA model call per passageCustom pipeline; Dense X Retrieval paper
Late chunkingEmbed whole doc, then slice embeddingsDocs where meaning crosses boundariesSingle embedding passResearch implementations; arXiv 2409.04701

Chunk size also matters within any strategy. Sizes between 256 and 512 tokens generally outperform larger chunks for question-answering retrieval. Factoid queries, such as who founded a company, perform best at 256 to 512 tokens. Multi-hop analytical queries, such as comparing the strategies of three labs, benefit from 512 to 1,024 tokens. Match the size to your dominant query type, and test it rather than guessing.

How to pick a strategy for your chatbot

  1. Identify your documents. Structured docs with headings point to recursive splitting or parent-document retrieval. Mixed, long-form prose points to semantic chunking.
  2. Identify your queries. Fact lookups want 256 to 512 tokens. Analytical questions want 512 to 1,024 tokens.
  3. Start with recursive splitting at 512 tokens and 50 to 100 tokens of overlap. Build a test set of real questions with known answers.
  4. Measure context recall and answer accuracy on that test set. Only try a new strategy when you can measure whether it helps.
  5. Add metadata to every chunk: source document, section heading, and page. Retrieval improves when the model knows where a fact came from.
  6. Re-test after any change: new documents, a new embedding model, or a new chunk size. Chunking is not a setting you choose once.

Bottom line

AI chatbot retrieval chunking strategies differ less than the blog posts suggest. Recursive character splitting at 512 tokens is the right start for most chatbots, and it beat every fancier option in the February 2026 benchmark at 69 percent answer accuracy. Add parent-document retrieval when your documents have sections that only make sense whole. Try semantic chunking when your corpus mixes topics in long passages, and pin the embedding model if you do. Skip fixed-size chunking for anything you ship. And whatever you choose, measure it on your own questions. The best chunking strategy is the one that retrieves the right passage on your corpus, not the one that won on someone else's.