BM25 Ranking 2D: Search Score Bar Chart
Interactive 2D BM25 ranking simulator: tune the term-frequency saturation constant k1 and the length-normalization constant b, pick query terms, and watch a live bar chart re-rank an 18-document corpus with the exact probabilistic ranking formula used by real search engines.
Every keyword search engine has to answer the same question millions of times a second: given a query, which of billions of documents deserve to be shown first? BM25 is the classical answer — a probabilistic ranking function that balances how often a query term appears in a document against how rare that term is across the whole corpus, while penalizing documents that only look relevant because they are unusually long. This 2D companion draws a synthetic 18-document corpus as a live bar chart and recomputes every document's BM25 score as you pick query terms and drag the k1 (term-frequency saturation) and b (length-normalization) constants — the same two knobs that Elasticsearch, Lucene and Solr expose to real search engineers.
Interactive 2D BM25 ranking simulator: tune the term-frequency saturation constant k1 and the length-normalization constant b, pick query terms, and watch a live bar chart re-rank an 18-document corpus using the same probabilistic ranking formula real search engines use.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install