AlgoViz

Chunking documents with internal structure

medium 7 min

A structured document encodes meaning in relationships.

Where it shows up

The same pattern appears across everyday software.

  • Which column owns the value 19.95?

    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, JSON path or Markdown heading.