Skip to content

Commit

Permalink
Fix typo in metric error message (explodinggradients#1404)
Browse files Browse the repository at this point in the history
This pull request addresses a minor typo in the error message related to
metric validation. The message previously contained a duplicated "that,"
which has been corrected for clarity.
  • Loading branch information
suekou authored and shahules786 committed Oct 2, 2024
1 parent a663f11 commit 8821cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ragas/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def validate_required_columns(ds: EvaluationDataset, metrics: list[Metric]):
available_columns = ds.features()
if not required_columns.issubset(available_columns):
raise ValueError(
f"The metric [{m.name}] that that is used requires the following "
f"The metric [{m.name}] that is used requires the following "
f"additional columns {list(required_columns - available_columns)} "
f"to be present in the dataset."
)
Expand Down

0 comments on commit 8821cd7

Please sign in to comment.