Skip to content

Hybrid Search

Definition

Hybrid search is a retrieval method that combines semantic search (vector/embedding-based) with lexical search (keyword-based, for example BM25 or a database full-text ranking) to find relevant information. By merging both approaches, hybrid search often finds relevant passages that either method alone would miss.

How it works

Semantic search excels at understanding meaning but can miss specific terms, product names, and exact phrases. Keyword search (BM25) excels at matching specific terms but misses paraphrased content. Hybrid search combines both:

  1. Semantic search: Finds content with similar meaning to the query
  2. BM25 keyword search: Finds content containing the exact terms
  3. Reciprocal Rank Fusion (RRF): Merges and re-ranks both result sets

This means searching for "Chatsy Pro plan pricing" would find documents about "Chatsy Pro subscription cost" (semantic) AND documents containing the exact term "Pro plan" (keyword). Neither search alone would find both.

Why it matters

For AI chatbots, retrieval accuracy directly determines answer quality. If the search step misses relevant content, the AI cannot generate a correct answer, no matter how good the language model is. Hybrid search is a common choice for RAG systems because support questions mix natural phrasing with exact names, codes and plan terms that each method handles differently.

How Chatsy uses it

Chatsy's agents use hybrid search when a full-text index is available for their sources. A single PostgreSQL query ranks passages by pgvector cosine similarity and by full-text relevance (ts_rank_cd), then merges the two rankings with Reciprocal Rank Fusion (k = 60). Without a full-text index, the agent falls back to vector search alone. An optional reranking step can reorder the merged results before they reach the model.

Chatsy

Plans and pricingHow message credits workTrain your AI agent

What else should I know about Hybrid Search?

Reciprocal Rank Fusion (RRF) merges and re-ranks results from both search methods

Key takeaways

Test this in your own agent

Add your help content, ask the questions on this page, and check every answer before you publish.

Start free

Chatsy

Example scenarios

  1. 01

    Product name + intent matching

    A customer asks "how do I set up Acme Pro webhooks?" Keyword search finds documents containing "Acme Pro" and "webhooks" (exact terms). Semantic search finds documents about "configuring event notifications" (meaning). Hybrid search returns both, so the most relevant result has a better chance of ranking first.

  2. 02

    Technical jargon handling

    A developer asks about "CORS errors on the REST API." Keyword search catches the exact technical terms (CORS, REST API). Semantic search also finds related articles about "cross-origin request configuration" and "API access control." The combined results cover both exact and related content.

  3. 03

    Misspelled query recovery

    A customer types "refud polcy" (misspelled). Keyword search fails because no documents contain those misspellings. Semantic search still matches the query to the "Refund Policy" article because the embedding captures meaning despite typos. Hybrid search recovers from the keyword failure.

Key takeaways

  • Hybrid search combines semantic vector search with keyword search (BM25 or a full-text ranking)
  • Reciprocal Rank Fusion (RRF) merges and re-ranks results from both search methods
  • Test recall on your own questions: the gain over vector search alone depends on your content
  • Keyword search catches exact terms and product names that semantic search can miss
  • Measure the added latency on your own stack; running both searches in one query or in parallel keeps it small

When it does not apply

  • You have very small content corpora where pure keyword search already covers the cases.
  • Your latency requirements demand a single index round-trip with no merge step.

Frequently asked questions

Often, especially for queries containing specific terms, product names, or technical jargon that semantic search can miss. Test both on your own questions: count how often the right passage appears in the top results with each method.

It adds a lexical search and a merge step, so there is some extra latency. How much depends on your index size and setup; running both searches in a single database query or in parallel keeps it small compared with the time the language model takes to write the answer. Measure it on your own stack.

Consider it when your support questions often contain product names, error codes, plan names or other exact terms, because keyword ranking handles those well. If your content is small or your questions are mostly conversational, vector search alone may be enough. Compare both on a set of real questions before you decide.

RRF is an algorithm that combines ranked result lists from multiple search methods. Each result gets a score of 1 / (k + rank) in each list, where k is a constant (60 is a common choice), and the scores are summed. Results that rank highly in both keyword and semantic search get the highest combined scores, and RRF needs no tuning of the two methods' raw scores.

Examples include modern Elasticsearch and OpenSearch with vector plugins enabled, Weaviate with BM25 plus vector retrieval, Vespa, and PostgreSQL using pgvector alongside built-in full-text search (the approach Chatsy uses). Each runs lexical and vector queries in parallel and fuses the results.

Semantic search uses only vector similarity to match by meaning. Hybrid search runs both semantic search and keyword search (BM25) in parallel and merges the results, typically with Reciprocal Rank Fusion. Hybrid wins when queries contain specific product names, error codes, or jargon that pure semantic search can blur.

Yes, in spirit. Google Search blends classic keyword and link-based ranking with neural retrieval models like BERT and MUM, plus knowledge graph signals. It is not exactly the BM25-plus-vector pattern used inside RAG systems, but it is conceptually a hybrid of lexical and semantic understanding.

See these concepts in action

Try Chatsy free and experience how these concepts come together in an AI-powered support platform.