Loading…
Loading…
Written by Max Zeshut
Founder at Agentmelt · Last updated May 26, 2026
A retrieval strategy that combines keyword search (BM25 or full-text) with semantic search (vector embeddings) to get the best of both approaches. Keyword search finds exact matches ('error code 4012'); semantic search finds conceptually similar content ('my payment was declined'). Hybrid search runs both in parallel and merges results using reciprocal rank fusion or weighted scoring. This is the current best practice for RAG-powered AI agents—pure keyword search misses paraphrased queries, and pure semantic search misses specific identifiers.
A support agent receives 'SKU-7842 keeps showing error 503'. Keyword search matches the exact SKU and error code in the knowledge base. Semantic search finds articles about server timeouts and inventory sync failures. Hybrid search returns the specific SKU troubleshooting article (keyword match) ranked alongside general 503 error resolution steps (semantic match).