# Dharma Field Extractor: Any Document In, Structured Fields in JSON Out

DevFeed: [Dharma Field Extractor: Any Document In, Structured Fields in JSON Out](<https://devfeed.tech/articles/dharma-field-extractor-any-document-in-structured-fields-in-json-out-118022.md>)

Original publisher: [Read original article](<https://huggingface.co/blog/Dharma-AI/dharma-field-extractor>)

Author: Gabriel Pimenta de Freitas Cardoso; Paulo Henrique de Medeiros Araujo; Bruno Duarte; Francisco de Almeida Rocha Alves

Published: 2026-11-04T17:50:10Z

Content type: release

Language: en

Sources: [Hugging Face](<https://devfeed.tech/sources/hugging-face-blog.md>)

Topics: [document ai](<https://devfeed.tech/topics/document-ai.md>), [JSON](<https://devfeed.tech/topics/json.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Amazon Textract](<https://devfeed.tech/topics/amazon-textract.md>), [Frontier AI](<https://devfeed.tech/topics/frontier-ai.md>), [benchmark overfitting machine learning](<https://devfeed.tech/topics/benchmark-overfitting-machine-learning.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [2019](<https://devfeed.tech/tags/2019.md>), [2020](<https://devfeed.tech/tags/2020.md>), [contracts](<https://devfeed.tech/tags/contracts.md>), [cost](<https://devfeed.tech/tags/cost.md>), [court](<https://devfeed.tech/tags/court.md>), [field](<https://devfeed.tech/tags/field.md>), [fields](<https://devfeed.tech/tags/fields.md>), [forms](<https://devfeed.tech/tags/forms.md>), [frontier](<https://devfeed.tech/tags/frontier.md>), [ids](<https://devfeed.tech/tags/ids.md>), [json](<https://devfeed.tech/tags/json.md>), [llm](<https://devfeed.tech/tags/llm.md>), [model](<https://devfeed.tech/tags/model.md>), [ocr](<https://devfeed.tech/tags/ocr.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [range](<https://devfeed.tech/tags/range.md>), [structured](<https://devfeed.tech/tags/structured.md>), [type](<https://devfeed.tech/tags/type.md>), [wide](<https://devfeed.tech/tags/wide.md>)

## AI overview

Dharma Field Extractor converts document images into typed JSON, either by finding fields without a schema or filling an exact user-provided schema; missing requested values are returned as null. The article says one model handles multiple document types without per-type fine-tuning. In the authors' 546-document, three-scenario benchmark, it scored 0.834, above four tested frontier configurations (0.741-0.816). They report costs 6-147 times lower, but compare API list-price estimates with self-hosted GPU time on one L40S, not a sales price; deployment cost depends on hardware, volume, and latency. SROIE and FUNSD were held out from training. These are the article's reported results and do not establish performance beyond its benchmark.

## Source excerpt

*A 2-billion-parameter model that extracts exactly the fields you ask for, from any document type, outperforming every frontier LLM we tested, at a fraction of the cost.* In April, we released DharmaOCR-LITE, a model specialized for OCR across a wide range of documents, from contracts and court filings to invoices, IDs and forms.