When enterprises deploy document search, they obsess over semantic retrieval and vector models, only to discover post-launch that the real failure points are upstream. A new playbook from Tengence argues that the bottleneck is rarely the algorithm but the pipeline that converts raw files into retrievable units. If you are feeding your index shredded tables, multi-column text with broken line wraps, and untagged scanned pages, no amount of model tuning will save your recall rates.
Parsing Is the First Gate, Not an Afterthought
The article emphasizes that documents are not web pages; they are chaotic containers of paragraphs, footnotes, and signature areas. A critical failure mode is treating a file as a single unit. Real-world documents often mix digital body text with scanned signature pages. The recommended approach is per-page detection: if a page yields fewer than 40 characters, it is likely an image and should be routed to OCR. Standard OCR remains 10 to 20 times faster and cheaper than vision models for plain text, so reserve heavy compute for complex layouts and charts.
Structure Matters More Than Token Count
Chunking by fixed character caps is a rookie mistake that severs headings from their content and splits tables into gibberish. The playbook mandates a hierarchy: split by heading, then paragraph, then sentence, using length limits only as a fallback. Tables must be treated as atomic units; if they are too large, split by row and repeat the header to preserve context. In production, a hybrid approach works best: combine document-level retrieval for "find the file" queries with chunk-level retrieval for "find the answer" precision, merging both paths before re-ranking.
Provenance and Versioning Are Non-Negotiable
Without metadata, search results are untrustworthy demos. Every chunk must carry a document ID, page number, section path, and content hash to allow for idempotent upserts and audit trails. The article warns that versioning is a major trap; policies often have multiple active versions. If you do not filter by effective date or mark deprecated versions, your search will rank abolished clauses at the top. Permissions must also be enforced at the index level via access control lists on chunks, not just at the display layer, to prevent data leaks.
Key Takeaways
- Parsing quality targets: Character error rate under 5-10%, layout F1 > 0.90, and table extraction accuracy > 0.80.
- Chunking strategy: Use 300-800 tokens with 10-20% overlap, prioritizing structural boundaries over hard length caps.
- OCR efficiency: Judge pages individually; only send pages with <40 characters to OCR to save compute.
- Metadata requirements: Every chunk needs doc_id, page number, section path, chunk index, and content hash.
- Cost insight: At 10,000 pages/month, cloud document intelligence costs low teens in dollars, while hybrid approaches sit around $50.
The Bottom Line
Good parsing lifts end-to-end results by 15% to 25%, which is cheaper and more effective than swapping your generation model. Fix your ingestion pipeline before you buy another vector database.