Keyword and hybrid search
A user searches for "error E1042". Vector search returns three friendly articles about errors in general. Keyword search returns the one page that mentions E1042. Neither wins every time, so production search usually runs both and merges the lists.
In this lesson you'll learn to
- Explain how BM25 scores documents using term frequency, rare words and document length.
- Recognise the queries where keyword search beats vector search, and the reverse.
- Merge keyword and vector results with reciprocal rank fusion, and explain why raw scores can't simply be added.
- Build hybrid search in practice, with a text index next to the vector index.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.