Skip to content

Commit 2f0da0b

Browse files
rmaceissofthassiebpellipsis-dev[bot]
authored
feat: Add comment field to langfuse Evaluation from autoevals metadata (#1452)
* feat: update create_evaluator_from_autoevals to add comment field to langfuse Evaluation from autoevals metadata * Update langfuse/experiment.py Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --------- Co-authored-by: Hassieb Pakzad <68423100+hassiebp@users.noreply.github.com> Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 8ceb236 commit 2f0da0b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

langfuse/experiment.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,10 @@ def langfuse_evaluator(
10391039
)
10401040

10411041
return Evaluation(
1042-
name=evaluation.name, value=evaluation.score, metadata=evaluation.metadata
1042+
name=evaluation.name,
1043+
value=evaluation.score,
1044+
comment=(evaluation.metadata or {}).get("comment"),
1045+
metadata=evaluation.metadata,
10431046
)
10441047

10451048
return langfuse_evaluator

0 commit comments

Comments
 (0)