Models
Dharma's Field Extractor Promises Document-to-JSON Extraction. Here's What to Verify Before You Trust It.
Dharma reports a quality and cost edge for its document-to-JSON model, but the announcement omits the scores. Here is what to test before it touches your intake pipeline.
Dharma says its Field Extractor turns document images into structured JSON, either by identifying fields on its own or by filling a schema you provide. The company also reports a quality edge over four general-purpose model configurations, but the cited announcement does not provide the underlying scores or define the points scale. Treat the result as a reason to run your own evaluation, not as proof the tool will work on your documents. 1
The real question for operations and applied AI teams isn't whether a model can produce JSON. It's whether the model produces the right values, in the right structure, reliably enough to sit inside a real intake pipeline, and whether the cost of catching its mistakes still makes automation worth it.
What Field Extractor does for structured data extraction
Dharma describes two request modes. Open extraction uses labels, values, and layout to identify fields and return them as key-value pairs. Schema-directed extraction lets you specify exactly which fields to return. 1
For schema-directed requests, you supply field names and types: string, number, or boolean. Dharma says the output follows the requested keys, adds no extra fields, and returns null when a requested field doesn't appear in the document. 1 That's a reasonable contract for downstream software, but it's a claim to test against your own documents and integration path, not to assume.
A sample invoice schema might look like this:
{
"invoice_number": "string",
"total": "number",
"paid": "boolean",
"purchase_order": "string"
}
If a purchase-order number isn't present, the documented behavior returns that key with a null value instead of dropping it. 1 That distinction matters when downstream logic needs to tell "not found" apart from "not requested." Your team still needs to decide how a null should affect approval, reconciliation, or record creation.
Field Extractor also describes table output as rows with cells matched to corresponding keys, using invoice line items as an example. 1 That makes the tool relevant to workflows where a document contains repeated records, not just a handful of header fields. The announcement does not establish accuracy when rows wrap across a page, values go missing, or scans are hard to read. Those are failure cases to include in testing.
What the announcement establishes, and what it leaves open
Dharma says a single checkpoint handles multiple document types without per-type fine-tuning. The announcement names the base model as DharmaOCR-LITE v1.1, a 2-billion-parameter model, with a LoRA adapter trained on 43,384 examples spanning both request modes. 1
The training mix combines English multi-domain documents collected from the public web, internally sourced Brazilian documents in Portuguese, and a smaller multilingual slice covering other European and Asian languages. Listed document types include receipts, commercial invoices, forms, bank statements, identity documents, and synthetic data. 1 That's useful context for understanding the model's training distribution. It is not a coverage guarantee for your formats, languages, or scan quality.
The model and benchmark description provided here does not establish supported input formats, file-size limits, throughput, latency, deployment options, availability, or data-handling terms. It also provides no details about privacy, retention, security, or exception-review controls. 1 These aren't footnotes. They affect whether you can wire the tool into an intake system and what guardrails you may need before using real documents.
Analysis: "Works across document types" is a product description, not a substitute for a representative test. A model can handle the broad category "invoice" while stumbling on a specific layout, language, or field convention common in your pipeline. Your evidence has to come from your documents and your decisions, not the vendor's category labels.
How to test AI document extraction on your own documents
Build an evaluation set from the documents that actually drive the workflow, not a clean sample. Include the variation that will break things: different layouts, poor scans, multiple languages, tables, and fields that are sometimes absent. Create field-level ground truth so each output can be checked against a known-correct answer. The question of what counts as proof when a vendor can't show you its own traces is a close cousin of this problem; Legora Says It Can't Read Client Traces—What Counts as Proof a Legal AI Agent Works? covers it for legal agents.
Test both request modes rather than assuming one wins. Open extraction may suit discovery work when you don't fully know the field set in advance; a fixed schema fits better when the downstream record is already defined. Include schemas that deliberately request absent fields, since Dharma's documented behavior is to return null for those. 1
Score errors separately instead of collapsing everything into one pass rate:
- Field presence: Was a required field missed or invented?
- Value correctness: Is the extracted text or number actually right?
- Type and structure: Does the value match the requested type, and does the JSON parse?
- Tables: Are rows in order, with each value matched to the correct key?
- Exceptions: How often does a result need a human to check or fix it?
Break results out by document type and field. A missed optional field might be tolerable; a wrong account number or a misaligned invoice line item usually isn't. Set acceptance thresholds (valid JSON rate, field correctness, table accuracy, manual-review rate, processing time, cost per document) before you look at results, not after.
Dharma's benchmark covers 546 documents and 1,638 cases across open extraction, partial schemas with real fields, and schemas that request nonexistent fields. 1 The announcement does not provide absolute scores, per-scenario breakdowns, or full dataset details. 1 The benchmark is useful for understanding what Dharma chose to test. It can't tell you whether that test resembles your workload.
What the reported document-to-JSON benchmark measures
Dharma's scoring combines field-level F1, matched by field path and table position, with value Levenshtein similarity for matched fields and the share of outputs that are valid JSON. 1 That's a more complete metric than a simple parse check: it accounts for field presence, value accuracy, and table placement together. 1
But a blended score can hide the one failure mode that matters most to your workflow. The announcement does not break results out by document type, language, schema complexity, image quality, or error category. 1 If you need that breakdown, ask Dharma for it directly, or build it yourself on an internal evaluation set.
Dharma reports a quality edge ranging from 1.8 points over Claude Opus 5 to 9.3 points over GPT-5.6 Luna. 1 The underlying scores and the scale those points sit on aren't included in the cited material. 1 Without that, the number is directional signal at best. It doesn't tell you whether a 1.8-point gap is something you'd notice in production.
When cost and model size change the decision
Dharma reports costs roughly 6 times lower than GPT-5.6 Luna and roughly 147 times lower than GPT-5.6 Sol. 1 For the frontier models, the comparison uses measured average input and output tokens per page, including reasoning tokens, against each provider's published list price. 1 The frontier models ran with reasoning set to low, except Claude Opus 5, which used adaptive effort and could skip reasoning on simpler pages while staying at that low setting. 1
That reported gap is a reason to put Field Extractor on your shortlist. It isn't a forecast of your bill: benchmark comparisons don't establish what your own workload will cost. Run the cost comparison on the same document set, and count more than inference. Review time, reprocessing, correction, exception routing, and downstream failures all affect the economics. If you're weighing a specialist extractor against general-purpose models, a model catalog that lets you compare candidates side by side makes it easier to run the same document set through each one.
The 2-billion-parameter base model and the single-checkpoint claim are useful architecture context. 1 Neither tells you deployment requirements, total operating cost, or how much integration work you're signing up for. Those need separate confirmation.
Fitting document processing AI into a production workflow
Analysis: Treat extraction output as an input to a controlled process, not an instruction to update your system of record. Put validation between the model's response and any business action it triggers.
At minimum, check JSON syntax, required keys, types, permitted value ranges, and relationships between table fields. Route anything that fails those checks, or that needs human judgment, to an exception path. The cited announcement does not describe confidence scores or built-in review tooling, so confirm whether those exist or plan to build your own. 1
For troubleshooting, keep the source document, the extracted payload, the schema version, the validation result, any correction made, and the final accepted record. That trail helps you tell a model error apart from a schema mismatch or a downstream transformation bug. If extraction calls share infrastructure with other model traffic, an enterprise AI gateway with usage analytics and audit logs is one place that record-keeping can live, though you still need the document-level trail described here.
Treat tables as their own failure surface. For invoice line items, check row order, cell-to-key matching, quantities, values, and what happens when a row wraps or a field is blank. Dharma describes the intended row-by-row output but does not establish its accuracy on real-world documents. 1
Nulls need an explicit policy too. Dharma says an absent requested field comes back as null. 1 Decide upfront which nulls are fine to pass through, which require review, and which should block processing entirely. Otherwise a response that's structurally valid JSON can move through a pipeline while leaving a required business decision unsupported.
Next step: run a limited proof of value
Run a limited proof of value: representative documents, a fixed schema tied to fields that drive a real downstream decision, and an open-extraction comparison if your workflow needs to discover fields beyond that schema. 1
Set your acceptance thresholds first (field correctness, valid JSON rate, table-row accuracy, manual-review rate, processing time, cost per document) before you see a single result. Then ask Dharma for what's missing: full benchmark scores and scenario breakdowns, coverage relevant to your document formats, languages and scan conditions, input limits, deployment details, pricing, and data-handling terms. 1
Analysis: Only move forward once every remaining error type has an owner and a recovery path. JSON that parses cleanly can still hold a wrong number. For a low-stakes intake task, a review queue might be enough. For anything that triggers payment, eligibility, or account changes, set the bar at what it would cost you to act on a wrong extraction, then measure against that, not against the vendor's benchmark.
Frequently asked questions
What is Dharma Field Extractor?
Dharma describes Field Extractor as a model that accepts a document image and returns structured JSON, either by identifying fields or filling a user-provided schema. 1
Can Field Extractor return invoice line items?
The announcement says tables can be returned row by row with cells matched to their keys, and gives invoice line items with quantities and values as an example. 1 It does not establish accuracy on your invoices.
Does Field Extractor support schemas?
Yes. Dharma says users can specify field names and string, number, or boolean types; requested keys are used, extra fields are not added, and absent fields return null. 1
How accurate is Dharma Field Extractor?
Dharma reports a quality advantage of 1.8 to 9.3 points over four general-purpose frontier configurations, but the announcement does not provide the underlying scores or define the points' scale. 1 Run a labeled test on your own documents.
What should companies verify before using it in production?
Verify field and table accuracy, invalid JSON rates, performance by document type and language, latency, throughput, input limits, deployment options, pricing, data handling, and exception-review controls. The announcement leaves these questions open. 1
Sources
1 "Dharma Field Extractor: Any Document In, Structured Fields in JSON Out," Huggingface, published 2026-11-04. https://huggingface.co/blog/Dharma-AI/dharma-field-extractor
Questions
- What is Dharma Field Extractor?
- Dharma describes Field Extractor as a model that accepts a document image and returns structured JSON, either by identifying fields or filling a user-provided schema [1].
- Can Field Extractor return invoice line items?
- The announcement says tables can be returned row by row with cells matched to their keys, and gives invoice line items with quantities and values as an example [1]. It does not establish accuracy on a buyer's invoices.
- Does Field Extractor support schemas?
- Yes. Dharma says users can specify field names and string, number, or boolean types; requested keys are used, extra fields are not added, and absent fields return null [1].
- How accurate is Dharma Field Extractor?
- Dharma reports a quality advantage of 1.8 to 9.3 points over four general-purpose frontier configurations, but the supplied announcement does not provide the underlying scores or define the points' scale [1]. Buyers should run a labeled test on their own documents.
- What should companies verify before using it in production?
- They should verify field and table accuracy, invalid JSON rates, performance by document type and language, latency, throughput, input limits, deployment options, pricing, data handling, and exception-review controls. The supplied announcement leaves these questions open [1].
Sources
- Dharma Field Extractor: Any Document In, Structured Fields in JSON Out · Huggingface · Nov 4, 2026
How this article was made: an AI writer persona researched and wrote it from the sources listed above; separate AI passes edited it, checked its claims against those sources and audited it; an editor at Yelno reviewed and approved it before publication. How the Yelno blog works · Follow Yelno on LinkedIn

