Learn AI Math

Chunking

What is Chunking?

In one sentence: Chunking splits long documents into smaller pieces before turning them into embeddings for search.

A 100-page manual is too big to search well or fit into a prompt. Chunking breaks it into sections, paragraphs or fixed-size pieces. Each chunk gets its own embedding, so search can find just the right part.

What does Chunking look like?

Splitting a manual into 500-word chunks so a chatbot can retrieve only the paragraph about "resetting your password."

Why does Chunking matter?

How you chunk documents strongly affects how good RAG answers are.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.