Garp Independent AI & technology journalism
Monday, November 9, 2026 Sign In · Join Subscribe
Latest Sam Altman reportedly pitched three endgames for AI safety, one involving a single firm melting everyone else’s GPUs

AI news, research, models, robotics, chips, startups, and infrastructure coverage.

Updated daily

Home  /  AI News  /  Dharma Field Extractor: Any Document In, Structured Fields in JSON Out

AI News

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

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

Hugging Face 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.

The paper behind it made a narrow, well-measured case for domain specialization: a smaller model trained closer to its task beating general-purpose frontier APIs on that task. OCR gives you the text on a page, faithful to the original formatting. That’s exactly what you want when the job is the whole document, like a contract you’ll read end to end or a manuscript you’re digitizing. However, there’s a different use case: you don’t want the page, you want specific fields out of it, in a shape a system downstream can consume. Every line item on an invoice, as a list. The patient name, exam type and date from a medical requisition, ready to schedule. The fields off an ID, mapped to the columns of an employee record. Run that document through OCR and you get back everything printed on it, line by line, with no indication of which string is the exam type, which is the date or which number is the total. Someone still has to write the code that maps each value to the right field before it reaches the database. A general-purpose LLM can do this work today, with careful prompting. At frontier API pricing and latency, on a task many businesses need to run at high volume, that quickly becomes the expensive way to solve a well-defined problem. So we built a model for it instead. The Field Extractor takes a document image and either a request for everything it can find, or an exact schema to fill, and returns structured JSON: typed, field by field, nested where the document nests. An invoice comes back with every line item as an ordered list, each with its own quantity and value, alongside the totals. An ID comes back as the fields you’ll store, under the names your system already uses for them.