Skip to content

Commit

Permalink
add missing else
Browse files Browse the repository at this point in the history
  • Loading branch information
yisz committed Feb 17, 2024
1 parent 0c03170 commit c4110e3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions continuous_eval/metrics/retrieval_LLM_based_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,13 @@ def calculate(self, question, retrieved_contexts, ground_truths, **kwargs):
"LLM_based_context_statements": content,
}
)

scores.append(
{
"LLM_based_context_coverage": coverage,
"LLM_based_context_statements": content,
}
)
else:
scores.append(
{
"LLM_based_context_coverage": coverage,
"LLM_based_context_statements": content,
}
)

return max(scores, key=lambda x: x["LLM_based_context_coverage"])

Expand Down

0 comments on commit c4110e3

Please sign in to comment.