Skip to content

[2.8] MOD-7896: Add weight factor to BM25 scoring calculation (#5670)#5709

Merged
Itzikvaknin merged 2 commits into2.8from
manual-backport-5670-to-2.8
Mar 3, 2025
Merged

[2.8] MOD-7896: Add weight factor to BM25 scoring calculation (#5670)#5709
Itzikvaknin merged 2 commits into2.8from
manual-backport-5670-to-2.8

Conversation

@Itzikvaknin
Copy link
Collaborator

Backport #5670 to 2.8

* Update BM25 scoring calculations to incorporate weight factor in explanations

* Add weight to explainscore
Expand testTFIDFScorerExplanation in test_scorers

* Add testBM25STDScoreWithWeight and testBM25ScoreWithWeight
to test_scorers

* Fix testOptionalAndWildcardScoring

* Fix testBM25STDScorerExplanation

* Add docs to scorer_with_weight_test
Fix BM25STD calculation

* Remove unnecessary isCluster condition from test_scorers

* Add hash seed to force docs distribution

* Name change

* Fix test_scorers:testBM25ScorerExplanation and test_scorers:testBM25STDScorerExplanation
@Itzikvaknin Itzikvaknin changed the title MOD-7896: Add weight factor to BM25 scoring calculation (#5670) [2.8] MOD-7896: Add weight factor to BM25 scoring calculation (#5670) Mar 2, 2025
@codecov
Copy link

codecov bot commented Mar 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.06%. Comparing base (f645764) to head (ee5e5b7).
Report is 1 commits behind head on 2.8.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.8    #5709      +/-   ##
==========================================
+ Coverage   86.04%   86.06%   +0.02%     
==========================================
  Files         200      200              
  Lines       34414    34413       -1     
==========================================
+ Hits        29611    29619       +8     
+ Misses       4803     4794       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Itzikvaknin Itzikvaknin requested a review from raz-mon March 2, 2025 09:52
@Itzikvaknin Itzikvaknin added this pull request to the merge queue Mar 3, 2025
Merged via the queue into 2.8 with commit 924a6c9 Mar 3, 2025
10 checks passed
@Itzikvaknin Itzikvaknin deleted the manual-backport-5670-to-2.8 branch March 3, 2025 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants