Blog / Documents and data

What is structure-based (and automated) document chunking?

By the troveGEN team · Updated 11 November 2026 · 3 min read

Short answer

Structure-based chunking splits a document at its own boundaries, such as headings, sections, paragraphs, list items and tables, instead of every fixed number of characters. Automated chunking goes one step further: the system looks at each document and picks the strategy that fits it, so nobody has to choose by hand.

With troveGEN

troveGEN chooses a chunking strategy for each document from its structure, cuts at natural boundaries, and lets you preview exactly how a sample will be split.

See what troveGEN provides ↓

How structure-based chunking works

The splitter first reads the shape of the document, then cuts along it.

  • Parse the document into a tree: title, chapters, sections, paragraphs, lists and tables.
  • Keep each leaf (a section body, a table, a list) together as the unit to index.
  • Attach the heading path to every passage, for example "Refund policy > Eligibility", so a passage still says what it is about when it is retrieved alone.
  • Apply a size limit. A section that is too long for the embedding model is split again, at paragraph or sentence breaks, never in the middle of a sentence.

When it beats fixed-size splitting

Fixed-size splitting ignores meaning, so it cuts through tables, numbered clauses and lists. Structure-based splitting keeps a clause with its sub-points and a table row with its column headings. It works best on contracts, policies, manuals, reports, filings and any document with real headings.

It depends on the document having structure. A scanned page with no recognisable headings, or a long run of plain prose, gives it nothing to follow, so a fallback is needed.

What automated chunking means

Automated (or adaptive) chunking chooses the method per document. A simple version checks for headings and tables: if the document has them, split by structure; if it is flowing prose, split recursively on paragraph and sentence breaks; if meaning shifts without markers, consider semantic splitting. A better version also keeps content that must stay whole, such as a table or a numbered clause, together.

Automation does not remove the need to measure. Build a small set of real questions and check that the right passage is retrieved, then adjust.

Size limits and truncation

Every embedding model reads only a limited number of tokens. A passage longer than that limit is silently cut when it is embedded, and the tail is never searchable. Structure-aware chunkers should therefore cap passage size below the model limit and split oversized sections at natural breaks.

Semantic, recursive or structural: a quick guide

  • Headings and tables present: structural.
  • Plain prose without headings: recursive.
  • Unstructured text where topics shift without markers: semantic, accepting the extra compute cost.
  • Mixed collections: automatic selection per document, then test.

Key takeaways

  • Split along headings, sections and tables, and carry the heading path with each passage.
  • Fall back to paragraph and sentence breaks when a document has no structure.
  • Cap passage size below the embedding limit so nothing is cut off, then test with real questions.

How troveGEN helps with structure-based and automated chunking

troveGEN picks a chunking strategy for each document from its structure until you choose one yourself. Passages are cut at paragraph, clause or sentence boundaries and kept within the embedding limit so none is cut off, and each carries its heading path, page and type. A built-in simulator shows how a sample would be split before you ingest it.

What troveGEN provides

  • Automatic strategy selection from headings, tables and layout
  • Passages cut at paragraph, clause or sentence boundaries and kept within the embedding limit
  • Heading path, page and type attached to every passage
  • A simulator to preview chunk boundaries before ingesting
  • Fixed-size, recursive, structural and semantic options when you want control

See ingestion Start free — 500 pages a month

Frequently asked questions

What is document structure based chunking?

It is splitting a document along its own structure, such as headings, sections, lists and tables, so that each passage is a meaningful unit rather than an arbitrary slice of characters.

What is automated document chunking?

It is a system choosing the chunking method for each document by inspecting its structure, instead of using one setting for everything. The choice should still be checked against real questions.

Is structure-based chunking better than semantic chunking?

For documents with clear headings and tables it usually matches or beats semantic chunking at lower cost. Semantic chunking helps most on unstructured prose. Many pipelines split by structure first and refine by size.

How big should a chunk be?

Small enough to fit the embedding model limit and match a question precisely, large enough to make sense alone. A few hundred tokens is a common starting point; test on your documents.

How does troveGEN help with structure-based and automated chunking?

troveGEN chooses a chunking strategy for each document from its structure, cuts at natural boundaries, and lets you preview exactly how a sample will be split. It provides: Automatic strategy selection from headings, tables and layout; Passages cut at paragraph, clause or sentence boundaries and kept within the embedding limit; Heading path, page and type attached to every passage; A simulator to preview chunk boundaries before ingesting; Fixed-size, recursive, structural and semantic options when you want control.

Keep reading