LiteParse update fills in table cells it used to leave blank
LiteParse, LlamaIndex’s tool for turning PDFs and pictures of pages into text and tables, now recovers many short entries it used to leave blank. Version 2.21.5 follows a fix by maintainer Logan Markewich, merged on 30 November. That matters when a missing 1 can break a total. Our re-test found a clear improvement, though some entries now come back wrong instead of blank.
Who this affects
The problem affects LiteParse when it uses OCRia-nano-1, a small AI model that reads text from page images. LlamaIndex built it to run on an ordinary processor.
It was leaving table cells blank when they held short entries such as a single digit, a dash or si. These losses can change what a table says. A missing dash can look like a gap in the record.
If you use this reader in LiteParse, update to version 2.21.5 or later. You do not need new model files: the fix changes the software around the model. For tables that matter, check short entries and totals against the original page.
From report to fix
A LiteParse user, aborruso, reported the problem on 28 November with real Italian tables. It was a follow-up to an earlier report on the project’s public issue tracker. Markewich replied the same day that some of it might be a limit of the model, but he was looking into it.
Our own tests at Graphometer had shown the same blanks. We are an independent home lab with no tie to LlamaIndex. On our computer-drawn test sheets, the tool found 150 of 259 single digits and then threw them away. It cut each one out sideways, misread it and rejected the result as nonsense.
On 29 November, we posted our findings on the same issue. We showed that one of the reporter’s missing 1s was being read sideways as a dash, and correctly as a 1 when turned upright. We also shared a computer-drawn test sheet, experimental changes we had tried in our own copy and their drawbacks.
Markewich wrote his own fix and merged it on 30 November. It addressed the sideways reading and problems with the rules for discarding text. It also kept dashes, si and other cell symbols. He checked it against public benchmarks and used our sheet as one of his checks.
We cannot say how much our note helped; he was already investigating. LlamaIndex released his fix in LiteParse 2.21.5 a few hours later.
What improved
On 2 December, we built version 2.21.5 from LlamaIndex’s code and ran our pages again on one processor core. We compared it with the build just before the fix. The earlier 2.21.4 package gives the same scores on our order sheets. Version 2.21.5 includes other changes, so these results measure the release as a whole.
- On the sheet we posted, 16 of 16 one-digit cells came back correctly, up from 2 of 16.
- On 192 order sheets containing one-character cells, whole tables came out exactly right 138 times, up from 19. On rougher copies (less detail, a slight tilt, compressed), the count rose to 105, up from 13.
- No table on those order sheets that was exactly right before got worse.
On the two real pages from aborruso’s report, the missing digits and si came back. Some dashes returned too, though others were still missing. We counted entries ourselves; we did not check these pages against a full answer key.
Speed was the same in our test.
What still goes wrong
Recovering more entries does not mean every entry is right.
- On 112 clean test sheets using different fonts and sizes, about 2,000 short cells were blank before. Now 142 of them contain wrong text, most often a small
xread as a capitalX. - Some previously correct cells got worse: 14 of 7,165 on those clean sheets, and 54 of 6,733 on rough copies.
- Dashes and other single marks returned only in part, including on tables with many closely packed columns.
- Short headings written vertically got worse. Drawn triangles were mistaken for the letter
Amore often. - On the clean, densely packed tables, one row of 88 went missing. On rough copies, the tool found no table rows before or after the update.
Markewich also lists remaining problems: a lone € is still dropped and some words are misread. On some tables with a first column of 1s, recovered digits end up in the name column.
Limits of our test
Apart from the two pages from the report, every page we ran was drawn by a computer script. We did not score a real document against a full answer key or repeat LlamaIndex’s benchmark tests. We did not test other alphabets, photographs, handwriting, real scans or pages turned on their side.
Thanks to aborruso for the clear reports and to Logan Markewich for a fast, careful fix.
Graphometer is independent and has no affiliation with LlamaIndex.
Grant Williams, with heavy AI assistance from multiple labs.