Codumentor logo Codumentor Enterprise

User Feedback Plugin

Adds like/dislike on each assistant turn, with an optional comment after a dislike. Admins can review the collected feedback.

Enabled in the shipped default config.

Configuration

plugins:
  - module: codumentor.plugins.user_feedback
    class: UserFeedbackPlugin
    args:
      enabled: true
ArgTypeDefaultDescription
enabledbooltrueDeclared in YAML. To actually turn the feature off, omit this plugin from plugins: — enabled: false does not hide the controls or the admin page.

Usage

Users: Like and dislike sit in the action row under each assistant reply (next to copy).

Admins: The User Feedback card on the admin page shows total / likes / dislikes. Opening it goes to the feedback admin page: filter (all / likes / dislikes), a paginated table (type, comment, conversation, turn, review consent, time), and CSV export. Requires admin:*. When the user allowed review, the conversation id is a link to that turn; otherwise it is plain text.

Hook for other plugins

After a like or dislike is saved, and after one is removed, the plugin fires
onUserFeedback on the plugin bus (agent is None):

payload{conversation_id, user_id, turn_id, assistant_message_id, feedback_type, comment} — feedback_type is like, dislike, or null after a removal
ctxuser_id, conversation_id, and the app's live ui_event_store / ui_broadcaster (a thumbs arrives outside any turn)

Notification only: the return value is ignored and a failing subscriber never
fails the request. Subscribe with bus.on("onUserFeedback", …) — the hook name
is the whole contract; do not import this plugin. Defined in
plugins/user_feedback/hooks.py. Episodic Memory's
immediate learning path is the first subscriber: a dislike opens a learning
card in the conversation.

Notes