AlgoViz

Choosing and annotating chunk boundaries

medium 6 min

Chunking selects the unit a retriever can return.

Trace the example

Follow the evidence through each stage, then test a change in the case.

Keep a rule and its holiday exception together

Keep a rule and its holiday exception together. Selected component: Policy paragraph inside Source text.
Open full-size diagram

Source text

Two sentences · one exception

The first sentence gives a standard 30-day rule. The second starts “except during holidays.” The correct answer depends on both sentences.

A smaller chunk improves similarity to “refund” but drops the qualifying sentence. What should decide the split?