Provide Feedback
Provide feedback for a generation or a retrieval. Feedback can be used to track overall Agent
performance through the Feedback
page in the Contextual UI, and as a basis for model fine-tuning.
If providing feedback on a retrieval, include the message_id
from the /query
response, and a content_id
returned in the query’s retrieval_contents
list.
For feedback on generations, include message_id
and do not include a content_id
.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
ID of the agent for which to provide feedback
Body
Input to POST feedback endpoint
ID of the message on which to provide feedback.
Feedback to provide on the message. Set to "removed" to undo previously provided feedback.
thumbs_up
, thumbs_down
, flagged
, removed
Optional explanation for the feedback.
ID of the content on which to provide feedback, if feedback is on retrieval. Do not set (or set to null) while providing generation feedback.
Response
The response is of type object
.
Was this page helpful?