UPDATEunstructured 0.27.38
Unstructured 0.27.38 renders each PDF once, keeps table rows
The release renders a PDF once in hi_res instead of once per stage, and fixes empty CSV/TSV inputs, merged DOCX rows, overlap-only chunks and email coordinates.
What changed in this release
18 checkpoints in 5 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.
High-resolution parsing and cost
- hi_res renders each PDF once and the layout, table and OCR stages share those page images (#4530)
- OCR word grouping reuses paragraph index masks instead of rebuilding them per word (#4721)
- XY-cut projections accumulate once during sorting instead of being recomputed (#4748)
- Text extraction stops once it finds the requested match instead of scanning the rest (#4780)
Tables and CSV/TSV
- An empty CSV or TSV returns no elements instead of one blank element (#4707)
- A repeated header label is read as written (#4709)
- Repeated quoted headers without a final newline are preserved (#4786)
- A compressed CSV named for its compression is decompressed before reading (#4712)
- Long vertical merges in DOCX stop dropping table rows from text_as_html (#4693)
Element ownership and coordinates
- The section parent_id survives pictures and other non-text elements (#4566)
- Text classified as an email address keeps its coordinates (#4782)
Chunking and encoding
- overlap_all no longer emits a chunk that holds only the overlap (#4598)
- Forming chunks no longer repeats the same table scans (#4744)
- A leading UTF-8 BOM is stripped before JSON content-shape detection (#4397)
Metrics, language and benchmarks
- Threshold precision is computed apart from the AP envelope (#4703)
- Evaluation keeps the caller's detection predictions instead of overwriting them (#4702)
- An empty language selection counts as automatic (#4704)
- Partition benchmark dependencies are repaired so benchmark runs stop failing (#4733)
On this page
ContextFive groups of changes sit on parsing cost and input edges
This is for people who push PDFs, CSVs and DOCX files through a retrieval pipeline in batches. In hi_res, one PDF was rendered again at every stage, so cost grew with file size; empty CSVs and repeated headers left blank elements to filter.
Table files broke more quietly: long vertical merges in DOCX dropped rows from text_as_html without an error, paragraphs after pictures lost their section, and overlap_all produced a chunk holding only the overlap.
0.27.38 renders once and shares the page images, gives each table and CSV edge case a defined result, keeps paragraphs in their section, drops the hollow chunk, reads a BOM-prefixed file as JSON, and fixes a metric and a language option.
The entries fall into 5 groups: high-resolution parsing, tables and CSV, element ownership, chunking and encoding, metrics and language. The figure below shows the distribution; each group follows.
hi_res renders each PDF once and shares the page images across stages
- One render: hi_res renders the whole PDF once and the layout, table and OCR stages share that single result.
- OCR grouping: paragraph index masks are reused while words are grouped instead of being rebuilt per word.
- Sorting and extraction: dense XY-cut projections accumulate once, and text extraction stops at the match it was asked for.
Empty CSVs, repeated headers, compressed files and merged DOCX rows each get a defined result
- Empty files: an empty CSV or TSV returns no elements, so downstream code stops filtering a blank one.
- Headers: a repeated header label is read as written, and repeated quoted headers without a final newline survive.
- Compression and DOCX: a compressed CSV is decompressed by its suffix, and long vertical merges keep their rows in text_as_html.
Paragraphs after pictures keep their section, and email elements keep their coordinates
- Ownership: after pictures and other non-text elements the section parent_id is kept, so heading-based slicing does not break at an image.
- Coordinates: text classified as an email address keeps its coordinates, so position-based lookups and overlays keep their box.
Chunking stops emitting overlap-only chunks and JSON detection strips the BOM first
- Overlap chunks: when overlap_all splits an element, a chunk holding only the overlap is no longer emitted, so the vector store gains no hollow record.
- Chunking cost: forming chunks no longer repeats the same table scans.
- Encoding: a UTF-8 BOM at the start is stripped before JSON content-shape detection, so a BOM-prefixed file is still treated as JSON.
Threshold precision is computed apart from the AP envelope, and an empty language means automatic
- Metrics: threshold precision is computed apart from the AP envelope, so the two numbers stop bleeding into each other.
- Caller predictions: evaluation keeps the detections you pass in instead of overwriting them.
- Language: an empty language selection counts as automatic, so an empty value no longer mislabels short text.
Docling hands back a document tree, MarkItDown hands back Markdown, Unstructured hands back elements
Set the four changes beside comparable tools and the difference is mostly output shape: Unstructured returns typed elements with coordinates, Docling one document tree, MarkItDown Markdown text. Both columns come from their own documentation; no same-input test was run.
Read the table by the cell you depend on, then check whether your pipeline consumes that step; a cell you never use buys nothing.
The cost runs both ways: with a document tree or plain text you rebuild coordinate lookups, while an element format asks you to maintain coordinates and parent ids.
Bottom line: for coordinate lookups, text_as_html or a built-in chunker, Unstructured fits; for plain Markdown, MarkItDown is lighter; if Docling's tree serves you, nothing here forces a migration.
| Update | Docling v2.155.0 | MarkItDown v0.1.9 | Unstructured 0.27.38 |
|---|---|---|---|
| hi_res PDF rendering and stage orchestration | A format-specific backend and pipeline, then one DoclingDocument for export | Converts a PDF to Markdown locally; layout and OCR come from a cloud service | hi_res renders the whole PDF once and shares the page images across stages |
| Tables and CSV input | TableItem can carry structure annotations; CSV is a supported format | CSV, JSON and XML become Markdown, tables kept as Markdown tables | Empty CSV/TSV returns no elements, a repeated header reads as written, a compressed CSV is decompressed by suffix, merged DOCX rows stay in text_as_html |
| Element ownership and coordinates | Each item can carry a bounding box and provenance; parents and children link by JSON pointers | Markdown text with no coordinate fields | Section parent_id survives pictures and other non-text elements; email elements keep coordinates |
| Chunking and encoding | HybridChunker splits and merges by token and repeats table headers; a BOM selects the encoding | No built-in chunker, so Markdown is split downstream; a charset guess broke long files until v0.1.8 | overlap_all emits no overlap-only chunk, table scans run once, and a UTF-8 BOM is stripped before JSON detection |
0.27.37 fixed specific inputs; 0.27.38 changes cost and output stability
The releases are less than three weeks apart and pull in different directions: 0.27.37 mostly fixed one input at a time, while 0.27.38 changes how often a file is rendered and how chunks and metrics are computed.
Read the table left to right: 0.27.37, then 0.27.38. Each row is one function, and the question is how far this release pushed that step, not how many boxes a column has.
The PDF and DOCX rows are the ones to check on your corpus: one release fixed files that read as nothing, the other changes how many renders a file needs and whether table rows survive.
On an older version, read both columns: restore the files that read as nothing first, then take the render reuse; doing half lets the earlier failure hide the gain.
| Feature | 0.27.37 (2026-11-06) | 0.27.38 (2026-11-24) |
|---|---|---|
| PDF parsing | The fast strategy extracts vector-heavy PDFs instead of returning nothing (#4540) | hi_res renders the whole PDF once and the stages reuse it (#4530) |
| Language option | The languages a caller passes are kept on short ASCII text (#4601) | An empty language selection counts as automatic (#4704) |
| Evaluation metrics | Evaluation files are read as UTF-8 on every platform (#4623) | Threshold precision is separated from the AP envelope (#4703); caller detection predictions are kept (#4702) |
| DOCX text | Text that python-docx skips inside wrapper elements is kept (#4661) | Rows from long vertical merges stay in text_as_html (#4693) |
| Output structure | Each Title renders at its own heading level (#4627) | The section parent_id survives pictures and other non-text elements (#4566) |
Release analysisBatch PDF and table pipelines gain the most; fast-strategy users can wait
Three groups feel it first: teams running hi_res over PDF batches, teams feeding CSV/TSV and DOCX tables downstream, and teams chunking with overlap_all. Fast-strategy users can wait.
Sideways, the difference is not feature-list length: Docling returns bounding boxes, table structure and token-aware chunks in one tree, while MarkItDown returns Markdown text with no coordinates.
Our view, not independently tested: upgrade in three steps. Diff a small fixture set (an empty CSV, a BOM-prefixed JSON, a merged DOCX, a chunking run with overlap_all), compare row counts, then release hi_res batch jobs.
Our view, not independently tested: do not turn 'rendered once' into a percentage of your runtime; measure it on your files. And do not rewrite your chunking strategy before checking where the chunk count changes.
AIGenLab views
Not independently testedDiff a small fixture set before and after the upgrade, then release hi_res batch jobs.
Station view: the release changes both render count and output content, so both have to be checked on the same files; not tested on real corpora.
Compare chunk counts and boundaries before rebuilding a vector store that uses overlap_all.
Station view: the change in chunk count depends on where elements are split; not independently tested.
Choose by output shape first (elements, document tree, Markdown), then by feature list length.
Station view: based on Docling's and MarkItDown's public documentation, without a same-input test.
Questions
Do I need to change my calls for 0.27.38?
What does an empty CSV return now?
Will I get fewer chunks than in 0.27.37?
Official sources and scope
- Unstructured 0.27.38 release notes Version, release date and every entry in this release
- Unstructured 0.27.37 release notes The previous release's behaviour and entries for the vertical comparison
- Full changelog 0.27.37...0.27.38 The full commit range between the two releases
- Docling document Docling's bounding boxes, provenance and parent-child pointers
- Docling chunking HybridChunker's token split and repeated table headers
- Docling supported formats CSV input and BOM-based encoding selection
- Docling architecture The converter picks a backend and pipeline per format and returns a DoclingDocument
- Docling v2.155.0 release notes The Docling version and date used in the comparison
- MarkItDown README MarkItDown outputs Markdown only and supports CSV/JSON/XML
- MarkItDown v0.1.9 release notes The MarkItDown version and date used in the comparison
- MarkItDown v0.1.8 release notes The charset-guess decode failure on long files that was fixed
Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.