Overview
User feedback (thumbs up/down, corrections) is essential for improving your AI system. Artanis makes it easy to link feedback to specific traces so you can understand what went wrong and build better evaluation datasets.Complete Integration Flow
1
Backend: Return Trace ID
Include the trace ID in your API response
2
Frontend: Store Trace ID
Save the trace ID with the displayed message
3
Frontend: Collect Feedback
When user provides feedback, send it with the trace ID
4
Backend: Record in Artanis
Forward feedback to Artanis with the trace ID
Step 1: Backend - Return Trace ID
Include the trace ID in your API response:Step 2: Frontend - Store Trace ID
Store the trace ID alongside the displayed message:Step 3: Frontend - Collect Feedback
When user provides feedback, send it to your backend:Step 4: Backend - Record in Artanis
Forward feedback to Artanis:Feedback Types
Binary Feedback (Thumbs Up/Down)
Binary Feedback (Thumbs Up/Down)
Simple positive/negative feedback:
Numeric Scores
Numeric Scores
Numeric rating from 0 to 1:
With Comments
With Comments
User comments explaining the feedback:
With Corrections
With Corrections
What the correct output should have been:
Complete React Example
Here’s a complete React component with feedback:Viewing Feedback in Dashboard
Once feedback is recorded, you can view it in the Artanis Dashboard:- Filter traces by rating (
rating:negative) - See feedback comments and corrections
- Export traces with feedback for evaluation datasets
- Track feedback trends over time
Best Practices
Always Return Trace ID
Include trace ID in every API response that generates content
Make Feedback Easy
Add thumbs up/down buttons directly on AI responses
Collect Context
Ask users to explain negative feedback
Show Appreciation
Thank users for feedback to encourage more