RAG production cost postmortem: structure-based chunking cut tokens 77% for full context recall

Majesticnutz- · reddit · 2026-11-23

An engineer at POMA AI shares a ranked postmortem of why RAG costs and wrong answers spiked in production. Fixes in order of impact: (1) chunking along document structure — on the OfficeQA benchmark over 14 Treasury Bulletins (2,150 pages) with identical embeddings, structure-based chunks needed 77% fewer tokens to reach 100% context recall; (2) tagging document versions at ingestion and filtering at retrieval; (3) cleaning headers/footers/watermarks from extracted text; (4) reranking to shrink final top-k. Key lesson: shortcuts at ingestion become per-query costs.

Original post →

More from coding & agent

coding & agent channel →