Skip to content
Snippets Groups Projects
Unverified Commit f925434c authored by Jules Kuehn's avatar Jules Kuehn Committed by GitHub
Browse files

fix: relative score fusion bug (#11759)

parent 12756ccc
No related branches found
No related tags found
No related merge requests found
......@@ -141,6 +141,9 @@ class QueryFusionRetriever(BaseRetriever):
# 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment