# What is hybrid search?

> Hybrid search runs a keyword query and a vector query at the same time and merges the two ranked lists, often with reciprocal rank fusion.

Canonical: https://promptlyfound.com/glossary/hybrid-search
Updated: 2026-12-01

## Short answer

Hybrid search is **search that runs a keyword query and a vector query together and merges the two result lists into one**. The keyword side finds exact terms such as product codes, and the vector side finds text with the same meaning in different wording. Azure AI Search and OpenAI's file search merge the two lists with reciprocal rank fusion.

## Key findings

- In Azure AI Search, a hybrid query is one request that runs full-text search and vector search in parallel. Reciprocal Rank Fusion merges the results into one list. [1]
- Microsoft says queries over product codes, specialized jargon, dates and people's names perform better with keyword search, because it can identify exact matches. [1]
- In Anthropic's tests, combining contextual embeddings with contextual BM25 keyword retrieval cut the top-20 retrieval failure rate by 49%, from 5.7% to 2.9%. Contextual embeddings alone cut it by 35%. [3]
- OpenAI's file search lets developers set an embedding weight and a text weight to balance semantic and keyword matches in its reciprocal rank fusion. [2]

Hybrid search is the usual way AI retrieval systems combine word matching with meaning matching. One query goes to two indexes, and one merged list comes back.

## How does hybrid search work?

A hybrid query runs a keyword search and a vector search on the same content and merges the results. Microsoft's [overview of hybrid search in Azure AI Search](https://learn.microsoft.com/en-us/azure/search/hybrid-search-overview) describes three parts:[1]

- One request carries both a text query and a vector query.
- Full-text search, ranked with [BM25](https://promptlyfound.com/glossary/bm25), and vector search, ranked with a nearest-neighbor algorithm, run in parallel.
- [Reciprocal rank fusion](https://promptlyfound.com/glossary/reciprocal-rank-fusion) merges the two ranked lists, and the response holds one result set.

The merge uses ranks because the raw scores do not compare. Microsoft's page on [hybrid search scoring](https://learn.microsoft.com/en-us/azure/search/hybrid-search-ranking) says a BM25 score has no upper limit, while a vector score with cosine similarity falls between 0.333 and 1.00. Semantic ranking, if it is turned on, runs after the merge.[4]

## Why combine keyword and vector search?

Each side finds matches that the other misses. Microsoft says vector search finds conceptually similar information even when no keyword matches exist in the [inverted index](https://promptlyfound.com/glossary/inverted-index). Keyword search gives precision, and it does better on product codes, specialized jargon, dates and people's names because it finds exact matches.[1]

[Anthropic's post on Contextual Retrieval](https://www.anthropic.com/news/contextual-retrieval) gives an example. For the query "Error code TS-999", an embedding model might find content about error codes in general but miss the exact code. BM25 looks for the exact string.[3]

## How do AI retrieval systems use hybrid search?

Retrieval-augmented generation (RAG) systems often run hybrid search to choose the chunks a model reads. Anthropic describes the steps. BM25 finds the top chunks by exact matches, and embeddings find the top chunks by meaning. Rank fusion combines the two lists and removes duplicates, and the top chunks go into the prompt. In Anthropic's tests, contextual embeddings plus contextual BM25 cut the top-20 retrieval failure rate by 49%, from 5.7% to 2.9%.[3]

[OpenAI's retrieval guide](https://developers.openai.com/api/docs/guides/retrieval) exposes the balance as settings. A developer can raise the embedding weight to favor semantic matches or the text weight to favor keyword overlap. At least one weight must be above zero.[2]

For a web page, hybrid retrieval means both its wording and its meaning count. Exact names, model numbers and terms give the keyword side something to match. [What is semantic search?](https://promptlyfound.com/ai-search/semantic-search) compares the two methods in more depth, and a [reranker](https://promptlyfound.com/glossary/reranking) can reorder the merged list afterward.

## Sources

1. Hybrid search using vectors and full-text search in Azure AI Search. Microsoft Learn. https://learn.microsoft.com/en-us/azure/search/hybrid-search-overview
2. Retrieval. OpenAI API documentation. https://developers.openai.com/api/docs/guides/retrieval
3. Introducing Contextual Retrieval. Anthropic, 2024-09-19. https://www.anthropic.com/news/contextual-retrieval
4. Relevance scoring in hybrid search using Reciprocal Rank Fusion (RRF). Microsoft Learn. https://learn.microsoft.com/en-us/azure/search/hybrid-search-ranking

---

This is a plain-text copy of https://promptlyfound.com/glossary/hybrid-search from Promptly Found. The web page is the canonical version and includes the charts.
