EveryDev.ai
Subscribe
Home
Tools

5,100+ AI tools

  • New
  • Trending
  • Featured
  • Rate tools
  • Compare
  • Arena
Categories
  • Agents2600
  • Coding1916
  • Infrastructure902
  • Projects718
  • Research642
  • MCP613
  • Analytics497
  • Marketing497
  • Design422
  • Testing406
  • Data378
  • Security328
  • Integration259
  • Communication250
  • Prompts247
  • Extensions219
  • Commerce171
  • Voice171
  • DevOps168
  • Web123
  • Learning114
  • Finance35
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • Users
  • Rate Tools
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai ©
    1. Home
    2. Tools
    3. BM25S
    BM25S icon

    BM25S

    Search and Discovery

    A fast Python library implementing BM25 lexical search and ranking using Numpy and Scipy sparse matrices.

    Visit Website

    At a Glance

    Pricing
    Open Source

    BM25S Python library released under the MIT License; free to use, copy, modify, and distribute.

    Engagement

    Available On

    macOS
    API
    SDK
    CLI

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    Search and DiscoveryRetrieval-Augmented GenerationAI Development Libraries

    Alternatives

    FlashRankSentence Transformersmxbai-rerank
    Developer
    Xing Han LuXing Han Lu (xhluca) builds open-source developer tools focu…

    Listed Oct 2026

    About BM25S

    BM25S (BM25-Sparse) is an open-source Python library by Xing Han Lù that ranks documents against a query using BM25 algorithms. It is built on Numpy and Scipy, with optional dependencies for stemming and Numba acceleration, and runs without Java or a separate search server.

    What It Is

    BM25S is a lexical search and retrieval library. You tokenize a corpus, index it, and retrieve the top-k documents and scores for one or more queries. The project says a sparse eager scoring strategy, which precomputes scores for document tokens, gives query speeds comparable to or exceeding Elasticsearch in its benchmarks. Indices and corpora can be saved to disk and reloaded later.

    Workflow and Variants

    The built-in tokenizer supports stopwords, stemmers, and custom splitters, and a Tokenizer class can save and load its vocabulary. The library supports several BM25 variants: Robertson, ATIRE, BM25L, BM25+ and Lucene (the default). Parameters such as k1, b, and delta are configurable. Corpus entries can be plain strings or dictionaries, and retrieval is position-based.

    Interfaces and Integrations

    Beyond the Python API, a high-level module indexes local CSV, JSON, JSONL, or TXT files. A bm25 command-line tool handles indexing and searching, including a user directory for saved indices. A built-in MCP server exposes retrieve and get_info tools to LLM agents such as Claude Desktop. Indices can be pushed to and loaded from the Hugging Face Hub.

    Memory and Scope

    Memory-mapped loading lets an index stay on disk and load on demand, which the project's benchmarks show reduces RAM use. The homepage states that BM25S is not a replacement for Elasticsearch, but a lightweight alternative for BM25 ranking, useful in research and prototyping where BM25 parameters and tokenization need precise control.

    BM25S - 1

    Community Discussions

    Be the first to start a conversation about BM25S

    Share your experience with BM25S, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source (MIT)

    BM25S Python library released under the MIT License; free to use, copy, modify, and distribute.

    • MIT License
    • Install via pip
    • Fast BM25 implementation in Python using Numpy and Scipy
    • Optional dependencies for stemming and Numba acceleration

    Capabilities

    Key Features

    • BM25 ranking with Robertson, ATIRE, BM25L, BM25+ and Lucene variants
    • Sparse eager score computation using Scipy sparse matrices
    • Customizable tokenizer with stopwords, stemmers and splitters
    • Memory-mapped index loading for lower RAM usage
    • Save and load indices to disk
    • High-level API for CSV, JSON, JSONL and TXT files
    • Command-line interface for indexing and searching
    • Built-in MCP server exposing retrieve and get_info tools
    • Hugging Face Hub save and load
    • Optional Numba backend

    Integrations

    Hugging Face Hub
    Model Context Protocol
    Claude Desktop
    PyStemmer
    Numba
    BEIR
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate BM25S and help others make informed decisions.

    Rate other tools you’ve used

    Developer

    Xing Han Lu

    Xing Han Lu (xhluca) builds open-source developer tools focused on AI agent infrastructure. The agent-talk project provides a messaging primitive for coding agents, built on the retalk CLI. The work targets multi-agent coordination across sessions, machines, and teams without requiring centralized orchestration frameworks.

    Read more about Xing Han Lu
    WebsiteGitHub
    2 tools in directory

    Similar Tools

    FlashRank icon

    FlashRank

    Ultra-lite Python library that adds fast pairwise and listwise re-ranking to search and retrieval pipelines without requiring Torch or Transformers.

    Sentence Transformers icon

    Sentence Transformers

    Python library for state-of-the-art sentence, text, and image embeddings using transformer models for semantic search and similarity.

    mxbai-rerank icon

    mxbai-rerank

    Open-source reranking models from Mixedbread that improve search relevance for retrieval, RAG, code search and multi-tool agents.

    Browse all tools

    Related Topics

    Search and Discovery

    AI-powered tools for finding and exploring information.

    70 tools

    Retrieval-Augmented Generation

    RAG Systems that enhance LLM outputs by retrieving relevant information from external knowledge bases, combining the power of generative AI with information retrieval for more accurate and contextual responses.

    192 tools

    AI Development Libraries

    Programming libraries and frameworks that provide machine learning capabilities, model integration, and AI functionality for developers.

    480 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions