> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# User Feedback

> Track and collect user feedback in application traces using Maxim's Feedback entity. Enhance your AI applications with structured user ratings and comments to measure user satisfaction and improve your AI system's performance over time.

<div className="w-full flex justify-end -mb-11">
  <LanguageSwitcher />
</div>

## Add Feedback to Traces

<CodeGroup>
  ```typescript JS/TS theme={null}
  trace.feedback({
      score: 5,
      comment: "Great job!",
  });
  ```

  ```python Python theme={null}
  trace.feedback({
      "score":5, 
      "comment": "Great job!", 
  })
  ```

  ```go Go theme={null}
  trace.SetFeedback(&logging.Feedback{
      Score:   5,
      Comment: StrPtr("Great job!"),        
  })
  ```

  ```java Java theme={null}
  Feedback feedback = trace.setFeedback(new Feedback(
      5,
      "Great job!"
  ));
  ```
</CodeGroup>

<img src="https://mintcdn.com/maximai/fHnWe0mnvuD5228y/images/docs/tracing/via-sdk/feedback_and_tags.png?fit=max&auto=format&n=fHnWe0mnvuD5228y&q=85&s=f0fc77c3ec6f459f1b12a496c0d8f2a9" alt="User Feedback" width="2386" height="1704" data-path="images/docs/tracing/via-sdk/feedback_and_tags.png" />
