Skip to main content

How to Chunk Documents for Retrieval

Guide · about 7 min · refs checked 2026-11-03 (reference links and dates only)

The first step of retrieval-augmented generation is cutting documents into chunks. How well you cut decides whether answers can be found at all.

How to
Cut by meaning, not by character count: never slice a complete argument in half. Chunks too small: context is lost, and even a hit cannot support a full answer. Chunks too large: one chunk mixes several topics, and the similarity signal gets diluted. A few hundred to a thousand characters is a common starting point; tune by results, do not trust a fixed value. Overlap adjacent chunks: sharing a few sentences prevents information from breaking at the boundary. Keep structural information: store titles, sections, and page numbers as metadata so retrieval can filter on them.

Example and interpretation

A teaching scenario, not a measured or executed site test.

A returns policy puts “within seven days” and “except customized items” in adjacent paragraphs. Retrieving only the first can omit the exception. Keep the rule and exception together, then test retrieval for customized items.

How to check your practice

Explain the example in your own words, inspect input constraints, then verify against the source. Revisit concepts if you cannot explain why; supply missing dates, fields or permissions; withdraw unsupported conclusions.

For this topic, start with missing input · See all six scenarios and their reasoning

Sources
  • Chunking – Chroma Docs ↗
  • Retrieval-Augmented Generation (RAG) – Pinecone ↗