Retrieval Ranking Funnel

3 stages

Billions → [1] Candidate Generation → ~1000s → [2] Ranking → ~10s → [3] Re-ranking → ~10 shown

  1. Candidate Generation (Retrieval): cut billions → thousands. Cheap, runs on all items, optimize recall. Often several sources in parallel. Tools: Two-Tower Model + Approximate Nearest Neighbor (ANN), Collaborative Filtering.
  2. Ranking: thousands → tens. Heavy model, rich features, optimize precision at top. See Learning to Rank.
  3. Re-ranking / policy: tens → ~10. Fix what a per-item score misses: diversity, freshness, dedup, business rules (ads).

Key intuition: recall early, precision late

Search vs RecSys


References