@jerryjliu0: with jev, everyone is understanding the importance of calibrated confidence scores for discrete decision making we've t…
Summary
LlamaParse introduces calibrated confidence scores for schema-guided document extraction, supporting various data types and providing bounding boxes to enhance human review and automation workflows.
View Cached Full Text
Cached at: 09/21/26, 11:40 PM
with jev, everyone is understanding the importance of calibrated confidence scores for discrete decision making
we’ve taken that approach one-step further and created grounded confidence scores for general schema-guided document extraction:
✅ this includes primitive types like bool, int, and float. the numbers don’t have to be bounded ✅ this also includes free-form text extraction ✅ each extracted value also carries a bounding box directly back into the source document
calibrated confidence scores are extremely important for human review. By setting a threshold, you can let a human reviewer audit the lower confidence values while automating the extraction of higher confidence values.
If you have needs for large scale doc extraction, come check it out: https://developers.llamaindex.ai/llamaparse/extract/guides/extensions/#confidence-scores…
Sign up to LlamaParse here: https://cloud.llamaindex.ai
Metadata Extensions
Source: https://developers.llamaindex.ai/llamaparse/extract/guides/extensions/
LlamaExtract offers several advanced features that provide additional metadata and insights alongside your extracted data. These extensions are available underAdvanced Settingsin the UI and return schema-level metadata in theextract\_metadatafield of the response.
Citations provide the source information for every extracted field, allowing you to trace back exactly where each piece of data came from in the original document.
How it works: For every leaf-level field in your schema, citations return:
- The page number where the information was found
- The verbatim text that was used to extract the field value
- Bounding box coordinates (
x,y,w,h) indicating the exact location of the cited text on the page - Page dimensions (
width,height) to help you render the bounding boxes accurately
The citation information appears both in the API response (extract\_metadata\.field\_metadata) and is visualized in the LlamaCloud UI.
Example API response structure (scalar fields):
"extract_metadata": { "field_metadata": { "phone": { "citation": [ { "page": 1, "matching_text": "(555) 123-4567", "bounding_boxes": [ { "x": 177, "y": 82, "w": 318, "h": 43 } ], "page_dimensions": { "width": 612, "height": 792 } } ] } }}
Array fields:Citations attach at theleaf sub-field level, not the array item level. Thefield\_metadatatree mirrors the structure of your extracted data, with each leaf value replaced by its citation metadata.
For a schema likekey\_facts: list\[KeyFact\]whereKeyFacthas afact: strfield, the metadata structure is:
"extract_metadata": { "field_metadata": { "key_facts": [ { "fact": { "citation": [ { "page": 3, "matching_text": "Revenue grew 114% year-over-year", "bounding_boxes": [{ "x": 50, "y": 200, "w": 400, "h": 20 }], "page_dimensions": { "width": 612, "height": 792 } } ] } }, { "fact": { "citation": [ { "page": 7, "matching_text": "Operating expenses increased to $3.2B", "bounding_boxes": [{ "x": 50, "y": 310, "w": 380, "h": 20 }], "page_dimensions": { "width": 612, "height": 792 } } ] } } ] }}
Note: the citation path isfield\_metadata\.key\_facts\[i\]\.fact\.citation,notfield\_metadata\.key\_facts\[i\]\.citation. Each array element in the metadata corresponds positionally to the same element in the extracted data.
Usage: Setcite\_sources: truein the configuration to enable this feature.
Use cases:
- Compliance and audit requirements
- Fact-checking and verification workflows
- Understanding extraction quality and accuracy
- Building custom highlighting/annotation features using bounding box coordinates
Confidence Scores
Section titled “Confidence Scores”
Confidence scores provide quantitative measures of how confident the system is in the extracted values, helping you identify potentially unreliable extractions.
How it works: This feature adds three confidence-related fields to the extraction metadata:
parsing\_confidence: Confidence score indicating how well the relevant context was parsed from the source document.extraction\_confidence: Confidence score indicating the relevance of the extraction based on the JSON schema field.confidence: Combined confidence score that incorporates both parsing and extraction confidence.
Usage: Setconfidence\_scores: truein the configuration to enable confidence scores.
Reading the scores.confidenceis the value to threshold on; the other two explain where a low score came from.
- **Calibrated on Cost Effective, Agentic, and Agentic Plus.**On those tiers a score approximates a real probability of correctness, so you can set a threshold directly rather than only ranking fields against each other. At a 0.8 threshold roughly 75% of extraction errors fall below the line.
- **Agentic Max and Turbo return scores from an earlier model.**They are still useful for ranking fields, but the calibration above does not apply to them.
- **Validate the threshold on your own documents.**The right cutoff depends on your document mix and on how costly a missed error is. Start at 0.8, score a sample you have ground truth for, and move it until review volume and escape rate sit where you want them.
- **Longer text fields score lower.**Summaries and descriptions typically score below short factual fields, because there are many valid ways to word the same answer. That does not by itself indicate lower accuracy, so consider a separate threshold for free-text fields.
Limitations: enabling confidence scores adds processing time to a job.
Use cases:
- Routing low-confidence fields to human review while the rest pass straight through
- Ranking extraction reliability across fields within a document
- Flagging documents that need a second look before they enter a downstream system
Reasoning metadata is available for Extract versions through2026\-03\-31. Newer versions do not return per-field reasoning strings.
If your application depends on reasoning strings inextract\_metadata\.field\_metadata, pinconfiguration\.versionto2026\-03\-31. For newer versions, use citations and confidence scores when you need provenance or review signals.
Performance Considerations
Section titled “Performance Considerations”
⚠️ Important: Citations and confidence scores will significantly slow down extraction processing time. Enable these features only when the additional metadata is essential for your use case.
Configuration and Usage
Section titled “Configuration and Usage”
For complete examples of how to configure and use these extensions with both the Python SDK and REST API, see the**Configuring Extract**page.
The configuration section includes:
- Complete Python SDK examples with extension settings
- REST API curl command examples
- Configuration reference table with all available options
Quick reference for extensions:
import timefrom llama_cloud import LlamaCloudclient = LlamaCloud(api_key="your_api_key")file_obj = client.files.create(file="path/to/your/document.pdf", purpose="extract")file_id = file_obj.idjob = client.extract.create( file_input=file_id, configuration={ "data_schema": {"type": "object", "properties": {}}, # your extraction schema "tier": "agentic", "cite_sources": True, "confidence_scores": True, },)# Poll for completionwhile job.status not in ("COMPLETED", "FAILED", "CANCELLED"): time.sleep(2) job = client.extract.get(job.id)
Note for AI agents: this documentation is built for programmatic access. - Overview of all docs: https://developers.llamaindex.ai/llms.txt - Any page is available as raw Markdown by appending index.md to its URL — e.g. https://developers.llamaindex.ai/llamaparse/parse/getting_started/index.md - Agent-friendly REST search APIs live under https://developers.llamaindex.ai/api/ — search (BM25 full-text), grep (regex), read (fetch a page), and list (browse the doc tree). See https://developers.llamaindex.ai/llms.txt for parameters. - A hosted documentation MCP server is available at https://developers.llamaindex.ai/mcp. If you support MCP, you can ask the user to install it for browsing these docs directly (an alternative to the REST API). Setup: https://developers.llamaindex.ai/for-agents/mcp/ - Other LlamaIndex tooling for agents — the LlamaParse Platform MCP server, agent skills and plugins, and the n8n node — is mapped at https://developers.llamaindex.ai/for-agents/
LlamaIndex 🦙 (@llama_index): Grounded Confidence is here for Extract! 🦙
When your agents and workflows depend on extracted data, you need to know how accurate that data is.
We’ve added confidence scores to give you a better read on extraction accuracy, field by field. Use them to decide which results your
Similar Articles
@jerryjliu0: One of the main issues with AI document parsing is that because no solution is 100% accuracy, it's hard to tell if a gi…
LlamaParse introduces high-effort confidence scores to enhance AI document parsing accuracy, enabling human-in-the-loop review and automated fallback for sensitive processes.
@jerryjliu0: We're not Palantir, but we do think a lot about evals and hillclimbing w.r.t. document processing. If you have really h…
Jerry Liu promotes LlamaParse and LlamaAgents for large-scale document extraction, emphasizing LLM evals and hillclimbing for accuracy and cost. He also connects FDE work with evals and RL environments.
CALIBER: Calibrating Confidence Before and After Reasoning in Language Models
The paper introduces CALIBER, a method for calibrating confidence in reasoning language models by eliciting confidence estimates both before and after reasoning, with supervision targets matched to the information state. It achieves significant reductions in Expected Calibration Error (up to 52.5%) and strong Brier scores and AUROC across multiple benchmarks.
JEV-as-a-Judge: Accept When Confident, Escalate When Unsure
This paper introduces JEV-as-a-Judge, a cost-effective evaluation method for LLMs that uses a decision-only judge with confidence thresholds to accept certain verdicts and escalate uncertain ones, achieving comparable accuracy to state-of-the-art models at significantly lower cost.
@jerryjliu0: As frontier models (e.g. Fable 5) continue to push the task horizon of knowledge work automation, it becomes ever more …
LlamaIndex launches granular bounding boxes in LlamaParse, enabling visual citations for every word in a document to allow human audit of exact numbers and figures.