Search & ranking

Step 3 of 4 in Applied AI · Build · Medium

Inverted indexes find candidate documents fast; BM25 scores them; learning-to-rank reorders with many signals. NDCG measures the ranking.

Build it

  1. Mini search engine

    Inverted index + BM25 over 1,000 docs; hand-label relevance for 10 queries and compute NDCG@10.

    Done when: Matches rank_bm25; NDCG reported.

Case study: PageRank

  • Ranked pages by links from other important pages, not just text match.
  • Made Google results dramatically better than keyword engines of the time.
  • Spammers then built link farms: every ranking signal gets gamed.

Read the case study

Resources

Earn this star

On the map, you log what you built. Finish the step and its star lights.

Open this step on the map