Combine keyword search with vector search
Tutorial on combining keyword search with vector search
Last updated
Was this helpful?
Tutorial on combining keyword search with vector search
Last updated
Was this helpful?
There are sometimes search cases where pure vector search often does not provide the best solution. For example - we can take the simple case of product SKUs in retail e-commerce. Product SKUs are the name of the products.
Below, we use an example of vector search where an individual searches for an SKU. However, the search results encode the letters and fail to realize/return the right SKU. We also attach a code example using the Vector AI client for those interested in trying this out.
In these situations, our search should properly return the right value when given the SKU. In turn, hybrid search can return the right result.
From above, we realize that the value of hybrid search allows us to match items/products when exact values are known by the searcher.