Document AI · Sarvam Extract document AI evaluation guide
Sarvam Extract makes evidence part of the document output
Sarvam's new API returns schema-shaped values with page, bounding-box and confidence evidence. Its benchmark results are promising, but they come from Sarvam's own runs and need testing on your documents.[1][2][3]
Sarvam Extract is a schema-guided document extraction API with Basic and Advanced modes. Both accept documents up to 500 pages and return structured results whose leaves include confidence and source references.[1][4] Sarvam reports 94.4 on ExtractBench for Basic at ₹1 per page and 95.4 for Advanced at ₹2.50 per page. Those runs used an open, deterministic benchmark, but Sarvam ran the comparisons and made a small disclosed scoring adjustment.[1][2][3] The practical opportunity is traceable extraction, rather than another PDF chat demo. Test field accuracy, long-list completeness, missing-value behavior and evidence quality on a frozen set of your own documents. Route uncertain or consequential fields to review, and keep deterministic business checks after extraction.[1][3][4]
- Modes
- Basic · Advanced
- Document limit
- Up to 500 pages
- Vendor-reported score
- 94.4 · 95.4
- Languages
- English + 22 Indian languages
What Sarvam released
Sarvam Extract turns one or more documents and a JSON Schema into an asynchronous extraction job. The current API accepts either uploaded files or existing upload IDs, and either an inline schema or a saved configuration.[1][4]
Basic mode reads fields on the pages where they appear. Sarvam positions it for forms, IDs, invoices and high-volume processing. Advanced adds a second document-level reading to resolve context, check relationships such as line items against totals, and revisit values when the two passes disagree.[1][4]
Results contain the structured object plus annotations that mirror its shape. Each leaf can include confidence and source locations.[4] The launch post says both modes support files up to 500 pages, English and 22 Indian languages, and original-script values.[1]
That combination matters because a usable extraction system must answer two questions: what value did it return, and where did that value come from? A source page and box reduce the work required to audit an answer, but they do not prove the answer is correct.
Why page-first extraction matters
Long documents create two different failure modes. A model can miss the relevant page, or find the page and read the value incorrectly. Sending an entire document in one prompt also raises the chance that long tables will be truncated before every row is returned.[1][2][3]
Sarvam says Extract first identifies the relevant pages, then performs focused reads. Advanced combines those page-level results with a second pass across the document and returns to the source page when the readings conflict.[1]
This is a useful systems choice, rather than proof of universal superiority. Page routing can miss a page. A focused read can still misread handwriting or attach a value to the wrong record. The document-level pass can introduce an inference that is plausible but absent from the source.
Evaluate the stages separately. Record retrieval recall for requested fields, value accuracy after a page is found, completeness for repeated rows, and grounding accuracy for the cited page and box. One aggregate score can hide a failure in any of those stages.[2][3]
What the benchmark does and does not prove
ExtractBench contains 370 documents and 4,869 pages across eight business domains and 67 document types. It includes born-digital files, scans, handwriting, long lists, dense forms and long documents. Its evaluator is deterministic, so the same predictions and answer key produce the same score.[2][3]
Sarvam reports 94.4 for Basic and 95.4 for Advanced. The company also reports 93.0 for Basic on the 20 documents longer than 50 pages, compared with 28.2 for its one-call Gemini 3.8 Flash setup.[1] These are vendor-run results, not an independent test commissioned for the launch.
Sarvam disclosed that it adjusted the scorer's treatment of objects whose child fields are all empty. Under the unmodified scorer, the reported totals are 94.36 and 95.33, close to the adjusted values.[1] That disclosure helps interpretation, while preserving the need to reproduce the run.
The public benchmark is broad enough to expose long-list and grounding failures, but it cannot represent your document mix, field definitions, handwriting quality, privacy rules or cost of a specific error.[2][3] A 95.4 average does not mean that 95.4% of your fields will be safe to use without review.
Choose Basic or Advanced by failure mode
- Start with Basic when fields are printed directly on short forms, invoices or identity documents and throughput matters.[1][4]
- Test Advanced when meaning depends on document-wide context, repeated sections, totals, reporting periods or long records.[1][4]
- Do not route solely by page count. A one-page form with poor handwriting may be harder than a clean 80-page filing with one well-labelled table.
- Compare the two modes on the same held-out documents. Measure accuracy, completeness, evidence quality, latency and total billed pages.
- Use confidence as a routing input only after calibration. Plot observed error rates by confidence band on your data, rather than assuming a score has the same meaning across document types.
- Require deterministic checks for totals, dates, identifiers, enums and cross-field rules after extraction. Schema-valid output can still be wrong.
A production evaluation plan
- Freeze a representative set before integration. Include clean PDFs, scans, handwriting, rotated pages, multi-page tables, empty fields and documents near your longest expected size.
- Write the target schema from downstream needs. Give each field a precise description, distinguish missing from false or zero, and cap nesting within the API's documented limits.[4]
- Create a reviewed answer key with values, repeated-row counts and source boxes. Split the documents into development and untouched acceptance sets.
- Run Basic and Advanced with the same inputs. Report field accuracy, missing-value precision, row recall, page-grounding accuracy, box overlap, latency and billed cost by document type.
- Inspect every high-confidence error and every low-confidence correct answer. Set review thresholds from observed risk, especially for money, identity, health, legal and compliance fields.
- Check source evidence in the application. Make the page and box visible to reviewers, and preserve the source document hash, schema version, API mode and result for audit.
- Canary with read-only output. Compare extracted values with the current manual process before allowing any result to update a system of record.
- Re-run the frozen set when the model, mode, schema, preprocessing or document mix changes. A vendor benchmark cannot replace regression evidence from your workflow.
Limits and operational questions
- Availability is currently described for users in India and the US, with enterprise on-premises deployment offered by Sarvam.[1] Confirm region, retention, encryption and support terms before sending sensitive records.
- The launch prices are ₹1 per successfully processed page for Basic and ₹2.50 for Advanced, with US-dollar equivalents shown by Sarvam.[1] Confirm the live price and what counts as a successfully processed page before forecasting cost.
- Sarvam Vision 2.1 supplies the document perception layer and has vendor-published benchmark results for tables, scans and Indic scripts.[1][5] Treat those as additional vendor evidence, then test the scripts and layouts you actually receive.
- Bounding boxes improve traceability, but a box can point to the wrong occurrence of a repeated value. Audit occurrence-level grounding, not only whether the text exists somewhere on the page.
- Classification, extraction and business decisions are separate jobs. A correct document label does not validate a field, and a correct field does not authorize an action.
Frequently asked questions
- Does Sarvam Extract replace OCR? It provides an end-to-end schema-guided extraction API powered by Sarvam Vision 2.1. Teams still need to test perception failures on their scans and scripts.[1][5]
- What is the difference between Basic and Advanced? Basic performs page-level extraction. Advanced adds a document-level pass and rechecks disagreements, with higher reported accuracy, latency and price.[1][4]
- Are the benchmark results independent? ExtractBench is open and its evaluator is deterministic, but the Sarvam launch numbers come from Sarvam's own evaluation runs.[1][2][3]
- Can confidence scores automate approval? Only after calibration on your data, and not by themselves for consequential fields. Use evidence review and deterministic policy checks.
- What should teams watch next? Independent reproductions, production latency distributions, confidence calibration, error rates by language and document type, and the terms for retention and on-premises operation.
Keep learning on Learnetto
Sources
[1] Sarvam AI: Introducing Sarvam Extract
[2] LlamaIndex: Introducing ExtractBench
[3] Hugging Face: ExtractBench dataset card