Skip to content

Commit

Permalink
fix: data export (#1461)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahules786 authored Oct 10, 2024
1 parent 874c992 commit 75fa77b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ragas/dataset_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def get_sample_type(self):
return type(self.samples[0])

def _to_list(self) -> t.List[t.Dict]:
rows = [sample.model_dump() for sample in self.samples]
rows = [sample.to_dict() for sample in self.samples]

if self.get_sample_type() == MultiTurnSample:
for sample in rows:
Expand Down

0 comments on commit 75fa77b

Please sign in to comment.