What is Request Feedback?
Request Feedback allows you to enrich your API calls with user feedback and other data after the initial request has been completed. This is useful for gathering insights on the quality of the model’s response, which can be used for analytics, auditing, and improving the user experience.View request logs in the Requesty Console.
- Capture user ratings and comments on AI responses.
- Track which responses were helpful or unhelpful.
- Add contextual data from your platform after the fact.
- Build a feedback loop to fine-tune models and prompts.
Benefits
- Quality Monitoring: Continuously track the performance and quality of your AI models.
- User Satisfaction: Understand what your users think about the AI responses they receive.
- Data-Driven Improvements: Use feedback data to identify areas for improvement in your prompts, models, or workflows.
- Enhanced Auditing: Add context to requests for better auditing and analysis.
How It Works
- After a chat completion, you get an ID in the response (e.g.
rqsty-cmpl-...). - Use this ID to send a
PATCHrequest tohttps://api-v2.requesty.ai/v1/interaction/{request_id}/feedback, authenticated with the same Requesty API key. - Include your feedback as string key-value pairs under the
feedbackfield. - Retrieve the stored feedback at any time with a
GETrequest to the same URL, and view it in your Requesty dashboard.
- Feedback values must be strings (e.g.
"rating": "5", not"rating": 5). - You can PATCH feedback multiple times per request.
- Every subsequent call merges the new values.
- If a new feedback call contains an existing key, the new value overwrites the existing one.
- Interactions are stored asynchronously — if you send feedback immediately after the completion, the endpoint may briefly return
404. Retry after a few seconds.