Key Terms
| Term | In one line |
|---|---|
| NER | Named Entity Recognition — spaCy/BERT-tagging, domain encoders (BioBERT/ClinicalBERT), managed, or LLM structured extraction |
| Extractive vs abstractive | Select existing sentences vs generate new text; hybrid extracts facts then generates from facts only |
| IDP | Intelligent Document Processing: OCR → layout analysis → field extraction → validation |
| Layout analysis | Recovering reading order, regions and table structure before extraction |
| Confidence gating | Auto-accept above a threshold, route the ambiguous remainder to human review |
| Slot-filling bot | Structured dialogue to complete a transaction, versus open RAG chat |
| Hybrid router | Classifier that sends each turn to the right sub-bot or pattern |
| Offline RL | Learn a policy from logged history with no live experimentation |
Numbers That Matter
| Figure | Value | Where it bites |
|---|---|---|
| Managed OCR accuracy | 95–97%+ | Enterprise SDKs 97%+ |
| Open-source OCR (Tesseract) | 85–90% | The gap that makes “just use Tesseract” expensive |
| Human review share | Typically 5–15% of documents | What makes confidence-gated IDP economically viable |
| Embedding-free NER options | spaCy transformer · fine-tuned BERT BIO · domain encoder · managed · LLM | Five approaches, pick on accuracy-to-effort |
Decision Rules
- Default to a managed OCR/IDP service. Best accuracy-to-effort ratio, prebuilt table and form parsing. Use Tesseract only when cost, air-gapping or data residency forces it — and budget for the accuracy gap.
- Extraction strategy by document category: fixed-format forms → prebuilt template models. Semi-structured (invoices, POs) → custom layout model or key-value extraction. Free-form (contracts, letters) → OCR + LLM structured extraction. Handwritten/poor scans → OCR + vision-model fallback + human queue.
- Table extraction is the hard problem, not text extraction. Reading-order flattening corrupts tables silently — test it explicitly against ground truth.
- Bootstrap NER with an LLM, then distill. Zero/few-shot LLM extraction against a JSON schema gets you output fast and lets domain experts validate the taxonomy; once the taxonomy is stable, a small fine-tuned encoder is far cheaper per document at volume.
- Hybrid summarization for high-stakes content: extract salient facts first, then generate fluent prose from those facts only. Pure abstractive summarization is where hallucinations enter.
- Forecasting selection: ARIMA/SARIMA for a single stable series. Prophet for business series with holidays and events. Gradient boosting with lag features when you have exogenous variables and many series. Deep sequence models only when nonlinearity genuinely justifies the operational cost.
- RL in the enterprise is usually offline or bandits. Live exploration on real customers needs a safety argument most organizations can’t make.
Say This Out Loud
“For document processing I default to a managed IDP service. The accuracy gap is real — ninety-five to ninety-seven percent versus eighty-five to ninety for open-source OCR — and managed services give you table and form structure out of the box, which is the expensive part to build. I’d only go open-source if air-gapping or data residency forced it, and I’d price in the review cost of that accuracy gap.”
“The design that makes IDP economically viable is confidence gating. High-confidence extractions auto-post, and only the genuinely ambiguous fraction — typically five to fifteen percent — goes to a human queue. That’s what lets a small review team handle enterprise volume. And it means the metric I care about isn’t raw accuracy, it’s how well-calibrated the confidence score is, because a confident wrong answer skips review entirely.”
“For entity extraction I bootstrap with LLM structured extraction against a JSON schema — it gets output in front of domain experts in days so we can validate the taxonomy before committing. Once the taxonomy stops changing, I’d distill it into a fine-tuned encoder, because at document volume the per-call cost difference is the whole business case.”