DocuParse
DocuParse turns dense SEC 10-K/10-Q PDFs into structured, verified data — a DVC-managed pipeline that combines native text + OCR, dual-model layout detection, and IBM's Docling, then cross-checks every figure against authoritative XBRL filings.

- 676
- Pages processed
- ~3 min
- End to end
- 6
- Pipeline stages
- 2
- Layout models
- 3
- Export formats
- 3
- Filing types
The problem
Filings resist parsingTables are the value
Financial statements live in tables with merged cells, spans and multi-column layouts
One tool is not enough
Text extractors miss structure; vision models miss content
Reprocessing is expensive
Long-running stages make a naive rerun costly every time a model changes
Six stages
Decisions, not descriptionsArrow keys to step
Download
SEC EDGAR API
- 10-K annual, 10-Q quarterly, 8-K current reports
- Filing metadata stored beside the document for traceability
- DVC content hash gates re-download
Decision
- Chose
- Content-hash the source
- Over
- Re-download on every run
Because
- Filings are immutable once published
- A hash check turns a network fetch into a no-op
Cost
A stale hash would silently skip a genuinely changed filing.
- 3
- filing types
Architecture
DVC-managed DAGBuild versus buy
Per 1,000 pages- Azure Form Recognizer$10.00–$50
- Google Document AI$1.50–$50
- AWS Textract$1.50–$50
- DocuParse$1.05
What building bought
- Complete data privacy, nothing leaves the environment
- No API rate limits
- Optimised for financial documents specifically
- 30 to 98% cost saving at 1,000 pages
The three managed services were priced against this pipeline rather than dismissed. That is the difference between choosing to build and defaulting to it: at 1,000 pages the open-source path costs $1.05 against a floor of $1.50 and a ceiling of $50, and the privacy and rate-limit gains come with it rather than instead of it.
Quality assurance
Measured, not assertedXBRL validation
Cross-check extracted values against authoritative financial data
Accuracy metrics
Word Error Rate, table precision and recall
Regression testing
Automated quality-threshold validation on every run
Distribution monitoring
Detect data drift and anomalies between runs
| Metric | Result | Note |
|---|---|---|
| Native text extraction | 99.56% | OCR needed on the remainder only |
| Tables extracted | 187 | financial statements |
| XBRL concepts validated | 2,954 | against authoritative filings |
| Pages per run | 676 | in roughly 3 minutes |
| Cost per 1,000 pages | $1.05 | open-source infrastructure |
Stack
Everything usedLayout and vision
- Detectron2
- LayoutLMv3
Document AI
- Docling
- pdfplumber
- Camelot
- OCR
Orchestration
- DVC
- params.yaml
- Python 3.9+
Source and validation
- SEC EDGAR API
- XBRL parsing
Outputs
- JSON
- Markdown
- CSV
Analysis
- Benchmarking
- Cost modelling
- Drift monitoring