Skip to main content
With Hybrid search, you can get the precision of exact matching with the intelligence of semantic understanding. Combining both approaches will deliver more comprehensive and relevant results in many cases. Hybrid search is a retrieval technique that combines the strengths of both vector search (semantic search) and keyword search (lexical search) to find the most relevant results for a query.
  • Vector search uses embeddings (dense vectors) to capture the semantic meaning of text, enabling the system to find results that are similar in meaning, even if the exact words don’t match.
  • Keyword search (BM25, TF-IDF, etc.) matches documents based on the presence and frequency of exact words or phrases in the query.
Hybrid search blends these approaches, typically by scoring and/or ranking results from both methods, to maximize both precision and recall.
Why Hybrid Search might be better for your application-
  • Improved Recall: Captures more relevant results missed by pure keyword or vector search.
  • Balanced Precision: Exact matches get priority while also including semantically relevant results.
  • Robust to Ambiguity: Handles spelling variations, synonyms, and fuzzy user intent.
  • Best of Both Worlds: Keywords matter when they should, and meaning matters when needed.
Perfect for real-world apps like recipe search, customer support, legal discovery, etc.
The following vector databases support hybrid search natively or via configurations:

Example: Hybrid Search using pgvector

See More Examples

For hands-on code and advanced usage, check out these hybrid search examples for each supported vector database here