Page 1 of 8~96 min topic

Chunking for RAG quality

Build the mental model

Chunking decides which passages can be found and shown. Boundaries should respect meaning—headings, procedures, exceptions—not only token counts.

~12 min this pageHook and intuition

1Try it yourself

Playground

Chunk size changes retrieval

Pick a chunk size, then ask about annual plan refunds. Medium chunks usually win.

Question: Can I get a refund on an annual plan?

Chunk 1Section A: General terms apply to all plans.
Chunk 2Section B: Annual subscriptions may receive a prorated refund within 14 days of purchase if no premium features were used.
Chunk 3Section C: Monthly plans renew automatically.

2Learn the idea

Read

Analogy for this concept only

Think of cutting a city map into cards: too tiny and landmarks vanish; too huge and every query points at the same poster. Use the analogy to name the moving parts for chunking, then drop it when you need numbers. For the employee handbook assistant, the enduring idea is not a vendor feature name; it is the decision chunking changes and the evidence that decision leaves behind.

Chunking decides which passages can be found and shown. Boundaries should respect meaning—headings, procedures, exceptions—not only token counts.

Beginners often blur neighboring ideas when discussing chunking. Keep it distinct by asking what artifact would still exist if model weights were frozen and only this layer changed on the employee handbook assistant. If you cannot name that artifact, you are still describing “the AI” in general.

Read

Case lens: employee handbook assistant

Parse documents, split on structure with target token ranges (often ~300–800), keep heading paths, add limited overlap, attach metadata, then embed. In day-to-day language for chunking: someone brings a need, the system inspects allowed evidence, this layer contributes a judgment or structure, and a consequence reaches a user or downstream system. Deterministic guards—permissions, schemas, arithmetic—still belong to the application around the employee handbook assistant.

Uncertainty is normal for chunking. Incomplete inputs and probabilistic behavior mean the employee handbook assistant needs an escape hatch (retry, fallback, escalate) rather than fake certainty in fluent prose.

Read

Make it operational

When you explain chunking to a new teammate on the employee handbook assistant, forbid the sentence “the AI just knows.” Replace it with the artifact that moves and the evidence you would file for chunking. If they can falsify your picture with a single counterexample from last week’s traffic on the employee handbook assistant, your mental model is working.

Also pin one numeric memory from this chunking chapter: If exceptions live 120 tokens after a rule and chunks are 80 tokens with no overlap, retrieval can return the rule without the exception—measurable as citation-support failures. That number is not decoration; it is a template for how claims about chunking on the employee handbook assistant should look in design docs. Scoped specifically to chunking / employee handbook assistant / mental-model.

Read

Common mix-ups

People confuse chunking with neighboring buzzwords when debugging the employee handbook assistant. Before changing prompts, ask whether the broken stage was evidence gathering, the chunking judgment itself, validation, or the product action. Fixing the wrong stage creates folklore (“we tried chunking and it failed”) that blocks the next team on the employee handbook assistant. Scoped specifically to chunking / employee handbook assistant / mental-model.

Go deeper

Before you start

Why this matters

Spend two minutes on the employee handbook assistant. If chunking disappeared tomorrow, what breaks first for the user, and what evidence would prove it was working? Write that before you read the analogy.

In the wild

See how this idea shows up as a product and a company — then come back to the lesson. Skills transfer across vendors.

Check your understanding

Page assessment

Answer from memory. Completion is saved from this evidence, not from opening the next page.

1. What is one idea from this page you would apply, and what evidence would you check?

All responses are required.