Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 8 min read Announcement easyNovice

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

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.

Related posts

  • Supercharge your OCR Pipelines with Open Models

    Hugging Face mediumAdept

    Vision-language-model-based OCR has moved well beyond plain transcription. Current open-weight models such as OlmOCR-2, Chandra, dots.ocr, DeepSeek-OCR, PaddleOCR-VL, Granite-Docling and Nanonets-OCR2 handle handwriting, tables, charts, formulas and layout grounding, and output DocTags, HTML, Markdown or JSON. Choose the output format by use case: layout-preserving formats for digital reconstruction, Markdown with image captions for LLM input, and JSON for programmatic use. Since performance varies widely by domain, evaluate candidates on your own representative documents alongside OmniDocBench, OlmOCR-Bench and CC-OCR. Open models are cheap to run, around $178 per million pages for OlmOCR-2 on an H100, and serve easily with vLLM behind an OpenAI-compatible client.

  • Welcome the NVIDIA Llama Nemotron Nano VLM to Hugging Face Hub

    Hugging Face easyNovice

    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. It uses dynamic high-resolution tiling to handle dense layouts and arbitrary aspect ratios, and is reported to lead on OCRBench v2 for text recognition, table extraction, element parsing and bounding-box grounding. Training has two stages: MLP-connector pre-training on ~1.5M samples for vision-language alignment, then end-to-end SFT on OCR-heavy data drawn from NeMo Retriever Parse sets (NVPDFTex, Common Crawl PDFs, Wikipedia renders) plus DocLayNet, FinTabNet and PubTables-1M, with affine and photometric augmentation. The model outputs tables in LaTeX, HTML or markdown and can be post-trained further with NeMo and Megatron scripts.

  • Visual Document Retrieval Goes Multilingual

    Hugging Face hardMaster

    vdr-2b-multi-v1 is a multilingual embedding model that encodes document page screenshots into single dense vectors for OCR-free retrieval. It is fine-tuned from dse-qwen2-2b-mrl-v1 on a new open 500k-sample synthetic dataset covering Italian, Spanish, English, French and German. The data pipeline is laid out step by step: topic-driven PDF scraping, layout-based page sampling, VLM query generation, filtering with voyage-3 and hard-negative mining. The model improves NDCG@5 by about 2.3% on average over the base model and by 2.3% on Italian-to-German cross-lingual search. An English-only variant matches the base model using 768 instead of 2560 image tokens, about 3x faster inference, and Matryoshka plus binary embeddings keep roughly 97-99% of quality at much smaller vector sizes.

  • A PDF is not a string

    Render mediumAdept

    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. LlamaParse splits ingestion into classification (document type plus confidence), parsing (layout-aware Markdown with OCR and preserved tables) and extraction (schema-driven JSON), so failures can be traced to a specific stage. The reference architecture on Render uses a thin Express upload service streaming progress over SSE, Render Workflows running five tasks (store, classify, parse, extract, store results), and four Postgres tables holding each intermediate output as an audit trail. Demos showed a receipt classified at 85% confidence and a 24-page bank statement fully parsed with five fields extracted.

  • Accelerating Document AI

    Hugging Face easyNovice

    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. Models such as LayoutLMv3 and Donut combine text and visual layout. On RVL-CDIP they reach about 95% accuracy, against 89% for text-only BERT, and on FUNSD LayoutLM raises F1 from 60% to 90%. Practical advice: check model licenses early, since LayoutLMv2/v3 checkpoints are non-commercial. Start with a few hundred annotated documents and fine-tune pretrained models rather than pre-training your own. Weigh OCR-free, high-resolution models against their memory cost, and verify that OCR bounding boxes align with the model processor.

The quest for software engineering knowledge.

Look:
Layout: