SEO

Chunking

Also called passage splitting, text chunking

Splitting a document into passage-sized pieces so a retrieval system can index, match and return the right part.

Quick facts: Chunking

Category
SEO
Also called
passage splitting, text chunking
Level
Intermediate
Affects
Retrieval accuracy, AI citations, chatbot answer quality
Where to see it
Your CMS heading structure; RAG frameworks such as LangChain or LlamaIndex for your own documents
In this article4
  1. How chunking works
  2. Why chunking matters
  3. Where chunking goes wrong
  4. How to act on it

How chunking works

A retrieval system almost never stores a whole page as one item. It cuts the text into passages, turns each passage into an embedding, and stores them separately. When a question arrives, the system compares the question with those passages and returns the closest few — so what competes for a place in an answer is a chunk, not a page.

Where the cuts fall is the whole game. Naive splitting counts characters and slices wherever the count runs out, which cheerfully cuts a sentence in half. Better splitting follows the document’s own structure — headings, sections, list items, table rows — so each piece is about one thing. Many systems overlap adjacent chunks slightly so a sentence at a boundary appears in both, and most attach the source URL and title to every piece so a retrieved passage can still be credited.

Why chunking matters

It explains something publishers find counter-intuitive: a strong page can lose to a weaker one because the weaker one is easier to cut cleanly. If your answer only makes sense alongside the paragraphs above it, the chunk containing it reads as fragmentary and gets passed over. If the same answer is stated once, completely, under a heading that names the question, the chunk stands up on its own.

The same logic applies inside your own systems. If you feed a chatbot your PDFs and price lists, chunking is what decides whether it answers a customer’s question correctly or returns half a table. The quality of the source document matters far less than the tidiness of its structure.

Where chunking goes wrong

The usual damage comes from pronouns. A passage that opens with “it also includes” or “this is available in” has lost its subject the moment it is separated from the section above, and a model reading it in isolation may attach the claim to the wrong service. Tables split across a boundary do something worse: the header row goes one way and the values the other, and figures end up attributed to nothing.

The other frequent mistake is the everything page — a single long service page covering audience, process, pricing model and frequently asked questions. It may read well to a human scrolling, yet every chunk cut from it is a mixture, and mixtures match nothing precisely.

How to act on it

Write so that any section could be photocopied and still make sense. In practice that means a few small habits:

  • Give each question its own heading, phrased as the question.
  • Answer in the first sentence under that heading, before context.
  • Repeat the subject noun instead of writing “it” or “this”.
  • Keep a table and its explanation together, and keep the table small.

Split genuinely separate topics onto separate pages rather than stacking them under one URL, and let the length follow the topic. None of this is a trick for machines — it is the same structure that helps a reader skim, which is why it also improves retrievability without any technical work at all.

Do and do not

Do

  • Cut at headings and topic boundaries, not character counts
  • Make every section answerable without the one above
  • Name the subject instead of writing it or this

Do not

  • Split a table away from its header row
  • Stack unrelated topics under one long URL
  • Open a section with context before the answer

Questions people ask about this

Do I need to chunk my website myself?

No. Search engines and assistants chunk your pages on their side, using their own rules, and you have no control over the cut points. What you control is the structure they cut through: clear headings, self-contained sections and complete sentences. Chunk your own documents only when you are building something like an internal chatbot or a site search over your files.

Does chunking mean shorter pages rank better?

Not directly. Length is not the issue; mixture is. A long page organised into clearly headed, self-contained sections chunks well, while a short page that rambles across several topics chunks badly. Write to the length the topic needs, then make sure each section could be lifted out and still answer something on its own.

How big should a chunk be?

There is no universal size, and it depends on the system doing the splitting rather than on you. The practical guide is meaning, not length: a chunk should hold one complete idea, with its subject named and its qualifications attached. If a passage needs the paragraph before it to be understood, the cut was in the wrong place.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.