{
  "id": 20637478,
  "title": "Hybrid search for RAG: BM25 plus vectors, merged with reciprocal rank fusion",
  "url": "https://urgent.news/2026/11/18/hybrid-search-for-rag-bm25-plus-vectors-merged-with-reciprocal-rank",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-18T18:37:23.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/quantumbreakz/hybrid-search-for-rag-bm25-plus-vectors-merged-with-reciprocal-rank-fusion-4ap"
  },
  "original_language": "en",
  "account": "Hybrid search combines two retrievers: BM25 keyword search and vector (embedding) search, merging their results to address the weaknesses of each method. BM25 excels at capturing meaning but struggles with exact tokens, while embeddings excel at exact terms but lose context. Reciprocal rank fusion (RRF) merges the rankings by using ranks instead of scores, adding 1 / (k + rank) for each document in the two lists and summing the results. The constant k is typically set to 60, requiring no score normalization or training. The hybrid search implementation is provided in plain Python.",
  "summary": "Hybrid search runs two retrievers on every query, BM25 keyword search and vector (embedding) search, and merges their results. It fixes the best-known weakness of embeddings: they capture meaning but blur exact tokens, so a query for invoice INV-20931 , error ECONNRESET or a person's name can return documents that are merely about invoices, network errors or people. The usual way to merge the two…",
  "key_points": [
    "Hybrid search combines BM25 keyword search and vector search",
    "BM25 captures meaning but struggles with exact tokens",
    "Reciprocal rank fusion merges rankings without score normalization"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}