Unstructured is the open-source Python library a lot of retrieval pipelines use to turn files into text a model can read. I ran it on a set of files built to break it, then had seven models answer questions from what it produced. It handled Word, PowerPoint, HTML and email files without losing a table cell. Scanned pages were a different story.
Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.
What I ran
The library is Apache 2.0 licensed, and I used version 0.27.39 with Tesseract for OCR and the default layout models. The box was 4 cores, 15 GB RAM, Ubuntu 24. The test files are one fictional ferry operator’s Q3 report, built from a single source so every copy holds the same numbers. It has a five-row route table and a fuel table with a merged “Fuel (kL)” header over two quarters. I made it as a Word file, a PowerPoint deck, an HTML page, an email, a born-digital PDF, and scans at four qualities.

Digital files come through intact
Word, PowerPoint, HTML and email files all came back with both tables, every cell, and the merged header in the right place. These parse in a fraction of a second because there’s nothing to guess.
The born-digital PDF is where it gets patchy. The fast strategy returned no table at all, just 49 loose pieces of text. The hi_res strategy found both tables and every cell’s text, but the table HTML put only 16 of 24 cells in the right grid position on the first table and 5 of 16 on the second.
| File and strategy | Tables found | Cells found (table 1 of 24, table 2 of 16) | Cells in the right place |
|---|---|---|---|
| Word, PowerPoint, HTML, email | 2 | 24 and 16 | 24 and 16 |
| Born-digital PDF, fast | 0 | 0 and 0 | 0 and 0 |
| Born-digital PDF, hi_res | 2 | 24 and 16 | 16 and 5 |
| Rough scan, hi_res | 2 | 3 and 2 | 0 and 0 |
| Rough scan, ocr_only | 0 | 0 and 0 | 0 and 0 |
| Scanned slides, hi_res | 2 | 18 and 13 | 4 and 0 |

Scans are where tables fall apart
I scanned the one-page report at four qualities and counted how many of its 40 table cells each tool recovered. Unstructured found a table on the flatbed and office scans, with 17 and 13 cells. On the rough and phone scans it found no table at all. Plain Tesseract OCR on the same pages found 40, 38, 40 and 31 cells, and Docling found 40, 39, 39 and 40.

The scanned slides were kinder, because big type is easier to read. Unstructured returned a Table on the flatbed, office and rough slide scans, with the text of 32, 29 and 35 of 40 cells. Only 4 of those cells sat in the right place, and nothing came back from the phone-quality scan. In the annotated slide below, the table has an extra phantom column, its header row is gone, and 311.5 became 3115.


I built a small inspector page to see this for myself. It draws each element Unstructured returns over the scanned page and lets me flip between strategies. The recording walks through the slides, the rough page and the flatbed page.
What seven models did with it
A pipeline only matters if the model reads the result correctly, so I fed each extraction to seven models through opencode and asked eight questions about the report. The models were Kimi K3.1 Pro, DeepSeek V4.1 Flash, Claude Haiku 5.5, GPT-6.2 Sol, Gemini 4 Neon, MiniMax M4 and GLM 5.4. This is the prompt, with the document text and the questions filled in underneath it.
You answer questions about a document using only the extracted text below. The text came from automated extraction of a file or scan and can contain errors. If the text doesn't contain an answer, write NOT FOUND for that question. Reply with one JSON object only, with keys q1 to q8 and short string values.
The questions ranged from reading one figure (“How many passengers travelled on Auckland to Waiheke?”) to a two-table sum (“Which route used more fuel in Q3 than Q2, and by how much?”). I ran five versions of each file. They were Unstructured’s elements with tables as HTML, the same elements as plain text, Unstructured’s ocr_only strategy, plain text from the PDF layer or Tesseract, and Docling’s markdown.

On the three scanned files, models answered 66% right from Unstructured’s table HTML, 60% from its ocr_only strategy and 57% from its plain element text. Plain OCR text scored 98% and Docling 99%. The models weren’t the weak link: every one of them scored within a few answers of the others on each extraction. They split on how they failed, though. Some wrote NOT FOUND when the table was broken, and others answered from the broken table and got the number wrong.
| Model | Unstructured, table HTML (of 31) | Unstructured, element text (of 31) | ocr_only (of 23) | Plain text (of 31) | Docling (of 31) |
|---|---|---|---|---|---|
| Kimi K3.1 Pro | 21 | 18 | 14 | 31 | 31 |
| DeepSeek V4.1 Flash | 20 | 22 | 14 | 28 | 31 |
| Claude Haiku 5.5 | 17 | 20 | 13 | 31 | 30 |
| GPT-6.2 Sol | 21 | 22 | 14 | 31 | 31 |
| Gemini 4 Neon | 21 | 22 | 14 | 31 | 31 |
| MiniMax M4 | 21 | 22 | 14 | 30 | 31 |
| GLM 5.4 | 21 | 22 | 14 | 31 | 31 |

Models writing the ingest script
Most people meet Unstructured through code a coding agent writes for them. So I gave the same task to the same seven models in opencode, each in an empty folder with the library already installed. This was the prompt.
Write ingest.py in this directory. The unstructured library is already installed in the Python environment at /work/u/v, so run everything with /work/u/v/bin/python and don't install anything.
ingest.py takes two arguments, an input folder and an output file: python ingest.py ./docs chunks.jsonl. It reads every file in the folder (PDF, PPTX, DOCX, HTML, EML), partitions it with unstructured, and writes one JSON object per line with these keys: source (the file name), type (the element type), text, and page (the page number, or null). Scanned PDFs have no text layer, so use the hi_res strategy for PDFs. Keep each table as a table: for Table elements put the HTML version of the table in text when unstructured provides one, otherwise the plain text.
Run it on ./docs so that chunks.jsonl exists when you finish. Don't ask me questions.
I checked each result with eight tests: valid JSONL, all seven files present, the 79.5 on-time figure surviving in the Word, PowerPoint, HTML and email tables, in the born-digital PDF table, in a scanned slide table, a Table chunk for the scanned slides, no empty text chunks, and a clean re-run.
| Model | Checks passed | Time to finish (s) | What failed |
|---|---|---|---|
| MiniMax M4 | 8 of 8 | 260 | Nothing |
| Claude Haiku 5.5 | 7 of 8 | 85 | Empty text chunks |
| Kimi K3.1 Pro | 7 of 8 | 111 | Empty text chunks |
| GLM 5.4 | 7 of 8 | 374 | 79.5 missing from the PDF table |
| Gemini 4 Neon | 7 of 8 | 432 | 79.5 missing from the PDF table |
| GPT-6.2 Sol | 6 of 8 | 249 | 79.5 missing from the PDF table, empty text chunks |
| DeepSeek V4.1 Flash | 6 of 8 | 290 | 79.5 missing from the PDF table, empty text chunks |
Every script followed the prompt, and every one kept the scanned slide table as a Table chunk. Four models lost the 79.5 because the born-digital PDF’s table HTML had a blank On time column, and they used the HTML as told. The three that passed that check wrote the PDF’s tables as plain text. Haiku also finished the task faster than any other model, in 85 seconds. In the recording below, it ends by warning that the scanned tables lose cells and columns and should be checked against the source images.
Docling on the same files
Docling is the nearest open-source peer. It’s MIT licensed and I ran version 2.156.0 on the same files. It found both tables in every file I gave it, and it recovered 40 of 40 cells on the flatbed and phone scans and 39 on the office and rough ones. Models answered 160 of 161 scan questions correctly from its markdown. It has no Unstructured-style element types or connectors, so it isn’t a drop-in swap for a pipeline built around them, but for tables on scans it did the job Unstructured didn’t.
What Unstructured says about itself
The README says the open-source library will stay free, and that its hosted Transform API does better: 0.866 on table cell content against 0.426 for the open-source library, from the company’s own 1,000-page benchmark. My results fit the open-source half of that. I didn’t run the hosted API, so I can’t speak to the 0.866.
Where I’d use it
- Use Unstructured for Word, PowerPoint, HTML and email files. It’s quick and keeps tables whole.
- For PDFs with tables, check the table HTML against the source, and keep the plain text as a fallback.
- For scans, run Docling or plain OCR first. Both read the same pages better than Unstructured’s hi_res did.
- Whatever you pick, ask your model to answer NOT FOUND when a figure is missing. It stops a broken table turning into a confident wrong number.
I didn’t test other languages, large document sets, chunking quality or Unstructured’s other layout models. The files are small and fictional, so the cell counts show a pattern and not a rate.




