-
feat: tablechunks can reconstruct table (#4291)
发布于
2026-03-26 16:59:32 +00:00 Note
Medium Risk
Changes core table-chunking behavior by adding new metadata fields and
reconstruction logic; risk is mainly around backward compatibility and
correct ordering/HTML merging of split tables.Overview
Adds end-to-end support for reassembling split tables after chunking.
TableChunknow receives stable sequencing metadata (table_id,
chunk_index) when aTableis split, and a new
reconstruct_table_from_chunks()helper in
unstructured.chunking.dispatchgroups and mergesTableChunks back
into fullTableelements (including mergedtext_as_htmlwhen
available).Updates
ElementMetadatato carry the new fields (dropped during
consolidation), bumps version to0.22.4, and adds unit tests covering
reconstruction across mixed element streams and edge cases like missing
chunk_index.Written by Cursor
Bugbot for commit
1e732a3e366d6f3f93c898ad2e5e9944855bf0fa. This will update automatically
on new commits. Configure
here.
Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
Co-authored-by: cragwolfe crag@unstructured.io下载附件