Sparrow Document Intelligence Platform
Extract structured data from invoices, statements, and tables, and orchestrate agentic workflows with ML, LLMs, and Vision LLMs.
- Source repo
- katanaml/sparrow
- Stars
- ★ 5.2k
- Last updated
- 2d ago v0.7.0
- FARS reviewed
- Nov 08, 2026 +1 new
- License
- GPL-3.0
- Primary language
- Python
- FA score
- 40/100 · Major gaps
At a glance
- How it runs
- Works with
- Portable with changes
- Cost
- Free software; you pay for model usage
- Setup effort
- High · needs real infrastructure
- You'll need
- Typical use
- Finance teams automate bank statement processing, extracting transactions and account summaries.
- Not a fit if
- Teams without a local NVIDIA or Apple Silicon GPU; CPU-only is slow
- Users wanting a quick setup without poppler and Python 3.12.10+
- Teams needing permissive licensing for closed-source commercial use
- Website
- sparrow.katanaml.io ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-12-01latest release v0.7.0 (2026-11-10)
- Source review
- 40/100 · Major gaps 3 safety controls not found
What does this agent do, and when should you use it?
Sparrow is an API-first platform for enterprise document intelligence, offering structured data extraction, instruction processing, and workflow orchestration. It includes core components: Sparrow Parse (Vision LLM for JSON extraction), Sparrow Instructor (Text LLM for instructions), and Sparrow Agents (Prefect-powered workflow orchestration). The platform supports multiple backends, including MLX on Apple Silicon, vLLM on NVIDIA, Ollama, Hugging Face, and Mistral OCR cloud, all behind a consistent API. The Sparrow UI provides a web interface with drag-and-drop upload and real-time processing. The code is licensed under GPL-3.0, with commercial dual licensing available.
Sparrow accepts documents (PNG, JPG, multi-page PDFs) and JSON schemas via REST API, calls Vision LLMs (e.g., Qwen2.5-VL, Gemma 4) to extract structured data, and returns validated JSON. It supports instruction processing (e.g., arithmetic, document Q&A) via the Sparrow Instructor pipeline. Sparrow Agents orchestrate multi-step workflows, such as medical prescription processing, with visual monitoring via Prefect. The platform provides a CLI tool (sparrow.sh) and a Python API (api.py), with endpoints /inference and /instruction-inference. It offers extract hints and supports multiple backends including MLX, vLLM, and Mistral OCR.
- Finance teams automate bank statement processing, extracting transactions and account summaries.
- Accounts payable departments extract vendor, amount, and tax details from invoices and validate fields.
- Analysts extract table data from multi-page financial reports with page-level output.
- Insurance companies use workflow agents to process medical prescriptions with classification and extraction.
- Developers integrate document extraction into existing backends via REST API.
- Teams without local GPUs use Mistral OCR cloud backend for deployment.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Ports
8002- Runtime
- Python 3.12.10
- Install notes cover
- Windows · macOS · Linux
How do you install or deploy this agent?
Install Python 3.12.10 (e.g., via pyenv). Clone the repository, then create a virtual environment and install dependencies: pip install -r requirements_sparrow_parse.txt (ensure sparrow-parse[mlx] on macOS, sparrow-parse on Linux/Windows). On macOS, run brew install poppler; on Ubuntu/Debian, sudo apt-get install poppler-utils. Start the server with python api.py (default port 8002).
How do you use this agent?
Use the CLI: ./sparrow.sh '[{"instrument_name":"str", "valuation":0}]' --pipeline "sparrow-parse" --options mlx --options mlx-community/Qwen2.5-VL-72B-Instruct-4bit --file-path "data/bonds_table.png". Or via REST: curl -X POST 'http://localhost:8002/api/v1/sparrow-llm/inference' -F 'query=[{"field_name":"str", "amount":0}]' -F 'pipeline=sparrow-parse' -F 'options=mlx,mlx-community/Qwen2.5-VL-72B-Instruct-4bit' -F '[email protected]'. For instructions, use /instruction-inference. See README examples and API docs (/api/v1/sparrow-llm/docs).
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- confirmation before acting — Turn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
- sensitive-data handling — Use dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
- dependency security — Pin versions and run a dependency audit (npm audit, pip-audit) before installing; prefer running it in a container.
What are this agent's strengths and limitations?
- Multi-backend support (MLX, vLLM, Ollama, Mistral OCR) adapts to different hardware environments.
- Pluggable pipelines combine Vision LLM, Text LLM, and agent workflows.
- Built-in JSON schema validation and extraction hints improve accuracy.
- Includes web UI and monitoring dashboard for visualization and tracking.
- Requires specific Python version (3.12.10+) and system libraries like poppler, making setup complex.
- Needs local GPU (NVIDIA or Apple Silicon) for reasonable performance; CPU-only is slow.
- GPL-3.0 license may restrict commercial use; commercial license is paid.
- No documented Docker or Kubernetes deployment for large-scale production.
How does this agent compare with similar options?
The README does not mention direct alternatives, but by functionality, it competes with cloud document extraction services like Azure Document Intelligence or Amazon Textract, yet Sparrow emphasizes local deployment and pluggable backends.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Sparrow Document Intelligence Platform This agent | 40 · Major gaps | CLIFree + model costs | ★ 5.2k | 2d ago | Python | — |
| DeepEye | 65 · Some gaps | — | ★ 275 | 5mo ago | Python | — |
| OpenBB Open Data Platform | 62 · Some gaps | Library / SDKFreemium | ★ 76k | 3d ago | Python | — |
| Cube Core | 60 · Some gaps | Self-hosted serviceFreemium | ★ 21k | today | Rust | — |
How does FollowAgents rate this agent?
Why each dimension lost points
The code shows some concrete permissions and data flows: the bonds agent reads local positions, calls Tavily search, and writes results beside its source; the medical agent converts PDF pages to images and calls the Sparrow API. There is no evidence of user confirmation, sensitive-data protections, or dependency-security controls, so those criteria lose points. Search-result filenames avoid overwriting existing files, offering limited recovery protection; no general approval or rollback mechanism for external effects is shown. Source attribution and maintainer identity are also unclear.
Sample tasks return statuses, error text, or skip messages for invalid input and failed calls, which is useful but incomplete failure handling. Points are deducted because the samples and README are not fully corroborated: for example, the README claims robust recovery, while the samples show no retry strategy, and some code is truncated, preventing confirmation of overall consistency. The README lists Python, system tools, model backends, and installation guidance, but the supplied material does not show dependency pinning or availability safeguards.
The README clearly describes document extraction, text instructions, and multi-step workflows, and identifies multiple backends and platform choices, supporting ordinary environment fit. Points are deducted because capability boundaries and operating conditions remain broad; agent triggers, input contracts, and automation boundaries are not fully specified. The medical example limits input to multi-page PDFs, and the trading example accepts symbols, balance, and risk tolerance, providing some scenario constraints.
The README includes a table of contents, installation overview, platform notes, usage examples, a troubleshooting entry, and a license section; the supplied GPL-3.0 text makes license information thorough. Points are deducted because the packet shows no changelog, stable naming convention, or clear maintenance responsibility and update path. Some README examples are inconsistently formatted, and known limitations appear only as scattered experimental-feature labels or hardware requirements.
The interfaces and examples show directly usable outputs such as structured JSON, page-level processing, field validation, and workflow analysis, demonstrating value beyond a single extraction endpoint. Points are deducted because there is no verifiable evidence for cost, resource consumption, or output quality; the project requires models, GPU or cloud services, and multiple dependencies, while the benefit-cost tradeoff is not explained concretely.
The README's installation and API descriptions partly correspond to the supplied Prefect tasks, client calls, and result structures. Points are deducted because several product capabilities remain README claims without enough independent corroboration; example outputs are not clearly labeled as synthetic, illustrative, or measured, so facts and inferences are weakly distinguished.
- Not found in source: confirmation before actingTurn on (or add) a confirmation step before it acts, and try it in a sandbox or test environment before real data.
- Not found in source: sensitive-data handlingUse dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
- Not found in source: dependency securityPin versions and run a dependency audit (npm audit, pip-audit) before installing; prefer running it in a container.
- The bonds example uses position identifiers and names in Tavily searches and writes search summaries locally; the supplied material shows no sensitive-field filtering or retention controls.
- The trading example generates buy/sell decisions and quantities, but the sample shows no order approval or execution safeguards; do not treat its sample decisions as validated investment advice.
- Installation involves multiple model backends and system dependencies; the supplied material shows no dependency lock, security audit, or run verification results.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
v0.7.0 Sparrow v0.7.0
Release notes excerpt
v0.7.0 Sparrow now has a hosted Due diligence page, better search and link-preview visibility, and an upgraded local inference stack. - Due diligence – Upload an invoice, order confirmation, purchase order, receipt or company profile at /diligence. Sparrow reads the company identity and screens it against US and EU sanctions lists, EU VAT (VIES), the GLEIF LEI registry, UK Companies House and public web sources. Results appear check by check, followed by a verdict and a plain-language summary. Examples are included. …View on GitHub ↗ -
Release notes excerpt
Sparrow 0.6.0 Rebuilt Sparrow UI from Gradio to Next.js 16 + shadcn. Key improvements: - Process page — faster document upload and extraction workflow, JSON result viewer with syntax highlighting, inline summarization, example documents pre-loaded - Dashboard — real-time analytics with KPI cards, sparklines, inference timeline chart, model usage and country distribution - Feedback page — user feedback collection - Dark mode — system preference detection with manual toggle - Mobile support — fully responsive layout across all pagesView on GitHub ↗ -
Release notes excerpt
Sparrow 0.5.0 Structured Data Extraction with Local Vision AI 🚀 What's New New Model Lineup The inference model lineup has been redesigned for clarity and performance: - Standard mode — Ministral 3 14B: fast, reliable extraction for everyday documents - Tables Only mode — dots.ocr + Sparrow custom processing pipeline: specialized for complex structured table extraction using the dots.ocr → HTML → Sparrow Templates → JSON flow - Advanced mode — Gemma 4 31B Dense: maximum accuracy for demanding document types vLLM Backend — NVIDIA RTX 6000 Pro Support …View on GitHub ↗
FAQ
Does Sparrow only support cloud OCR?
How can I improve extraction accuracy?
Does it support multi-page PDFs?
How do I deploy to production?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.