Skip to content

Conversation

@samanta-sc
Copy link

Description
This PR adds optional support for the BM25Plus variant to BM25Retriever.

  • The default behavior remains unchanged and continues to use BM25Okapi

  • BM25Plus can be enabled explicitly via a new bm25_variant="plus" option

  • All scoring logic and parameter defaults are delegated to the underlying rank_bm25 implementation

  • No new retriever classes are introduced, and the change is fully backward compatible

BM25Plus is particularly useful for passage-level retrieval and chunked documents, where standard BM25 can under-rank short texts.

Issue

N/A

Dependencies

  • No new dependencies added

  • Continues to rely on the existing rank_bm25 package

Lint and test

  • ✅ make format

  • ✅ make lint

  • ✅ make test

All checks pass locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant