-
Notifications
You must be signed in to change notification settings - Fork 201
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] Groundedness not working #1649
Comments
Hey @liambarstad at least in this code snippet above you are missing some closing parenthesis and brackets that might lead to his error. Here's your code fixed: f_groundedness = (
Feedback(
provider.groundedness_measure_with_cot_reasons, name='Groundedness'
)
.on(Select.RecordCalls.get_chunks.rets.collect()) # added missing closing parenthesis
.on_output()
)
# this works fine with answer and context relevance
tru_rag = TruCustomApp(
rag,
feedbacks=[f_groundedness] # added missing closing bracket
) |
Those were typos on my part from copying the code over, those aren't part of the original |
I also failed in the groundedness of this metric. Do you happen to have some methods to deal with this problem? |
I also failed in the groundedness of this metric. Do you happen to have some methods to deal with this problem? |
Bug Description
groundedness_measure_with_cot_reasons is failing silently
To Reproduce
Expected behavior
I expect the metric to show up in my dashboard, since I'm following the sample code in the docs nearly to the letter
Relevant Logs/Tracebacks
When the dashboard is opened, "No feedbacks" is displayed, or groundedness is not shown. Besides that, it fails completely silently
Environment:
The text was updated successfully, but these errors were encountered: