Ross ROSS = Recommend OSS · open-source software intelligence for agents

dorianbrown/rank_bm25

A Collection of BM25 Algorithms in Python observed · 2026-08-28

github.com/dorianbrown/rank_bm25 · Python · Apache-2.0 (permissive) observed · 2026-08-28

Health v2 · maintenance only

59/100

  • Activity 80
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 2782
  • days_rel: n/a
  • days_push: 123
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1378 stars · 109 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A Python library implementing several BM25 ranking algorithms (Okapi BM25, BM25L, BM25+) for scoring and ranking documents against a query. It is a lightweight, in-memory 'two line search engine' that requires users to handle their own tokenization and preprocessing.

Use cases

  • rank documents by relevance to a query in python
  • build a simple keyword search engine
  • score a corpus with BM25
  • implement lexical retrieval for RAG pipelines
  • compare BM25 variants like BM25L and BM25+

When to choose

  • you need a simple, dependency-light BM25 implementation for small to medium corpora
  • you want to prototype lexical search or hybrid retrieval quickly
  • you want control over your own tokenization and preprocessing

When to avoid

  • you need high-performance retrieval over large-scale production corpora
  • you need built-in indexing, persistence, or text preprocessing
  • you need semantic/vector search rather than lexical ranking

Facets

library · maturity stable

search-engine nlp python bm25 document-ranking information-retrieval text-search search natural-language-processing

2 sources

Member repositories

RepositoryRoleHealth v2
dorianbrown/rank_bm25main59

For agents

markdown · JSON · MCP: product_card(name="dorianbrown/rank_bm25")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem