Building with AILesson 37 of 80

Module 4 · Retrieval and the knowledge problem

Hybrid search: why keyword search is still half the answer

In this lesson

  • 9 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 6 of 11 in this chapter

This chapter’s goalBuild a retrieval pipeline from raw documents to a ranked set of chunks (embed, index, fuse with keyword search, rerank, filter by permission) measure its recall on a gold set of your own questions, and say from cost and quality numbers whether a given corpus should be retrieved or simply placed in the context window.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Recall over 200 real queries from a support logBM25 keyword search alone64Embedding search alone71Both, fused by reciprocalrank82% of queries whose answering chunk is in the top 10The average hides where the gain comes from. On the 38 queries containing an identifier, BM25 alonereached 88 and embeddings alone 41; on plain-language questions the order reverses. Fusing by rankrather than by score is what lets one list rescue the other.
The average hides where the gain comes from. On the 38 queries containing an identifier, BM25 alone reached 88 and embeddings alone 41; on plain-language questions the order reverses. Fusing by rank rather than by score is what lets one list rescue the other.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

The queries an embedding fails

Open the search logs of any real product and a large share of the queries are not questions. They are error E-4471, INV-2024-00931, Priya Raghunathan, a SKU, a function name, a postcode. The last lesson on embeddings explained why these blur: the model breaks a rare string into subword pieces that carry almost no consistent meaning, so E-4471 and E-4417 land in nearly the same place.

Keyword search has the opposite blind spot. It cannot see that “cancel my plan” and “stop the subscription” mean the same thing. It has been the backbone of search for thirty years precisely because on exact terms it is nearly perfect.

A production system needs both, and the standard name for both is hybrid search.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Python, from Zero, for AI exam.

Stuck on something?Ask Sayali, your AI tutor

How to cite: Addaly (2026) ‘Hybrid search: why keyword search is still half the answer’, in Building with AI. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/building-with-ai/hybrid-search-keywords-still-win (Accessed: 29 November 2026).