# Hybrid search

> Canonical: https://skillalmanac.com/glossary/hybrid-search | Last verified: 2026-11-25 | Index status: index-eligible

Hybrid search combines two or more retrieval methods, most often keyword matching and vector (meaning-based) search, into one ranked list of results. The aim is to catch both exact terms and paraphrases.

Also called: hybrid search RAG, hybrid retrieval, keyword and vector search, hybrid vector search, lexical and semantic search.

## In plain language

Hybrid search combines retrieval signals. One common design runs keyword and vector searches and merges their results; another filters candidates before ranking. Keyword search finds documents that contain the exact words, such as a product code or an error message. Meaning-based search finds documents that say the same thing in different words. They can miss different items, so combining signals aims to serve both exact identifiers and loosely phrased requests. Measure whether that helps on your data. The limits are extra setup and tuning, and a poor merge can bury a good result. It does not guarantee better retrieval or recover information absent from the indexed sources.

## Technical definition

Elastic describes hybrid search as combining lexical and semantic retrieval into one ranked list, and names two merge methods: reciprocal rank fusion, which uses each document's position in every result list instead of raw scores, and linear combination, which blends normalised scores with weights. Pinecone's documentation describes keyword-style methods such as BM25 and sparse vectors for exact terms, dense vectors for meaning, and offers both filter-then-rank and merging separate result lists with reciprocal rank fusion. Anthropic's contextual retrieval post describes using BM25 to find chunks by exact match, embeddings to find chunks by semantic similarity, and combining and deduplicating the two sets with rank fusion techniques.

## How it shows up when you use agents

Hybrid search appears inside the retrieval step of a [RAG](/glossary/retrieval-augmented-generation) system and in documentation or code search tools that sit behind an agent. You may not see it directly. Its aim is to handle both exact identifiers, such as function names or error codes, and loosely worded questions. Whether either finds the right passage needs evaluation.

Coding agents often search by text match alone, which is strong for exact names and weak for paraphrase. Pure [semantic search](/glossary/semantic-search) over [embeddings](/glossary/embedding) has the opposite profile. Hybrid search combines signals; the vendor pages describe list fusion and filter-then-rank designs rather than one universal parallel layout.

What breaks when it is misunderstood: a team adds a vector index, finds that exact codes are missed, and blames the model. Another team merges scores from two systems without normalising them, and one retriever swamps the other. Next action: collect ten failing questions, note which were exact-term failures and which were wording failures, and only then choose a merge method. Elastic's page suggests starting with reciprocal rank fusion because it needs little tuning.

If the merged list is still poor, [reranking](/glossary/reranking) and chunking are the next places to look.

## Common confusions

- **Hybrid search versus semantic search.** [Semantic search](/glossary/semantic-search) matches meaning through embeddings. Hybrid search combines it with a keyword method.
- **Hybrid search versus reciprocal rank fusion.** Pinecone's page says reciprocal rank fusion is one merging method, not a synonym for hybrid search.
- **Hybrid search versus reranking.** Hybrid search can fuse candidate lists or combine filtering and ranking signals. [Reranking](/glossary/reranking) reorders a candidate list with another model or scorer.
- **Myth.** Hybrid search removes the need to tune. Elastic's page says linear combination needs tuning, and the right setup depends on your documents.

## Worked examples in this catalogue

### [What Is RAG? Retrieval-Augmented Generation Explained](https://skillalmanac.com/learn/what-is-rag)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An explanation of retrieval-augmented generation, in which a model answers from passages fetched at question time; its worked example covers chunking.

Why it exercises the concept: Hybrid search is one design to evaluate for the retrieval step the guide describes; improvement depends on the setup and questions. The guide shows the retrieval step of a RAG pipeline.

### [rag-chunking-planner](https://skillalmanac.com/skills/skill-almanac/rag-chunking-planner)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Your documents split by three chunking strategies, with defects and offline recall reported for each, so chunk settings are chosen with numbers.

Why it exercises the concept: In the illustrated chunked RAG design, keyword and vector retrieval share chunks. This skill compares chunking strategies with offline BM25-style recall; it does not configure hybrid search or prove embedding quality. Other hybrid systems retrieve whole documents or other units.

### [library-docs-lookup](https://skillalmanac.com/skills/skill-almanac/library-docs-lookup)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An answer to a library question drawn from the installed package's own files, with file and line cited.

Why it exercises the concept: The skill is an example of retrieval for code, not a hybrid index.

## Related terms

- [Retrieval-augmented generation (RAG)](https://skillalmanac.com/glossary/retrieval-augmented-generation.md)
- [Semantic search](https://skillalmanac.com/glossary/semantic-search.md)
- [Embedding](https://skillalmanac.com/glossary/embedding.md)
- [Vector database](https://skillalmanac.com/glossary/vector-database.md)
- [BM25](https://skillalmanac.com/glossary/bm25.md)
- [Reranking](https://skillalmanac.com/glossary/reranking.md)

## Sources

- [What is hybrid search? How it works and when to use it](https://www.elastic.co/what-is/hybrid-search), Elastic (accessed 2026-11-24)
- [Hybrid Search in Pinecone: Combining Sparse and Dense Retrieval](https://docs.pinecone.io/guides/search/hybrid-search), Pinecone (accessed 2026-11-24)
- [Introducing Contextual Retrieval](https://www.anthropic.com/news/contextual-retrieval), Anthropic (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
