Skip to main content
Extract text from scanned documents, screenshots, and photos with a single Agent backed by a vision model.
OCR and text extraction agent using vision models.

Quick Start

1

Simple Usage

Pass a document image and receive its text.
2

With Configuration

Return structured fields with a Pydantic schema.

How It Works


Simple

Agents: 1 — Single agent with vision capabilities extracts text from images.

Workflow

  1. Receive image with text
  2. Process with vision model
  3. Extract and return text content

Setup

Run — Python

Run — CLI

Run — agents.yaml

Serve API


Advanced Workflow (All Features)

Agents: 1 — Single agent with memory, persistence, structured output, and session resumability.

Workflow

  1. Initialize session for document tracking
  2. Configure SQLite persistence for extraction history
  3. Extract text with structured output
  4. Store results in memory for search
  5. Resume session for document comparison

Setup

Run — Python

Run — CLI

Run — agents.yaml

Serve API


Monitor / Verify

Cleanup

Features Demonstrated

Best Practices

OCR accuracy tracks image quality. Feed the clearest scan you have — blurry or low-DPI images produce garbled text no prompt can recover.
Instruct the agent to keep line breaks and column order. Tables and forms lose meaning when flattened into a single paragraph.
When feeding results into a form processor, add output_pydantic so sections and fields arrive typed instead of as one text blob.
This agent focuses on extraction. For questions about what an image depicts, use the Vision Agent’s analyze and describe methods.
Analyze and describe visual content.
Understand, compare, and reason about images.