The BM25 Weighting Scheme: How the Classic Search Ranking Algorithm Actually Works

ankitg12 · hn · 2026-10-11

Xapian's official documentation breaks down the BM25 weighting scheme, explaining how term frequency, inverse document frequency, and document length normalization combine to rank search results, along with the roles of the key parameters b and k1. BM25 remains the dominant baseline for search engines and the retrieval layer of RAG systems, making this a classic reference for understanding how it works under the hood.

Original post →

More from Research

Research channel →