Skills101
← All practice quizzes

Quiz: Hybrid Search and BM25

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Semantic search misses exact codes, names and error messages. Learn how BM25 keyword ranking works by writing it in plain Python, how reciprocal rank fusion combines keyword and semantic results, and where a re-ranker fits in a RAG pipeline.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Which query is semantic search most likely to get wrong without keyword search?

  2. Question 2

    In BM25, why does the word "cs301" get a higher IDF than "fee"?

  3. Question 3

    What does this print?

    k1 = 1.5
    for tf in (1, 100):
        print(round(tf * (k1 + 1) / (tf + k1), 2))
    
  4. Question 4

    What does the BM25 parameter b control?

  5. Question 5

    Why is reciprocal rank fusion used instead of adding BM25 and cosine scores?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →