import langwatch
df = langwatch.datasets.get_dataset("dataset-id").to_pandas()
experiment = langwatch.experiment.init("my-experiment")
for index, row in experiment.loop(df.iterrows()):
# your execution code here
experiment.evaluate(
"ragas/context_f1",
index=index,
data={
"contexts": row["contexts"],
"expected_contexts": row["expected_contexts"],
},
settings={}
)