Skip to main content
If you collect feedback from your users, such as thumbs up or down, you can record that feedback on your trace logs.

Record feedback

To record feedback you need the trace_id of the trace log you want to record feedback on. You can get the trace_id using the get_current_trace_id() helper function, or from the completion method’s response.
Alternatively, if you used p.completion for your LLM request, you can access the inference_id field on the response to get the trace_id.