Split a handbook at a meaningful boundary

Look one word ahead when copying titles and labels. · 194 words

Start by telling the model to use the document's own headings as boundaries, not an arbitrary number of pages. For example, ask it to split the City Museum Visitor Handbook, 2024 edition, into sections and place a boundary immediately before "Gallery Guide." Require every chunk to retain the handbook title, edition, section heading, and starting page. This gives the retriever a meaningful unit while preserving source details. A checkable request is: "Return the section name and page range for each chunk, and quote its first sentence." The reader can compare those labels with the handbook's table of contents.

A second example shows why headings are useful. The Rainy Day Park Guide, revised March 2025, contains "Visitor Rules" and "Emergency Procedures." A prompt can say, "Place a chunk boundary before Emergency Procedures and cite the revision date and section heading." The expected result is a separate emergency chunk beginning with that heading, not a chunk that ends halfway through the safety instructions. The check is simple: open the cited pages, confirm the heading and first sentence, and verify that no rule appears in two chunks. Meaningful boundaries make later retrieval and citation easier to verify.

Check your recall

In the museum example, what should the prompt use as the split boundary, and what source details should every chunk keep?

Check your answer

Use the "Gallery Guide" heading as the boundary. Each chunk should keep the handbook title, 2024 edition, section heading, and starting page.

Sources and credits

Original KeyTouch lesson. Background reading · DAIR.AI · Retrieval Augmented Generation.