Quick Decision Rule: When Engineers search technical docs for exact error codes (`ERR_KMS_403`), part numbers, or API flags alongside conceptual queries, choose Hybrid lexical (BM25) + dense vector retrieval combined with reranking.
| Trigger Condition | Engineers search technical docs for exact error codes (`ERR_KMS_403`), part numbers, or API flags alongside conceptual queries |
|---|---|
| Recommended Choice | Hybrid lexical (BM25) + dense vector retrieval combined with reranking |
| Classic Trap | Pure dense vector embeddings frequently miss exact identifiers, SKUs, and error codes that lexical BM25 finds immediately. |
| Verification | Audited on 2026-11-23 · Anthropic & OWASP Standard · 2026 |
30-SECOND DECISION TRAP CHECK · RETRIEVAL
Support engineers complain that your vector-only RAG bot handles broad conceptual questions well, but completely fails whenever they search exact error codes like `ERR_RDS_0419`. What retrieval upgrade fixes this directly?
Dense embeddings capture semantic similarity but struggle with exact rare tokens like error codes or SKUs. Hybrid BM25 + vector retrieval captures both exact and conceptual matches.
Trap: Vector-only RAG misses exact identifiers and error codes; use Hybrid BM25 + vector search.