Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: scores are not displayed in Datasets view #2060

Closed
kleebaum opened this issue May 15, 2024 · 1 comment
Closed

bug: scores are not displayed in Datasets view #2060

kleebaum opened this issue May 15, 2024 · 1 comment

Comments

@kleebaum
Copy link

kleebaum commented May 15, 2024

Describe the bug

I would like to add scores to traces. I currently do this as follows:

handler.trace.score(name=score_name, value=score_value)

The column "Scores (avg)" in the Dataset Runs view is empty:
grafik

How can I add scores to dataset runs?

Thank you!

To reproduce

In Langfuse, navigate to Datasets -> Select a dataset -> View column "Scores (avg)" (should display scores but is empty).

SDK and container versions

2.41.1

Additional information

The scores were displayed in the Dataset runs view until version 2.32 but are not displayed anymore

Are you interested to contribute a fix for this bug?

No

@kleebaum
Copy link
Author

kleebaum commented May 15, 2024

I replaced:

handler.trace.score(name=score_name, value=score_value)
with
langfuse.score(name=score_name, value=score_value, trace_id=handler.trace.id, observation_id=span.id)

as described in the documentation: https://langfuse.com/guides/cookbook/evaluation_with_langchain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant