RAG & Agents Engineering

M16 lab, retrievers and hybrid search

Fusing BM25 and dense rankings

Nineteen Larkspur Cloud handbook chunks, ranked two ways: real BM25, and cosine similarity from the all-MiniLM-L6-v2 embedding model. Pick a question, pick how to fuse the two rankings, and move alpha. The three chunks above the magenta rule are what the LLM receives.

Golden question

Fusion method
Chunks each retriever hands over
Evidence rank, BM25
Evidence rank, dense
Evidence rank, fused
Recall@3, fused

Fused ranking for this question

RankChunkBM25DenseFusedGolden set

Small figures are each retriever’s own rank. BM25 hands over only chunks that share a term with the question. Ties keep handbook order.

Recall@3 on the golden set

Golden questionBM25DenseFused
Mean recall@3
Questions with all evidence in the top 3

BM25 and dense columns rank with one retriever alone. The fused column follows the controls; magenta marks a question only the fused list answers.