Yes, you can track thumbs-up/thumbs-down feedback in Genie and use it to improve your agents.
Where is the feedback stored?
Feedback events are stored in the Databricks audit log system table system.access.audit. You can query them with:
SELECT
event_time,
user_identity.email AS user_email,
request_params.space_id AS space_id,
request_params.feedback_rating AS feedback_rating
FROM system.access.audit
WHERE service_name = 'aibiGenie'
AND action_name = 'updateConversationMessageFeedback'
AND event_date >= current_date() - INTERVAL 30 DAYS;
How to count dislikes per space?
SELECT
request_params.space_id AS space_id,
COUNT(*) AS negative_count
FROM system.access.audit
WHERE service_name = 'aibiGenie'
AND action_name = 'updateConversationMessageFeedback'
AND request_params.feedback_rating = 'NEGATIVE'
AND event_date >= current_date() - INTERVAL 30 DAYS
GROUP BY request_params.space_id
ORDER BY negative_count DESC;
Important caveat: The audit log records every rating event, so if a user changes their rating, you'll see multiple rows for the same message. You should consider the latest rating per message rather than simply counting all negative events.
Also note that the audit log gives you the feedback rating and space ID, but not the full Q&A content. To analyze the actual questions and generated SQL, you'll need to use the Genie Conversation API to retrieve conversation messages.
Suggested analysis workflow:
- Extract feedback events from the audit logs (as above).
- Retrieve the corresponding conversation messages using the Genie Conversation API.
- Store the questions, generated SQL, feedback ratings, and agent/space IDs in a Delta table.
- Analyze negatively rated responses to identify recurring issues โ e.g. incorrect joins, missing business definitions, wrong aggregations.
- Based on these patterns, update the Genie instructions, SQL examples, or metadata.
- Add the problematic questions to Genie Benchmarks with the expected SQL/results, and rerun them after making changes to verify whether accuracy improved.
Quick manual option: In the Genie UI, you can also click "Add as instruction" or "Add as benchmark" directly on a problematic Q&A pair โ this is faster than building a programmatic pipeline for one-off fixes.
One thing to keep in mind: Negative feedback doesn't always mean the SQL is incorrect โ it could be a formatting issue, an unhelpful phrasing, or a user expectation mismatch. Reviewing the actual response before making changes is always worthwhile.
References:
Monitor Genie feedback using audit logs
Genie Conversation API
Genie monitoring and benchmarks
Hope this helps!