Sparrow
API-first platform extracting structured JSON from invoices and forms with vision language models.
About
Katana ML's Sparrow approaches document extraction as an API-first pipeline: documents like invoices, receipts, bank statements, and tables go in, validated structured JSON comes out, driven by vision language models and agentic multi-step workflows. Backends are pluggable, with MLX for Apple Silicon, vLLM for NVIDIA hardware, Ollama, Hugging Face cloud GPUs, and the Mistral OCR cloud service all supported, so the same pipeline can run on a MacBook, a GPU server, or against a hosted model. A FastAPI layer exposes inference and instruction-inference REST endpoints with Swagger documentation, and query-style instructions select which fields to extract from PNG and JPG images or multi-page PDFs. Setup is more involved than a single pip install: Python 3.12.10 or newer via pyenv, separate virtual environments per pipeline component, and Poppler for PDF handling. The license is GPL-3.0 with dual licensing available, free for open-source projects and organizations under 5 million dollars in revenue. With about 5,200 stars, it serves teams standing up private document extraction services without training custom models.
Should you use Sparrow?
Pick it when
Use Sparrow when you want a private API that turns invoices, receipts, and bank statements into validated JSON, with the freedom to run models on a Mac via MLX, an NVIDIA server via vLLM, Ollama, or a hosted backend.
Look elsewhere when
Skip it if setup time matters: it needs Python 3.12.10 or newer via pyenv and separate environments per component. Its GPL-3.0 free tier also ends at 5 million dollars in revenue, so larger firms need a paid license.
Alternatives to Sparrow
- docext (Nanonets-OCR)
Apache-2.0 code for field and table extraction with confidence scores and a PyPI install, but tied to its own 3B model on a GPU.
- Zerox
Faster to stand up, MIT licensed, and backed by hosted vision models, but returns Markdown rather than validated field JSON and has no offline path.
- Unstructured
General ingestion for RAG across 60+ formats on CPU, a better fit when you need text chunks rather than specific invoice fields.
- MegaParse
Apache-2.0 multi-format parser with optional GPT-4o or Claude vision, but aimed at lossless text for LLMs rather than schema extraction.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- OCR & Document Processing
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Intermediate (3/5)
- License
- GPL-3.0
- Added
- Jul 29, 2026