Skip to content

< CollectionsStack

Hybrid search.

Keyword search and vector search fail on different queries. Run both, fuse them, rerank.

7 sections · 6 problems · 1 project

0 of 7 done

Start Next: 01 Build BM25 From Scratch

Fig. 1. Keyword search finds the error code; vector search finds the paraphrase. Reciprocal rank fusion adds 1 / (60 + rank) from each list, so a document both rank well comes first.

Section 01

Keywords

0 of 1

BM25 finds the exact term.

  1. 01Build BM25 From Scratchimplement · medium

Section 02

Meaning

0 of 1

Embeddings find the paraphrase.

  1. 02Search by Meaning, Not by Wordsimplement · medium

Section 03

Fuse

0 of 1

Combine two rankings without comparing their scores.

  1. 03Fuse BM25 and Dense Search With RRFimplement · medium

Section 04

Ask better

0 of 1

Rewrite the query before it is searched.

  1. 04Rewrite the Query Before You Searchimplement · medium

Section 05

Rerank

0 of 1

A model that reads the question orders the shortlist.

  1. 05Rerank With a Model That Understands the Questionimplement · medium

Section 06

Measure

0 of 1

Recall@k and MRR, before and after.

  1. 06Measure Retrieval with Recall@k and MRRimplement · medium

Section 07

Build it

0 of 1

Search the problem catalog.

  1. 07catalog-searchproject
All collections