Skip to main content
IRIS is Scale’s OCR capability that transforms document images and PDFs into structured text. It provides a comprehensive “layout-then-OCR” pipeline that combines layout detection, specialized OCR models, and intelligent assembly to extract meaningful information from complex documents.

When to Use IRIS?

IRIS is designed for teams that need:
  • Custom OCR pipeline control: Fine-tune layout detection, OCR models, and assembly for specialized document types
  • Maximum accuracy optimization: Experiment with the OCR models available through SGP to find the best fit for your specific documents
  • Minimum latency requirements: Optimize processing speed for your specific use case through custom configuration
  • Specialized model development: Use OCR models you deploy in SGP for unique document challenges
  • Multi-language experimentation: Evaluate available OCR models on the languages in your documents

For Standard Production Use

Deprecation notice: Reducto is being deprecated. Use Iris for new projects.
Existing projects that need stable batch document processing without custom requirements can stay on Reducto within Dex until it is retired:
  • Production stability with proven reliability
  • Good for batch processing with somewhat high but acceptable latency
  • Auto-scaling with your workload
  • Lower operational complexity
Before production use, validate parsing accuracy on representative documents from your workload. See the When to choose Iris? guide for a detailed comparison.

IRIS Capabilities

IRIS provides advanced capabilities for teams with specialized OCR needs:
  • Layout-Aware Processing: Automatically detects and classifies different regions (text, tables, images, etc.) before applying specialized OCR
  • SGP-hosted OCR models: Choose the SGP models that read text regions (text_ocr) and tables (table_ocr), named as vendor/name (default openai/gpt-5.4)
  • Table-Specific Processing: Apply specialized OCR models optimized for tabular data extraction
  • Extensible Architecture: Add custom OCR models by deploying them in SGP; layout detection uses one of the built-in models
  • Multi-Language Evaluation: Test deployed models on your required languages and document types
  • Complete Pipeline Control: Configure layout detection and content extraction through IrisParseEngineOptions

How IRIS Works

The default Iris mode follows the three stages below. Two alternatives change this pipeline:
  • native_text_mode=True uses the embedded text layer of native PDFs after layout detection and calls no OCR models. Regions without embedded text, including scanned pages, produce blank content.
  • e2e_ocr sends a full page to one end-to-end model, bypassing separate layout detection. Set its required e2e_response_parser; do not also set layout, text_ocr, or table_ocr.
Native-text and end-to-end OCR modes are mutually exclusive.

1. Layout Detection

Detects and classifies regions in document images with bounding boxes and content types:
  • Text regions for paragraphs and body content
  • Table regions for structured tabular data
  • Image regions for figures and diagrams
  • Other content types as needed
Supported layout detection models:
  • rt_detr_bce: RT-DETR model (best performance)
  • pp_doclayout_v3: PP-DocLayoutV3 model
  • whole_page: No detection; each page is one region

2. OCR Processing

Applies specialized OCR models to each detected region based on content type:
  • Text OCR: Optimized for continuous text (paragraphs, headings, etc.)
  • Table OCR: Specialized models for accurate table extraction
  • Image Handling: Describes image regions with image_description_model, embeds them as base64, or skips them, depending on img_method
Text and table regions go to the SGP models you name in text_ocr and table_ocr, written as vendor/name (for example openai/gpt-5.4, the default). Any vision model available through SGP can be used, including models you deploy in SGP. Use e2e_ocr instead for full-page OCR. A task-conditioned model configuration can supply model-specific prompts and output formats. See Getting Started with IRIS for a parsing walkthrough.

3. Assembly

Combines extracted content into a Dex parse result: a list of chunks, each with its text and the blocks (regions) it came from, including each block’s type, bounding box, page number, and confidence.

Core Features

Modular Architecture

The layout detector and the OCR models are configured independently. Add custom OCR models by deploying them in SGP.

Inspection and Debugging

Each parse result keeps the layout and OCR output for every region, so you can inspect the processing:
  • Layout detection bounding boxes and classifications (block.bbox, block.type)
  • Individual OCR outputs per region (block.content, plus block.error when a region could not be read)
  • Final assembled output (chunk.content)

Configuration Management

Set options on IrisParseEngineOptions in each parse request:

Performance Optimization

Choose layout and OCR configurations by measuring latency and accuracy on representative documents.

Common Use Cases

  • Document Digitization: Convert scanned documents and PDFs to searchable text
  • Form Processing: Extract structured data from forms with mixed content types
  • Table Extraction: Accurately capture tabular data from complex documents
  • Multi-Language Documents: Evaluate and process documents in languages supported by your configured models
  • Research and Analysis: Extract text and data from academic papers, reports, and technical documents
  • Archive Processing: Batch process large document collections

Getting Started

IRIS is integrated with Dex for seamless document processing:

Python Package

Use programmatically through the Dex SDK:

Language Support

Language support comes from the OCR models you configure, and the models available depend on your deployment. Confirm that a model suited to each required language is available, then evaluate accuracy on representative text, tables, and scanned pages.

Key Advantages

Extensibility

Use gateway model paths and configurable prompts to adapt OCR to your document types. Custom models must be deployed in SGP before IRIS can use them.

Transparency

Inspect every pipeline stage to understand model behavior, debug issues, and optimize results for your specific documents.

Flexibility

Mix and match components—use different OCR models for text vs. tables, choose layout detectors based on document type, and customize assembly output.

API Integration

The default model_gateway="sgp" (SDK 0.8.2 and later) uses your SGP account and API key to access the models configured for your deployment.

Next Steps

To start using IRIS:
  1. Review the Getting Started with IRIS guide for step-by-step instructions
  2. Learn about IRIS’s multi-stage OCR pipeline and configuration options
  3. Integrate IRIS into your Dex-based document processing workflows
IRIS provides the building blocks for robust document OCR while giving you complete control over the processing pipeline.