You uploaded a tax document with fifteen line items and recognition failed. Short receipts worked; long invoices didn't. Why?
A model thinking on your budget
Modern AI models can "think" — they reason internally before answering. The catch: that reasoning counts against the response limit. On a long invoice the model spent the budget thinking, and the actual answer didn't fit — the JSON got cut off in the middle of the item list.
But reading a document isn't a reasoning task; it's transcription. We turned thinking off and quadrupled the response limit — and extraction is not just reliable but noticeably faster, because the whole reasoning phase is gone.
Recovery even for a truncated answer
Second layer: if a response ever gets cut off anyway, we can now repair it. The amount, supplier, and date live at the top of the document — so even an incomplete answer yields a usable expense, losing at most the last half-written line item instead of failing the whole import.
And multi-page PDFs
By the way: multi-page invoices now go to the AI whole. Previously only page one was rasterized — items on page two quietly vanished. They don't anymore.