Chunking documents with internal structure 00:00:01 The price between two headings Two prices share a row in Mae's brochure. The text recognizer reads nineteen ninety-five perfectly, and the search engine returns it instantly. The customer asked about the annual plan. Was that number under “monthly” or “annual”? A structured document encodes meaning in relationships. A table cell inherits its row and column headers. a function belongs to a module. a figure belongs to a caption and page. Splitting must retain those relationships in both text and provenance. Carry the row name, column heading, unit, original page and local evidence region with the amount. A correct character string travels safely only when the relationships that give it meaning travel too. 00:00:44 Restore ownership of the number Reading order and repeated headers matter. On a scanned page two amounts can sit next to each other with no repeated currency or period label. Bind row name, column label, currency, page number and bounding box to the cell. Retain an image reference for checking OCR. The evidence is now interpretable outside the original page. Apply the same idea to a code symbol, Jay son path or Markdown heading. 00:01:11 Carry layout through extraction HTML and Markdown expose hierarchy through headings, lists, tables and code fences. Preserve the heading path and keep a table header with its rows. A generic character split can put “price per month” in one chunk and its numbers in another, leaving the retrieved amounts ambiguous. Split a Markdown table after row ten. Repeat the header in the second chunk so “19.95” remains associated with its billing period. PDF pages have visual layouts that may not correspond to text order. Identify columns, headings and repeated furniture. Preserve page coordinates, table structure and links to the original scan. Test whether a retrieved line still has its correct label when displayed out of the page layout. Find the annual price on page four of a brochure. Compare the extracted cell, its header and its bounding box with the original page. OCR converts image regions to text with imperfect recognition. Retain the image reference, bounding box and uncertainty where available. A single digit error can materially change an answer. Route low-confidence numeric fields to review or image-based verification before citing them as facts. OCR reads 8.50 as 850. Reopen the bounded image region before converting the extracted value into a claim about a charge. Run a reconstruction test. Hand someone only the retrieved unit and ask which entity, quantity and source it describes. If those facts cannot be recovered, preserve more structure or retrieve the parent record. 00:02:50 Which price did the source support? The OCR value is exact but the chunk omits the column header. Can it support a claim about annual price? Extraction accuracy and semantic ownership are separate. The same number can support the wrong claim if its period or column is lost. The final claim belongs to a particular plan, period and location in the revision. Mae can now point to the intersection that establishes the price, or ask for the missing header before answering.