Skip to main content
Feedback lets you annotate completions with scalar values, boolean ratings, or pairwise preferences. Use feedback for monitoring, evaluation, and as training objectives.

Register a feedback key

Before logging feedback, register a key:

Log metric feedback

Log a rating for a completion using its completion_id from the inference response:
Feedback is associated with the completion’s Interaction record.

Log preference feedback

Log a pairwise comparison between two completions:
Use preferences for RLHF/DPO training when you can judge which completion is better but can’t assign absolute scores.See SDK Reference for all feedback methods.