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

Ability to attach metadata to user feedback so feedback can be more specific #1091

Open
dividor opened this issue Oct 11, 2024 · 1 comment

Comments

@dividor
Copy link

dividor commented Oct 11, 2024

Feature request

I would like to be able to attach metadata to user feedback, such as the retrieval result and the text excerpt for that result, the user was commenting on, but also environmental fields related to the application.

from langsmith import Client
client = Client()
client.create_feedback(run_id, feedback_type_str, score=score, comment=comment)

Looking at the code, there doesn't seem to be an option to attach metadata to user (API) feedback.

Motivation

Having metadata on feedback means it can be filtered more easily when queried. For example, empowering users to provide feedback on individual retrieval results is absolutely key to developing a solid evaluation test set. This is only possible if we attach some indication of which result and, for convenience, the excerpt they are rating.

Though some features exist in the Langsmith UI, it is way too technical for many non-technical business users - the people we need granular feedback from to refine any LLM system - so being able to simplify this by providing feedback options on the front-end app is very powerful. Without metadata much of this isn't possible and all we can do is capture feedback on the run, which isn't specific enough.

@oegeshipster
Copy link

you can pass a parameter correction that can be used for field specific corrections I think. maybe that could help?

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

No branches or pull requests

2 participants