MidnightTokensdeveloper portal
Sign In
Unit Study Document

Hybrid Search & Query Expansion in RAG

9 min readβ€’Visual explainer included

Retrieval-Augmented Generation (RAG)

Standard vector search uses embeddings. While embeddings excel at finding semantic meaning, they struggle with exact matching like ID numbers, barcodes, or specific names. We solve this with hybrid search.

Fast Drill

Active Recalls

Card 1 of 1
Question

What is Reciprocal Rank Fusion (RRF)?

Tap card to flip
Answer

An algorithm that scores and merges search results from keyword search and vector search based on their relative ranks.

Mastery: 0%
Knowledge Check

Quiz Practice

Question 1 of 1
Why use hybrid search instead of pure vector search?

Chapter Scratchpad

Auto-saves immediately

Active Recall Cards

Review core concepts before doing the quiz

Fast Drill

Active Recalls

Card 1 of 1
Question

What is Reciprocal Rank Fusion (RRF)?

Tap card to flip
Answer

An algorithm that scores and merges search results from keyword search and vector search based on their relative ranks.

Mastery: 0%

AI Study Buddy

Always online

Hi! I'm Spooky, your study buddy! Let's learn together.