[go: up one dir, main page]

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