Glossary
Hybrid Search
Keyword search finds the exact product code; vector search finds the paragraph that means the same thing in different words. Hybrid search runs both and merges the results, which is why most production RAG pipelines use it.
General definition
Hybrid Search exists because the two main retrieval methods fail in opposite ways. Lexical search, usually the BM25 ranking function from the Okapi work of Robertson and colleagues, scores documents on exact term overlap weighted by rarity. It is precise for identifiers, error codes, names and rare words, and blind to synonyms. Semantic search embeds the query and the documents as vectors and ranks by similarity in a vector database. It understands paraphrase and intent, and it can miss a specific token entirely because the embedding smooths it away.
- Run both: the query goes to the keyword index and the vector index in parallel, each returning its top results
- Fuse: reciprocal rank fusion (Cormack, Clarke and Buettcher, 2009) gives each document a score of one over its rank plus a constant in each list, then sums; it needs no score normalisation and is the default in most search engines. Weighted score blending is the alternative
- Rerank: a cross-encoder reranker reads the query together with each candidate and reorders the top few dozen by relevance, which is slower per document but far more accurate than either first-stage method
- Filter: metadata filters on source, date, tenant or access rights apply at both stages so results respect permissions
The payoff shows up in retrieval-augmented generation. A language model can only answer from the passages it is given, so a retriever that misses the one paragraph containing the policy number or the drug name produces a confident wrong answer. Hybrid retrieval plus reranking is the most reliable way to raise recall on exact terms without losing the semantic matches, and it is supported natively by Elasticsearch and OpenSearch, by vector databases such as Weaviate, Qdrant and Milvus, and by hosted retrieval services.
Hybrid search is a first-stage technique. Structured knowledge, such as a knowledge graph of entities and relations, can be layered on top when questions need multi-hop reasoning, and chunking strategy, embedding model choice and query rewriting often move retrieval quality as much as the fusion method does.
Want to try it yourself? Build an AI agent that answers from your own pages and documents with the Ethora no-code AI agent builder. No coding is needed and it is free to start.
In the Ethora ecosystem
Every agent in the Ethora AI SDK can answer from its own knowledge base, built from a website crawl, uploaded files and per-agent knowledge with live web indexing, and the quality of those answers is bounded by retrieval. The documents that matter most in regulated deployments are full of exact tokens, from policy numbers and form names to drug names and ticket IDs, which is precisely the material that lexical matching catches and pure embedding search can smooth over.
Whatever retrieval pipeline sits behind an agent, the practical discipline is the same: curate the knowledge base so the right passages exist, keep chunks focused, and evaluate the agent against a fixed set of real questions after every change to the sources or the model. Where retrieval quality is the limiting factor, the answer is usually better sources and reranking rather than a bigger model, and the per-agent model choice in Ethora lets you test that cheaply by holding the knowledge constant and swapping only the model.