Skip to main content
For the complete documentation index for agents and LLMs, see llms.txt.

Collect User Feedback

Monitor users' feedback to give you an indication of how your AI system is doing. Collecting feedback is crucial throughout your app's lifecycle to evaluate quality and improve the pipeline, starting from development, through prototype testing, to production.

About This Task

You or your users can rate each answer as accurate (thumbs up), fairly accurate (thumbs sideways), or inaccurate (thumbs down). When users select the rating, they can explain it by selecting predefined reasons called tags or by adding comments in the text field.

A screenshot of an answer and the thumbs down icon selected below it

Admins can add feedback tags to a pipeline through the Pipeline Details page or REST API endpoints. Users can then select applicable tags when rating an answer. Tags can then help classify feedback entries:

An answer with the fairly accurate rating assigned and the text field for providing additional comments opent. In the text field, you can see tags: not the right style, not factually correct, no answer, and the like, the user can choose. There's also a text field below and a submit button.

Before moving your pipeline to production, you can share its prototype and let the users test it. For information on how to do this, see Share a Pipeline Prototype.

Setting Up a Feedback System in Production

Collect feedback from your users to monitor your pipeline's performance over time, identify potential issues (such as data drift), or use it to improve your pipeline.

To collect feedback:

  1. Add tags you want your users to select when assigning ratings to answers. Tags are specific to a pipeline.
    To add tags in Haystack Platform:

    1. Go to Pipelines and click the name of the pipeline you want to add tags to. This opens the Builder.
    2. Switch to Settings and add feedback tags.
    The feedback tags section on the pipeline details page
  2. Add the "thumbs" buttons and a text field in your UI.

  3. Send requests with the feedback to Haystack Platform's Create Feedback API endpoint.

If you're using the Haystack Platform UI, the feedback system is added to each pipeline by default. You just need to add tags to your pipeline, if needed.

Analyzing Feedback

You can analyze feedback on the Analytics tab:

  1. On the Pipelines page, click the name of the pipeline whose feedback you want to view.
  2. When you're in Builder, switch to Analytics.
  3. Go to History.
  4. Use Feedback Insights to analyze feedback patterns and generate executive summaries to help you understand performance trends and identify areas for improvement. You can start with one of the suggested prompts or enter your own query. Based on the prompt, AI analyzes your pipeline activity and generates a summary.
  5. In the table, go to Manage Table Preferences and enable columns related to feedback, like Feedback Rating, Feedback Notes, and Feedback Tags. You can then add notes and hashtags to your queries using these columns in the table.

You can also analyze feedback programmatically with Get Paginated Feedback (returns detailed feedback), Get Pipeline Feedback Stats (returns feedback statistics, like the count of entries, users, and average accuracy), and Export Feedback (downloads a CSV file with all feedback).