Using hybrid search to build advanced search applications
In the previous recipes, we learned the fundamentals of dense vector search and sparse vector search. In this recipe, we will explore how to build advanced search applications enhanced by nuanced ranking, where traditional keyword search is augmented with semantic context. Hybrid search leverages the benefits of both lexical and vector search, enabling a Search Application to match exact keywords while also understanding the broader context or meaning of a query. It also serves as the foundation for RAG applications, which we will learn about later in this chapter.
Getting ready
Make sure that you have gone through the first two recipes in this chapter:
- Implementing semantic search with dense vectors
- Implementing semantic search with sparse vectors
Make sure that the React Search Application vector-search-application
is up and running. We will reuse the concept of the search template to test the behavior...