Skip to content

Commit

Permalink
Fix key name of retrieved_contexts in the dataset evaluation sample (#68
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jmartisk authored Jun 11, 2024
1 parent dba8fb8 commit 31c4c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/evaluation_on_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
dataset=dataset,
eval=[
PrecisionRecallF1().use(
retrieved_context=dataset.retrieved_context, # type: ignore
retrieved_context=dataset.retrieved_contexts, # type: ignore
ground_truth_context=dataset.ground_truth_contexts, # type: ignore
),
RankedRetrievalMetrics().use(
retrieved_context=dataset.retrieved_context, # type: ignore
retrieved_context=dataset.retrieved_contexts, # type: ignore
ground_truth_context=dataset.ground_truth_contexts, # type: ignore
),
],
Expand Down

0 comments on commit 31c4c1c

Please sign in to comment.