Send human evals via API
A guide on how to send human feedback to the API.
Pass user feedback to the API
You can pass user feedback to the API as a positive_feedback
field in the request.
If you are using the Logging API, you can pass the positive_feedback
field in the request to record if the user liked the output.
positive_feedback
is a boolean field that indicates if the user liked the output.
If you are using the Logging API, you can pass the positive_feedback
field in the request to record if the user liked the output.
positive_feedback
is a boolean field that indicates if the user liked the output.
If you are using the LLM proxy, you can pass the positive_feedback
field in the request to record if the user liked the output.
positive_feedback
is a boolean field that indicates if the user liked the output. If you’re using other LLM provider SDKs, see the integration docs here.
In most cases, you will want to update an existing log with the positive_feedback
field. In this case, you can use the Update Log API.
Here’s the example that updates the positive_feedback
field for a log with id xxxxxx
. P.S. You can find the log id in the unique_id
field in the response of the Get logs or get it directly from the Logs in the UI.
After you pass the positive_feedback
field, you can see it in the side panel of the Logs.
Was this page helpful?