Add Feedback Buttons¶
Collect user feedback (thumbs, ratings, or categories) directly in the QType UI by adding a feedback block to your flow. Feedback submission requires telemetry to be enabled so QType can attach the feedback to traces/spans.
QType YAML¶
flows:
- id: my_flow
interface:
type: Conversational
feedback:
type: thumbs
explanation: true
telemetry:
id: app_telemetry
provider: Phoenix
endpoint: http://localhost:6006/v1/traces
Explanation¶
- flows[].feedback: Enables a feedback widget on the flow’s outputs in the UI.
- feedback.type: Feedback widget type:
thumbs,rating, orcategory. - feedback.explanation: If
true, prompts the user for an optional text explanation along with their feedback. - rating.scale: For
ratingfeedback, sets the maximum score (typically5or10). - category.categories: For
categoryfeedback, the list of selectable labels. - category.allow_multiple: For
categoryfeedback, allows selecting multiple labels. - telemetry: Must be configured for feedback submission; QType records feedback as telemetry annotations.