SteelReed

Search

Search posts, questions…

AI & LLMQuestion 15 / 25

Middle

What is hybrid search, and why fuse results with Reciprocal Rank Fusion?

Short answer

Hybrid search runs full-text and vector search in parallel and merges the results, because each misses exactly where the other is strong. The scores aren't on the same scale, so you merge by rank with RRF.

rankrankQueryFull-text: codes, namesVector: synonymsRRF: Σ 1/(k + rank)Top 10 results

3 points to say:

  1. Full-text nails codes, numbers, proper names; vector catches synonyms and different phrasings.
  2. BM25 and cosine are on different scales, so adding scores is wrong: use RRF score = Σ 1 / (k + rank), usually k = 60.
  3. Fetch wide from each branch, filter permissions in both branches, and prove it with recall@k, MRR.

Keep reading the deep dive

Create a free account to read the full explanation and follow-up questions, mark questions as studied and review them on a schedule.