Skip to content
All learning

Lab 02 · RAG

Hybrid search, unpacked

Keyword and vector retrievers side by side, merged with Reciprocal Rank Fusion.

The question

live

When does keyword search win, and how do you combine it with embeddings without tuning?

Booting sandbox…

Edits save to this browser only. Press ⌘/Ctrl + Enter to re-run, Reset to restore the original.

What building it taught me

  • Exact-term queries ("SSO") are where keyword retrieval carries the result.
  • Paraphrase queries ("food arrived cold") are where vectors carry it.
  • The k in RRF controls how much the top rank of each list dominates.

Related notes