One model for the whole document pipeline or a different model for every stage?
If you're building a document-processing pipeline today, does it actually make sense to send every stage through the same high-end multimodal model? My instinct is that a lot of document work doesn't need the most capable model.
For example:
- Clean PDFs / straightforward OCR: traditional OCR, direct text extraction, or a lightweight model may be enough.
- Parsing and simple extraction: a faster, lower-cost model such as Gemini Flash-class models may handle this well.
- Handwriting, poor scans, complex tables, or ambiguous fields: this may be where you route to a more capable multimodal/reasoning model.
The part I'm unsure about is whether the accuracy and cost advantage of model routing is actually worth the orchestration complexity in production.
Here’s how I’m thinking about the trade-offs:
- Accuracy: One model gives you more consistent behavior, but it may be overkill for simple documents and weaker on certain edge cases. Multi-model routing lets you optimize by document type or task, but poor routing decisions can hurt accuracy.
- Latency: One model means fewer routing steps and simpler execution. Multiple models can keep easy documents on faster models, but retries and escalations may add latency.
- Cost: One model is easier to predict, but expensive if a premium model handles everything. Routing can reduce cost significantly if most documents can stay on lightweight models.
- Privacy: One provider/model can simplify governance and data handling. Multiple providers add complexity, although routing could also keep sensitive documents on private or internally hosted models.
- Fallback behavior: With one model, a retry may simply reproduce the same failure. With routing, low-confidence outputs can escalate to another model or eventually to human review.
- Maintenance: One model is much easier to operate. Multi-model pipelines require more evals, routing logic, monitoring, version management, and regression testing.
I'm especially interested in the fallback strategy.
Would you use:
small model → larger model → different provider → human review
or simply:
one strong model → human review when confidence is low?
And what would you use as the routing signal: OCR confidence, image quality, handwriting detection, document type, extraction confidence, schema validation failure, or something else?
For anyone running document AI at meaningful volume: has multi-model routing actually reduced cost and improved accuracy, or does the added complexity outweigh the benefit?