Skip to content

Hybrid Search

A combination of semantic vector search and BM25 keyword search.

Why Vector Search Alone Is Not Enough

Vector search looks for meaning but often misses exact names: articles, model numbers, rare terms. Keyword search looks for exact matches but does not understand synonyms.

The solution is to combine both approaches.

How It Works

flowchart LR
    A[Query] --> B[Vector Search]
    A --> C[BM25]
    B --> D[Aggregation]
    C --> D
    D --> E[Top-20]
  1. Vector search looks for meaning.
  2. BM25 looks for exact matches.
  3. Results are aggregated.
  4. Further, reranking can be added.

Where It Is Implemented

See Also

← All terms