SalesforceScott NybergExplainer
Enterprise AI Accuracy: Building a More Trustworthy RAG Application
Summary
An enterprise RAG pipeline scored above 90% on standard text-retrieval benchmarks but approximately 46% on complex, customer-representative documents, with failures spanning parsing, chunking, enrichment, embeddings, retrieval, and answer generation. The proposed diagnostic traces wrong answers backward from generated response to retrieved context, chunks, and parsed source, using human-validated end-to-end evaluation and changing one stage at a time. Intelligent Parsing routes pages according to complexity and preserves relationships in structures such as multi-page tables; in a staged benchmark, it raised accuracy from 65.1% to 84.4%, while Enriched Indexing raised it to 86.8%. Retrieval improvements include dynamic metadata pre-filters for explicit constraints and GraphRAG for multi-hop evidence, with GraphRAG slated for general availability in November 2026. Across broader improvements, complex-document accuracy exceeded 90%, and service-based Just-in-Time indexing reduced sub-100 MB payload indexing from 30+ minutes to approximately seven to ten minutes.
Context
The RAG pipeline produced confident but incorrect answers from complex enterprise documents despite exceeding 90% on standard text-retrieval benchmarks. Accuracy fell to approximately 46% on customer-representative documents, with meaning potentially lost during parsing, chunking, enrichment, embedding, retrieval, or answer generation.
Approach / What changed
The team debugs failures backward from the answer through retrieved context, chunks, and parsed source; evaluates one pipeline stage at a time; routes pages through parsing paths based on complexity; preserves structural relationships; enriches indexed representations; applies metadata pre-filters and graph traversal where appropriate; and measures both accuracy and indexing latency.
Takeaways
Accuracy on complex enterprise documents increased from approximately 46% to more than 90% across broader improvements to parsing, chunking, enrichment, embeddings, and retrieval.
Intelligent Parsing increased staged-benchmark accuracy from 65.1% to 84.4%, and Enriched Indexing raised it further to 86.8%.
Dynamic metadata pre-filters enforce constraints such as product, region, or customer tier before similarity ranking, while GraphRAG supports multi-hop questions distributed across connected evidence.
Source and freshness
- Source
- engineering.salesforce.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.