Skip to content

Commit

Permalink
Merge pull request #2347 from morenobonaventura/patch-3
Browse files Browse the repository at this point in the history
Update evaluators_service.py
  • Loading branch information
mmabrouk authored Dec 6, 2024
2 parents a3b0517 + cbdc0f6 commit c6ec222
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ def diff(ground_truth: Any, app_output: Any, compare_schema_only: bool) -> float
llm_app_output_value = flattened_app_output.get(key, None)

key_score = 0.0
if ground_truth_value and llm_app_output_value:
if ground_truth_value is not None and llm_app_output_value is not None:
key_score = diff(
{key: ground_truth_value},
{key: llm_app_output_value},
Expand Down

0 comments on commit c6ec222

Please sign in to comment.