---
title: "Dharma Field Extractor: Any Document In, Structured Fields in JSON Out"
description: "Dharma-AI's Field Extractor is a 2B-parameter vision-language model, a LoRA adapter on DharmaOCR-LITE v1.1 trained on 43,384 field-annotated examples, that turns document images into typed JSON, either open-ended or filling a caller-supplied schema with nulls for missing fields."
url: "https://swe.quest/articles/dharma-field-extractor-any-document-in-structured-fields-in-json-out-ab0fec69412fc965"
canonical: "https://huggingface.co/blog/Dharma-AI/dharma-field-extractor"
source: "Hugging Face"
published: "2026-11-04"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 8
tags: ["computer-vision","model-training","evals","llms","cost-optimization"]
---

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

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-11-04, 8 min read, Announcement. Original: [https://huggingface.co/blog/Dharma-AI/dharma-field-extractor](https://huggingface.co/blog/Dharma-AI/dharma-field-extractor)

## Summary

Dharma-AI's Field Extractor is a 2B-parameter vision-language model, a LoRA adapter on DharmaOCR-LITE v1.1 trained on 43,384 field-annotated examples, that turns document images into typed JSON, either open-ended or filling a caller-supplied schema with nulls for missing fields. On a 546-document, 1,638-case benchmark scored by field-level F1 × Levenshtein similarity × valid-JSON rate, it reached 0.834, ahead of four frontier LLM configurations ranging from Claude Opus 5 (0.816) to GPT-5.6 Luna (0.741). Self-hosted on a single L40S, it cost an estimated 6–147× less per extraction than the API list prices. Held-out SROIE and FUNSD examples show correct handling of unlabeled addresses, blank fields and checkbox booleans.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)

## Prerequisites

- LLM fine-tuning basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- OCR and document AI ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- JSON schemas

## Keywords

Dharma Field Extractor, DharmaOCR-LITE, LoRA, SROIE, FUNSD, Claude Opus 5, NVIDIA L40S

## Related posts

- [Supercharge your OCR Pipelines with Open Models](https://swe.quest/articles/supercharge-your-ocr-pipelines-with-open-models-6c91417d0009054a.md): Hugging Face · 2025-10-21 · Medium · 16 min read · Computer vision, Inference & serving, Evaluation, RAG & retrieval
  Vision-language-model-based OCR has moved well beyond plain transcription.
- [Welcome the NVIDIA Llama Nemotron Nano VLM to Hugging Face Hub](https://swe.quest/articles/welcome-the-nvidia-llama-nemotron-nano-vlm-to-hugging-face-hub-87d3387fe2e7973a.md): Hugging Face · 2025-06-27 · Easy · 7 min read · Computer vision, LLMs, Model training
  Llama Nemotron Nano VL is an 8B vision language model for document processing, built on Llama-3.1-8B-Instruct with a C-RADIOv2-VLM-H vision transformer.
- [Visual Document Retrieval Goes Multilingual](https://swe.quest/articles/visual-document-retrieval-goes-multilingual-a925525d4c93b18e.md): Hugging Face · 2025-01-10 · Hard · 11 min read · RAG & retrieval, Model training, Evaluation, Computer vision, Vector search
  vdr-2b-multi-v1 is a multilingual embedding model that encodes document page screenshots into single dense vectors for OCR-free retrieval.
- [A PDF is not a string](https://swe.quest/articles/a-pdf-is-not-a-string-2f4d2c0ae6496a1b.md): Render · 2026-08-06 · Medium · 4 min read · Data pipelines, AI agents, System design, LLMs
  Document ingestion for agents breaks because PDFs carry no structural markup, so naive text extraction scrambles multi-column layouts and tables, and frontier models lose accuracy on visual structure while returning flat text with no bounding boxes, confidence or provenance.
- [Accelerating Document AI](https://swe.quest/articles/accelerating-document-ai-a399320437d1b8e7.md): Hugging Face · 2022-11-21 · Easy · 13 min read · Computer vision, Machine learning, Model training
  Open-source multimodal models now make it practical to build custom Document AI systems for OCR, document classification, layout analysis, parsing, table extraction and document question answering.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
