1.1 KiB
1.1 KiB
Scanned PDF OCR (v1.1+)
Why deferred
v1 only accepts Text PDFs and applies a Text-layer Gate: Scanned PDFs are hard-rejected at upload (not stored, not processed). OCR is a second product surface: noisy text poisons every Strategy equally and makes Experiment comparisons misleading.
Trigger
Pick this up when:
- Text PDF path is trusted on real docs
- You have ~10–20 labeled Scanned PDFs + question JSONs matching chatbot traffic
- Production coverage of those docs matters more than clean benchmarks alone
Approach to try
- Detect empty / near-empty text layer at upload (same gate as v1 rejection)
- Run OCR as an explicit pre-step that still emits
ParseResult(markdown + DocumentTree) - Tag source as
ocrso Experiments can filter Text PDF vs Scanned PDF runs - Reuse Heading Reconstruction heuristics on OCR text (expect more false positives)
Success criteria
- OCR’d markdown is readable enough that recursive Strategy headings aren’t nonsense
- Side-by-side Experiment: Text PDF original vs OCR of a scan of the same doc — score delta understood, not mysterious