Skip to content

Commit

Permalink
fix: relative score fusion bug (#11759)
Browse files Browse the repository at this point in the history
  • Loading branch information
juleskuehn authored Mar 7, 2024
1 parent 12756cc commit f925434
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ def _relative_score_fusion(
# then scale by the weight of the retriever
min_max_scores = {}
for query_tuple, nodes_with_scores in results.items():
if not nodes_with_scores:
min_max_scores[query_tuple] = (0.0, 0.0)
continue
scores = [node_with_score.score for node_with_score in nodes_with_scores]
if dist_based:
# Set min and max based on mean and std dev
Expand Down

0 comments on commit f925434

Please sign in to comment.