Skip to content

Commit 6945344

Browse files
authored
Fix input key expansion in DataLoader.from_parquet (#8248)
1 parent 195ae05 commit 6945344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dspy/datasets/dataloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def from_parquet(
116116
if not fields:
117117
fields = list(dataset.features)
118118

119-
return [dspy.Example({field: row[field] for field in fields}).with_inputs(input_keys) for row in dataset]
119+
return [dspy.Example({field: row[field] for field in fields}).with_inputs(*input_keys) for row in dataset]
120120

121121
def from_rm(self, num_samples: int, fields: List[str], input_keys: List[str]) -> List[dspy.Example]:
122122
try:

0 commit comments

Comments
 (0)