Skip to main content
Open on GitHub

rank_bm25

rank_bm25 is an open-source collection of algorithms designed to query documents and return the most relevant ones, commonly used for creating search engines.

See its project page for available algorithms.

Installation and Setup

First, you need to install rank_bm25 python package.

pip install rank_bm25

Retriever

See a usage example.

from langchain_community.retrievers import BM25Retriever
API Reference:BM25Retriever

Was this page helpful?