Documentation
Getting Started
Concepts
Integrations
JavaScript
Python
Browser
LangChain
Others
Features
Analytics
Logging
Tracing
Users
Chat Replays
Feedback
Tags
Tests
More
Data API
Self Hosting
Feedback Tracking
Use feedback tracking for:
- user's reactions to your chatbot's responses directly on the frontend.
- score outputs directly yourself
You can then use this to filter llm calls and fine-tune your own models based on the data.
Example of a Feedback component
The trackFeedback
method takes two arguments:
messageId
: the ID of the message you want to track the feedback on.feedback
: an object containing the feedback data. You can use any key/value pair you want.
Feedback data
You can send any feedback data you want, as long as it's a valid JSON object.
We recommend using the following keys to ensure that data is displayed correctly in the dashboard.
Key | Value | Preview |
---|---|---|
thumbs | up or down | 👍 / 👎 |
retried | true | 🔄 if the user clicked on the retry button |
emoji | emoji string | 😍 |
rating | integer between 1 and 5 | ⭐️⭐️⭐️ |
comment | arbitrary string | eg. "This is not correct." |
Learn more
Browser
Setup feedback tracking in your frontend.
Node.js / Deno (coming soon)
Setup feedback tracking in your JS backend.
Python (coming soon)
Grade outputs directly in Python