Quick Start
How It Works
Simple
Agents: 1 — Single agent with vision capabilities extracts text from images.Workflow
- Receive image with text
- Process with vision model
- 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
- Initialize session for document tracking
- Configure SQLite persistence for extraction history
- Extract text with structured output
- Store results in memory for search
- Resume session for document comparison
Setup
Run — Python
Run — CLI
Run — agents.yaml
Serve API
Monitor / Verify
Cleanup
Features Demonstrated
| Feature | Implementation |
|---|---|
| Workflow | Vision-based text extraction |
| DB Persistence | SQLite via memory_config |
| Observability | --verbose flag |
| Resumability | Session with session_id |
| Structured Output | Pydantic ExtractedDocument model |
Best Practices
Use high-resolution source images
Use high-resolution source images
OCR accuracy tracks image quality. Feed the clearest scan you have — blurry or low-DPI images produce garbled text no prompt can recover.
Ask the model to preserve layout
Ask the model to preserve layout
Instruct the agent to keep line breaks and column order. Tables and forms lose meaning when flattened into a single paragraph.
Return structured fields for downstream parsing
Return structured fields for downstream parsing
When feeding results into a form processor, add
output_pydantic so sections and fields arrive typed instead of as one text blob.Reach for Vision when you need understanding, not just text
Reach for Vision when you need understanding, not just text
This agent focuses on extraction. For questions about what an image depicts, use the Vision Agent’s
analyze and describe methods.Related
Analyze and describe visual content.
Understand, compare, and reason about images.

