From 9c311bf2f8b69fc3fa1b92e6991c78a3526a3209 Mon Sep 17 00:00:00 2001 From: Billy Hu Date: Wed, 3 Apr 2024 13:36:13 -0700 Subject: [PATCH] fix --- .../evals/evaluators/similarity/flow/validate_inputs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/promptflow-evals/promptflow/evals/evaluators/similarity/flow/validate_inputs.py b/src/promptflow-evals/promptflow/evals/evaluators/similarity/flow/validate_inputs.py index 2f9fce9c252..14642100744 100644 --- a/src/promptflow-evals/promptflow/evals/evaluators/similarity/flow/validate_inputs.py +++ b/src/promptflow-evals/promptflow/evals/evaluators/similarity/flow/validate_inputs.py @@ -7,7 +7,7 @@ def validate_inputs(question: str, answer: str, ground_truth: str): if ( not (question and question.strip() and question != "None") or not (answer and answer.strip() and answer != "None") - or not (ground_truth and ground_truth.strip()) + or not (ground_truth and ground_truth.strip() and ground_truth != "None") ): raise ValueError("'question', 'answer' and 'ground_truth' must be non-empty strings.")