pip install llama-index-retrievers-bm25
from llama_index.retrievers.bm25 import BM25Retriever
core/retrievers
bm25_retriever.py