You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
Adds `isolate_tables` (default `True`) to `chunk_elements` and
`chunk_by_title`, making the PR #4307 table-isolation behavior optional.
- `True` (default): preserves current behavior — `Table`/`TableChunk`
elements are always staged alone and never combined with neighbors by
`PreChunkCombiner`.
- `False`: restores the pre-#4307 behavior — tables can share pre-chunks
with adjacent text and be combined into a `CompositeElement`.
Rejects `skip_table_chunking=True` + `isolate_tables=False` with a
`ValueError`, since the pass-through path only fires when a table is
alone in its pre-chunk.
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Adds `isolate_tables` to `chunk_elements` and `chunk_by_title` to toggle
table isolation; default `True` preserves current behavior, while
`False` lets tables share pre-chunks and merge with adjacent text into
`CompositeElement`s. Validation now uses bool-coerced options and raises
`ValueError` when `skip_table_chunking=True` with `isolate_tables=False`
(including falsy values like `0`) for predictable behavior.
<sup>Written for commit 1da0506.
Summary will update on new commits. <a
href="https://cubic.dev/pr/Unstructured-IO/unstructured/pull/4354?utm_source=github">Review
in cubic</a></sup>
<!-- End of auto-generated description by cubic. -->
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,9 @@
1
+
## 0.22.30
2
+
3
+
### Enhancements
4
+
5
+
-**Toggle table isolation in chunking**: Add `isolate_tables` to basic/title chunking options. Defaults to `True` (the post-#4307 behavior: `Table`/`TableChunk` elements always staged alone). Set to `False` to allow tables to share pre-chunks with adjacent non-table elements and be combined by `PreChunkCombiner`.
0 commit comments