Skip to content

Commit

Permalink
fix: column rename (#1324)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahules786 authored Sep 18, 2024
1 parent c40891b commit 502b336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ragas/metrics/_noise_sensitivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class NoiseSensitivity(MetricWithLLM, SingleTurnMetric):
MetricType.SINGLE_TURN: {
"user_input",
"response",
"ground_truth",
"reference",
"retrieved_contexts",
}
}
Expand Down Expand Up @@ -257,7 +257,7 @@ async def _ascore(self: t.Self, row: t.Dict, callbacks: Callbacks) -> float:
answers["retrieved2ground_truth"] = np.array(gt_verdictslist).T
answers["retrieved2answer"] = np.array(ans_verdictslist).T
answers["ground_truth2answer"] = await self._evaluate_statement_faithfulness(
ans_statements, row["ground_truth"], callbacks
ans_statements, row["reference"], callbacks
)
answers["ground_truth2answer"] = np.array([answers["ground_truth2answer"]])
answers = {k: v.astype(bool) for k, v in answers.items()}
Expand Down

0 comments on commit 502b336

Please sign in to comment.