Retrieval · 3a
BM25 A: IDF, why a rare word is worth more
BM25's first factor: IDF. On a 2,509-ticket archive (110 hand-written, 2,399 written by the course model from specs), search Oxenhope checkout errors. Counting shared terms ties the two right tickets with 54 that say checkout errors about someone else, at ranks 19 and 29; weighting by IDF (oxenhope 6.12, checkout 3.27, errors 2.38, the 0.46) puts them at 1 and 2. Covers document frequency, Lucene's IDF (why the +1: the original gives the −0.53), and a check against HW1's hand-worked values. Recall@10 over 50 queries: 0.595 → 0.907; asked as questions: 0.177 → 0.722. No model calls.