LlamaExtract

AI model by LlamaIndex

Turn any document into structured, verifiable JSON data.

LlamaExtract is an agentic document extraction service that turns unstructured files into structured JSON with verifiable citations. It is built for developers who need high-accuracy data extraction from complex documents like financial statements and medical records.

Model specs

The full spec card (context, pricing per token, modalities and more) on AntSpace. Sign up free to see the full spec card.

Languages
English

Category: Natural Language Processing

Modalities
Document (PDF, Office, Image) → JSON
Access
API, Python SDK, TypeScript SDK, Web UI
Languages
80+ languages supported
Concurrent extract jobs (Pay-as-you-go)
5 jobs
Concurrent extract jobs (Pro)
20 jobs
Concurrent extract jobs (Enterprise)
100 jobs
  • 96.17 Value F1 score on ExtractBench benchmark
  • Page-level citations and bounding box coordinates for every field
  • Supports 130+ file formats including PDF, Office, and images
  • Automated schema generation from sample documents

Overview

LlamaExtract is an agentic data extraction model and service from LlamaIndex designed to transform unstructured documents into structured, schema-ready JSON. It serves developers and enterprises needing to automate the ingestion of high-stakes documents such as financial reports, medical records, and legal contracts. The model distinguishes itself by providing verifiable outputs, including page-level citations and precise bounding box coordinates for every extracted field. Users can define custom schemas or utilize an auto-generation feature to map document content to specific data structures. LlamaExtract operates through a standalone API and is available in multiple tiers, including an Agentic tier for complex reasoning and a Cost Effective tier for high-volume processing. It supports over 130 file formats and integrates with Python and TypeScript workflows via the llama-cloud SDK.

Data Extraction and Grounding

  • Schema-based extraction: The model transforms unstructured documents into structured, schema-ready JSON data based on user-defined schemas.
  • Citations and grounding: LlamaExtract provides page-level citations and element coordinates for every extracted field to ensure traceability.
  • Confidence scores: The service returns confidence scores for extracted fields to facilitate human-in-the-loop review processes.
  • Granular extraction targets: Users can define extraction targets at the document level, per page, or for individual table rows.

Processing and Tiers

  • Agentic Tier: The Agentic tier uses advanced reasoning to handle complex layouts and high-stakes document types.
  • Cost Effective Tier: The Cost Effective tier provides a balance for high-volume workloads where lower processing costs are required.
  • Auto-generate schema: LlamaExtract can automatically generate a suggested JSON schema based on the uploaded document content.
  • Batch processing: The platform supports batch processing and polling for managing large-scale production extraction tasks.

Integration and Developer Tools

  • Standalone API access: LlamaExtract is available as a standalone API that can be integrated into existing Python or TypeScript applications.
  • Web UI for testing: A web-based user interface is available for testing schemas and performing manual extractions.
  • Developer SDKs: The service provides SDKs for Python and TypeScript through the unified llama-cloud package.
  • Metadata extensions: LlamaExtract supports metadata extensions to enrich extracted data with additional document context.

Benchmarks

  • ExtractBench (Agentic Plus): 96.17 Value F1, 83.25 word-grounding F1

Use cases

  • Financial analysts extract KPIs and transaction data from dense annual reports and bank statements into structured JSON.
  • Legal teams pull specific clauses, dates, and obligations from scanned contracts with page-level citations for auditability.
  • Healthcare providers automate the extraction of patient data and medical history from handwritten notes and lab reports.
  • Operations teams process high volumes of invoices by matching extracted line items to vendor records automatically.

Specifications

Modalities
Document (PDF, Office, Image) → JSON
Access
API, Python SDK, TypeScript SDK, Web UI
Fine-tuning
Customizable through user-defined JSON schemas and natural-language instructions
Languages
80+ languages supported
Concurrent extract jobs (Pay-as-you-go)
5 jobs
Concurrent extract jobs (Pro)
20 jobs
Concurrent extract jobs (Enterprise)
100 jobs
Supported file formats
130+ formats
Supported languages
80+ languages
Output format
JSON
Grounding data
Citations and bounding boxes

How it works

  1. Upload Document: Upload the document (PDF, DOCX, or image) to the LlamaIndex cloud via the API or Web UI.
  2. Define Schema: Define a JSON schema or use the auto-generate feature to specify the fields and data types to be extracted.
  3. Run Extraction: Select the extraction tier (Agentic or Cost Effective) and run the extraction job.
  4. Retrieve Results: Retrieve the structured JSON output, which includes the extracted data, confidence scores, and source citations.

Pricing

Pay-as-you-go (includes 10K free credits)
$1.5 per 1k credits
Pro Plan (includes 400K credits)
$500 per month
Enterprise Plan
Custom pricing

FAQ

How does LlamaExtract ensure the accuracy of extracted data?

LlamaExtract provides page-level citations and element coordinates (bounding boxes) for every extracted value, allowing reviewers to click back to the source location to confirm data.

Can LlamaExtract extract data from complex tables?

Yes, LlamaExtract features a specific 'table row extraction' capability designed to handle repeating entities and complex tabular data within documents.

What are the different extraction tiers available?

LlamaExtract offers two primary tiers: Agentic for maximum accuracy on complex documents and Cost Effective for balancing quality with processing spend.

Is there a free version of LlamaExtract?

LlamaExtract is part of the LlamaParse platform, which includes 10,000 free credits per month for new users; additional usage is billed on a pay-as-you-go or subscription basis.

Try for Free

Added by AntSpace from public sources (developers.llamaindex.ai).

Related

More AI models by LlamaIndex