Applied AI Engineering
Retrieval, Search & Reranking
AI systems often need to find the right context before generating. Keyword search, vector search, metadata filters, hybrid retrieval, and reranking are complementary tools.
- Keyword search is strong for exact terms
- Vector search is strong for semantic similarity
- Metadata filters are not optional
- Hybrid retrieval increases recall
- Reranking increases precision
| Tool | Best at | Weakness |
|---|---|---|
| Keyword / BM25 | Exact terms and rare phrases | Misses paraphrases |
| Vector search | Semantic similarity | Can miss exact identifiers |
| Metadata filters | Boundaries and freshness | Only as good as metadata |
| Reranker | Precision on candidates | Adds latency/cost |
| Hybrid search | Recall across query types | More moving parts |