Rendered at 21:24:39 GMT+0000 (Coordinated Universal Time) with Cloudflare Workers.
Koffiepoeder 2 days ago [-]
For local OCR, after quite some fiddling, for me the best result currently seems to converge on this custom pipeline:
0) some preprocessing steps (contrast/brightness)
1) layout detection by paddle [0]
2) layout detection by granite docling heron [1]
3) a smart merging algorithm, eg non overlapping surface maximization. Just ask your llm and iterqte a bit.
4) Custom models for table areas [3] and text nodes [4]
-
5) Optional: postprocessing with gemma for structured output
I am now reaching >99% accuracy for invoice and receipt scanning. Even low quality pictures in bad light usually come out fine.
0: https://www.paddleocr.ai/main/en/version3.x/algorithm/PP-StructureV3/PP-StructureV3.html
1: https://docling-project.github.io/docling/usage/model_catalog/#stages-and-models-overview
3: currently mobile, I will complete these later, don't know the exact models by heart
4:
ybkshaw 2 days ago [-]
I'm very interested in what this pipeline looks like - care to share more about this process? I ask because I'm interested in doing document scanning for my family and my small business and ultimately I want to be able to keep an OCR'd, searchable-text archive of anything that comes in, and have an LLM auto categorize and input things like medical expenses into a tax deduction section of my document management app.
deanc 2 days ago [-]
Comment below me mentioned paperless-ngx. It has built in OCR (not sure which lib) but it's quite excellent and does a good enough job getting most of the text out. The main thing is getting most of the keywords indexable so you can find them later - not necessarily getting a perfect transcription. It also does auto classification of sends and tags and such. It's pretty good.
ArtRichards 2 days ago [-]
i have a stack for this built around paperless-ngx. Been thinking about open sourcing it. Interested?
kevsamuel 2 days ago [-]
Very much. OCR is solved, good open source OCR is not, and the alternative is to pay for an expensive 3rd party service.
I would love to have an internal stack.
Speed and cost are an issue right now.
Koffiepoeder 1 days ago [-]
Sorry for the delay, I see that this thread got a lot of comments, so, in the interest of preservation I will not update my original post, but rather continue here. I got around to
reviewing my full pipeline just now.
For the preprocessing, I forgot to mention that I also DO use paddle here:
I combine usage of (paddle) PP-LCNet and (paddle) UVDoc for page rotation and straightening. [0] [1]
For OCR of detailed text fragments, I use MinerU2.5-Pro-2605-1.2B (Q8_0) with some blank detection (i.e. if the response is blank, I try some variations with widening pixels at each
edge and brightness/contrast). [2]
For tables, the full pipeline looks as follows:
- (paddle) PP-LCNet for detecting which kind of table: bordered or borderless [3]
- (paddle) SLANet Plus is used to propose a cell grid. However results here are not always adequate, as such: we also run MinerU's UnetStructure for bordered tables or if SLANet plus output is bad (low cell count). [3] [4]
- For the text extraction step, we use (paddle) PP-OCRv6 Small to detect the areas, then the regular mineru for the real text extraction. [5] [2]
- A final step is to reassemble the tables in to html, this is more procedural/code based.
If interested, I can maybe extract relevant parts into a custom pipeline and push it, though the code is not polished.
EDIT: formatting (list items were not on new lines)
Might be a bit clearer than my stacked comments that are all over the place.
Basically the gist of it is, use paddle for most stuff, improve where relevant with some mineru and heron detections. Build in fallbacks - at every step.
barrenko 1 days ago [-]
Thank you so much for lining this out - as much as I understand it, the OCR is not the problem with LLMs, but a sort of a layout understanding and e.g. "stitching" together tables that are spread across pdf pages.
OpenRouter uses cloudflare as it's api provider for the file parsing for LLMs that may not support files natively, but in some personal benchmarks the mistral's version of the OpenRouter file processing performed better (with GLM 5.3 Flash as the "backend").
hmokiguess 1 days ago [-]
Do you have advice for more complex documents like forms or requisitions?
troupo 2 days ago [-]
Why not just use PaddleOCR? I get excellent results from it.
Koffiepoeder 1 days ago [-]
Pure paddle degraded rapidly for non english content in my case. I have quite a few Dutch documents coming in. It also struggled with pictures of receipts with bad print quality. Worked great for PDF's though!
qiangull 1 days ago [-]
[dead]
datadrivenangel 2 days ago [-]
Very excited for Extraction models to catch on, as decision models helped remind developers that not everything needs to be agentic LLM calls.
reddmachine 2 days ago [-]
Exactly this. Intelligence needs to be right-sized.
JustRouzbeh 1 days ago [-]
[dead]
ravipatip 21 hours ago [-]
Really appreciate Cloudflare making these models open-weight. Great to see an Infra company actively contributing to a more open and accessible AI ecosystem.
kingcauchy 2 days ago [-]
I’d love to see an moe qwen version or the smaller qwens as the backbone since running it locally would be much nicer with those
I’m excited to try this out with an ocr pipeline using a lightweight decision engine (not decision model) to route to either general ocr or know table schema extraction) like in legal where you know evidence might satisfy some schema but other stuff is just pdfs
Youden 2 days ago [-]
I have a DGX Spark with Qwen3.8-Flash-Next hooked up to Paperless as the OCR engine, it works really well. I even had it (Qwen) build some kind of abomination combining Qwen's ability to recognize and nicely format text with Tesseract's ability to produce word positions so that the PDFs have selectable text.
janalsncm 2 days ago [-]
Honestly I’d be curious to see how this stacks up against something like qwen vl. The small quants can run on a laptop.
kingcauchy 1 days ago [-]
LightOnOcr and Clairic are just qwen vl but fine tuned and trained with adapters basically
SSLy 1 days ago [-]
Qwen VL is now "just" Qwen, right?
sarkarghya 1 days ago [-]
Well im a little surprised that it is so cheap.
According to the announcement 1080 × 1920 px = 2,042 input tokens and a receipt would just cost $0.00049 @ $0.24 per million. Or like 1000 pages is like $0.49
That is like 8x cheaper than something like Mistral OCR 4.1 @ $4 per 1000 pages
The benchmarks also look good. have to try it out
sarkarghya 16 hours ago [-]
i tried it and it is absolutely abysmal. could not parse any of the 10 receipts. do not recommend
Bhakti2arty 1 days ago [-]
[dead]
msp26 1 days ago [-]
I really want to like this but all of my extraction tasks involve extracting a list of (an unknown number of) objects. It doesn't seem like clairic can do that?
e.g. with their receipt example I'd like to extract all the unique items with counts + whatever other metadata.
mungoman2 1 days ago [-]
Two pass? First extract how many items and then itemize those
orbis-tertius 1 days ago [-]
> For computation, estimation, and extraction use cases, we trained special heads that can handle estimates, forecasts, durations, calculated dates, and explicit arithmetic.
I've read this and their previous preview post, but couldn't find any information about the forecasting capabilities of these models. Do they explain anywhere what are the forecasts based on? How was the model trained for forecasting? Is it just using whatever pretraining data Qwen3.8b was trained on, or did they run some specific finetuning?
nchmy 1 days ago [-]
I had tried the original clairic preview a few weeks ago. Worked reasonably well, but meaningfully worse than Scaledown, who they benchmarked against here.
Just te-ran the basic tests that I had made and it is quite comparable now (both make very few errors). Though flash and full are 2x and 5x more expensive.
I was somewhat off-put by inconsistencies in Scaledown's docs and messaging about ZDR (the docs say they send to AWS textract), and their responses in discord and email were slow and lazy. Though they did say that it's all in-house now, but still haven't updated the docs.
It left me uneasy about the whole thing - even questioning the claims, and whether they have SOC II etc...
The prices are sufficiently low that I'm more comfortable going with one of the Clairic models for now.
I was going through their onboarding because the CTA claimed that all of December is free. I got to their "look how fast we is!" step and I hope others find this as amusing as I did
ScaleDown Extract
Task Specific Model built for extraction task
Finished · 4.66s
GPT-6 Astra
General Purpose Frontier LLM
Finished · 2.28s
also, they didn't ask me for any credentials so I presume they even paid OpenAI for that comparison, too
csoham 1 days ago [-]
Hey mdaniel. ScaleDown CTO here. Regarding why we are slower, we just launched and are seeing a lot of usage and our backend is struggling a bit. Scaling it up though, so that should be fixed soon. And yes, we did pay for the OpenAI API call, just to make it easier for users to see the difference
nchmy 1 days ago [-]
I really don't like saying this, but the whole thing just feels incredibly hacky. There's a significant lack of attention to detail - as exhibited in our comments.
And they have Cloudflare/Google levels of support (seemingly almost non-existent, which they don't have the reputation to justify). I just told them this in their Discord...
nchmy 1 days ago [-]
They've responded to the feedback. hopefully it was a good wakeup call. I always want to see everyone succeed
pcthrowaway 2 days ago [-]
I've tried clairic and find it interesting, but haven't yet found a use for it in a workflow (though I'm keeping it in mind).
Unfortunately I'm woefully under-resourced to self-host even a quantized version yet (though an M-series Max with 32GB of RAM is sufficient for very low-volume uses with clairic-flash or a quantized clairic, and 64GB with Ultra is where you can start looking at low-volume uses with the full model, unquantized)
But cloudflare provides limited, free access to clairic via their AI workers service, and the price for using it in excess of the free tier seems pretty reasonable to me.
reddmachine 2 days ago [-]
It's great for g
tickets, communication, email and other general extraction tasks. Would make more sense if they supported images and video.
selcuka 2 days ago [-]
> Would make more sense if they supported images and video.
It supports images, but not video.
reddmachine 2 days ago [-]
Oh nice, I should try it out. Image segmentation would be dope.
Does anyone know similiar model that works best for general-purpose?
bob1029 2 days ago [-]
The best model I'm aware of for media (vision) is GPT6.x and it's not even close.
I can open multiple PDFs on my screen, take a picture of it with my phone and then ask it to analyze all documents visible. I've never had it not handle something a human would be expected to.
fumeux_fume 2 days ago [-]
It really depends on the type of data you have. Paddle OCR works great on all kinds of documents and gives you excellent bounding boxes. You could even train a classifier or use a decision model to determine what values you request from the extraction model.
kingcauchy 2 days ago [-]
LightOnOcr is a great one and basically the same backbone 0.8B and 4B and larger varieties
gHA5 2 days ago [-]
What makes you think that? The `fields` part of the Usage section? Those look like example field identifiers to me.
wiradikusuma 2 days ago [-]
Yes, and they mentioned "system one" (like Jev). If it works "for any kind of printed document", they should make it explicit/clear in the documentation.
NitpickLawyer 1 days ago [-]
I think you must have misunderstood something along the way. Jev (et. all) being system one has nothing to do with "templates". Jev is still a "general classifier", and should work on any problem ootb (obviously with different accuracy rates). The same is true for this model, it should work with any task. You get to define the fields and "instructions" for each image.
Being strongly typed means that once you define a schema, you know you'll get a response back in that shape (syntax is fixed, semantics varies with model strength).
ArtRichards 2 days ago [-]
ive had good luck with unlimited-ocr. Havent tried paddle yet.
charan345 2 days ago [-]
[dead]
hizlikovboy27 2 days ago [-]
[dead]
Havoc 1 days ago [-]
Well done on Apache license!
Bit surprised at the pricing though. More than double Jev?
Guessing that's because of wider document support?
cm2187 1 days ago [-]
Why not printing the key data from an invoice as a QR code on the invoice instead of this cottage industry of invoice scanning? It seems every company is dealing with the same problem that can be trivially solved at the source (invoice generation).
sarkarghya 1 days ago [-]
I have actually tried convincing people to do that. There are a variety of problems.
First of all, everyone is using a different POS system, which makes it difficult for something like a QR code to be integrated, which at times needs to be fetched using an api endpoint.
Second of all, where are these invoices being hosted, then? Invoices often have private information like names and digits of card numbers, and we don't want that leaking. A company like Stripe could do it. For others it would create a dependency like a link shortener. There's not a lot of information that can be stored in the qr code itself.
cm2187 1 days ago [-]
But also the point of sale needs to be able to work offline. But still you could have key details about the invoice stored as a large QR code underneath. That would be self contained and have the necessary error correction logic for it to be consumed by any expense system
pwmglenn 1 days ago [-]
You could store about 3KB in a qr code. I imagine most invoices could fit into that? And if not, you could use a few to link them together?
VoidWhisperer 1 days ago [-]
Most of the usecase for this sort of thing is at the point of the person receiving the invoice. You don't have control over how/in what format/layout the invoice is sent in. This means it would be hard, on the receiving side, to guarantee that every invoice you need to process has this QR code on it.
I think, atleast here in the US, the government doesn't mandate any specific format for invoices, just that it has certain information like those required by IRS recordkeeping rules.
Essentially, the reason this product niche around invoice/receipt scanning exists is because the person receiving it doesn't have control over the format and can't require (within reason anyways) that it has this QR code on it
oneseven 1 days ago [-]
There's a network building up in Europe called peppol. It uses XML formatted invoices. It's clunky (XML in 2026?) but it's a standard. Because governments require it, companies are forced to use it, and that will (ideally) facilitate business-to-business use.
akazantsev 1 days ago [-]
You can go one step further and make banks send you digital invoices.
MrBuddyCasino 1 days ago [-]
I told them to do exactly that in a project, and they ended up doing that (except it was an ID and the page number, not the data itself). Its pretty trivial to do, just have to get the information density right as there isn’t a lot of space available usually.
QR codes are pretty wasteful, there are better options.
puppycodes 2 days ago [-]
keyword stuffing the term "superintelligence" like its gonna catch on is hilarious. Yay for open weights though :)
pupppet 2 days ago [-]
Why do these companies feel the need to legitimize him. He’ll be gone in two years, but you’ll still want me as a customer.
vlovich123 2 days ago [-]
If you view people into power or otherwise hurt their bottom line because of these actions, then you have an argument. Otherwise I don’t think they’re really going to care. Also, what are you going to do when all US companies are doing this?
The only way to change this imho is by changing the structural politics of the US. This was the Business Plot just executed more slowly over time (or evolved into it naturally).
dc396 2 days ago [-]
Because he can sic the Treasury, SEC or DOJ on you, regardless of merit, whereas you can't?
greggsy 2 days ago [-]
He can’t sic them on to all tech companies at once
mullingitover 2 days ago [-]
These regime cronies are going to be getting weekly colonoscopies by the new Congress until they resign or the whole administration is wiped away in the next wave election.
On the contrary, I think companies calling standard AI products “superintelligence” are risking future lawsuits for misleading investors.
literalAardvark 2 days ago [-]
Well, let's work through it:
- it sells better
- AI means a lot of things, half of them antiquated symbolic systems
- SI is just as aspirational a moniker as AI is
- it's a completely different class of systems from old AI, and the capabilities are certainly super, if not actually intelligent
Idk. I hate the term but it could be due to my TDS which is a certainty.
mcintyre1994 2 days ago [-]
It seems especially stupid for a model like this. I’m not surprised that Cloudflare specifically want to cosy up and use the term for Trump though.
tonyponydong 1 days ago [-]
[dead]
huslage 1 days ago [-]
The use of the word "superintelligence" is ridiculous. I have no words for this nonsense.
dsign 1 days ago [-]
I'm working on a multi-agent harness that I can use for some esoteric tasks while hiking, and more extraction models, TTS, voice to text and general intelligence are welcome. So I can go walking and talking to my little team. My only gripe is that the current crop of models can't do proper gossip, office drama and politiquing; I just need to hear Neon whispering conspiratorially about how Claude goes to sabotage the kernels when she thinks nobody is looking...
soulofmischief 2 days ago [-]
Using my GPS system to navigate to the nearest ATM machine in order to enter my PIN number on the LCD display and deposit cash so that I can invest in AI superintelligence.
I would love to have an internal stack.
Speed and cost are an issue right now.
For the preprocessing, I forgot to mention that I also DO use paddle here: I combine usage of (paddle) PP-LCNet and (paddle) UVDoc for page rotation and straightening. [0] [1]
For OCR of detailed text fragments, I use MinerU2.5-Pro-2605-1.2B (Q8_0) with some blank detection (i.e. if the response is blank, I try some variations with widening pixels at each edge and brightness/contrast). [2]
For tables, the full pipeline looks as follows:
- (paddle) PP-LCNet for detecting which kind of table: bordered or borderless [3]
- (paddle) SLANet Plus is used to propose a cell grid. However results here are not always adequate, as such: we also run MinerU's UnetStructure for bordered tables or if SLANet plus output is bad (low cell count). [3] [4]
- For the text extraction step, we use (paddle) PP-OCRv6 Small to detect the areas, then the regular mineru for the real text extraction. [5] [2]
- A final step is to reassemble the tables in to html, this is more procedural/code based.
If interested, I can maybe extract relevant parts into a custom pipeline and push it, though the code is not polished.
EDIT: formatting (list items were not on new lines)
Might be a bit clearer than my stacked comments that are all over the place.
Basically the gist of it is, use paddle for most stuff, improve where relevant with some mineru and heron detections. Build in fallbacks - at every step.
OpenRouter uses cloudflare as it's api provider for the file parsing for LLMs that may not support files natively, but in some personal benchmarks the mistral's version of the OpenRouter file processing performed better (with GLM 5.3 Flash as the "backend").
I’m excited to try this out with an ocr pipeline using a lightweight decision engine (not decision model) to route to either general ocr or know table schema extraction) like in legal where you know evidence might satisfy some schema but other stuff is just pdfs
According to the announcement 1080 × 1920 px = 2,042 input tokens and a receipt would just cost $0.00049 @ $0.24 per million. Or like 1000 pages is like $0.49
That is like 8x cheaper than something like Mistral OCR 4.1 @ $4 per 1000 pages
The benchmarks also look good. have to try it out
e.g. with their receipt example I'd like to extract all the unique items with counts + whatever other metadata.
I've read this and their previous preview post, but couldn't find any information about the forecasting capabilities of these models. Do they explain anywhere what are the forecasts based on? How was the model trained for forecasting? Is it just using whatever pretraining data Qwen3.8b was trained on, or did they run some specific finetuning?
Just te-ran the basic tests that I had made and it is quite comparable now (both make very few errors). Though flash and full are 2x and 5x more expensive.
I was somewhat off-put by inconsistencies in Scaledown's docs and messaging about ZDR (the docs say they send to AWS textract), and their responses in discord and email were slow and lazy. Though they did say that it's all in-house now, but still haven't updated the docs.
It left me uneasy about the whole thing - even questioning the claims, and whether they have SOC II etc...
The prices are sufficiently low that I'm more comfortable going with one of the Clairic models for now.
https://scaledown.ai/#pricing
for those interested
And they have Cloudflare/Google levels of support (seemingly almost non-existent, which they don't have the reputation to justify). I just told them this in their Discord...
Unfortunately I'm woefully under-resourced to self-host even a quantized version yet (though an M-series Max with 32GB of RAM is sufficient for very low-volume uses with clairic-flash or a quantized clairic, and 64GB with Ultra is where you can start looking at low-volume uses with the full model, unquantized)
But cloudflare provides limited, free access to clairic via their AI workers service, and the price for using it in excess of the free tier seems pretty reasonable to me.
It supports images, but not video.
Does anyone know similiar model that works best for general-purpose?
I can open multiple PDFs on my screen, take a picture of it with my phone and then ask it to analyze all documents visible. I've never had it not handle something a human would be expected to.
Being strongly typed means that once you define a schema, you know you'll get a response back in that shape (syntax is fixed, semantics varies with model strength).
Bit surprised at the pricing though. More than double Jev?
Guessing that's because of wider document support?
First of all, everyone is using a different POS system, which makes it difficult for something like a QR code to be integrated, which at times needs to be fetched using an api endpoint. Second of all, where are these invoices being hosted, then? Invoices often have private information like names and digits of card numbers, and we don't want that leaking. A company like Stripe could do it. For others it would create a dependency like a link shortener. There's not a lot of information that can be stored in the qr code itself.
I think, atleast here in the US, the government doesn't mandate any specific format for invoices, just that it has certain information like those required by IRS recordkeeping rules.
Essentially, the reason this product niche around invoice/receipt scanning exists is because the person receiving it doesn't have control over the format and can't require (within reason anyways) that it has this QR code on it
QR codes are pretty wasteful, there are better options.
The only way to change this imho is by changing the structural politics of the US. This was the Business Plot just executed more slowly over time (or evolved into it naturally).
On the contrary, I think companies calling standard AI products “superintelligence” are risking future lawsuits for misleading investors.
- it sells better
- AI means a lot of things, half of them antiquated symbolic systems
- SI is just as aspirational a moniker as AI is
- it's a completely different class of systems from old AI, and the capabilities are certainly super, if not actually intelligent
Idk. I hate the term but it could be due to my TDS which is a certainty.