fix: EvaluationRunResult should compare only input keys (#7603)

* initial import

* Update haystack/evaluation/eval_run_result.py

Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>

---------

Co-authored-by: Madeesh Kannan <shadeMe@users.noreply.github.com>
This commit is contained in:
David S. Batista 2024-04-26 15:44:18 +02:00 committed by GitHub
parent 704293d491
commit 0047cd115e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,8 +119,8 @@ class EvaluationRunResult(BaseEvaluationRunResult):
this_name = f"{this_name}_first"
other_name = f"{other_name}_second"
if self.inputs != other.inputs:
warn(f"The inputs to the two evaluation results differ; using the inputs of '{this_name}'.")
if self.inputs.keys() != other.inputs.keys():
warn(f"The input columns differ between the results; using the input columns of '{this_name}'.")
pipe_a_df = self.to_pandas()
pipe_b_df = other.to_pandas()