Skip to content

AI Assistant: Get feedback on AI responses #2495

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
christad92 opened this issue Sep 12, 2024 · 11 comments · Fixed by #2831
Closed

AI Assistant: Get feedback on AI responses #2495

christad92 opened this issue Sep 12, 2024 · 11 comments · Fixed by #2831
Assignees

Comments

@christad92
Copy link

christad92 commented Sep 12, 2024

Here are a few things we want to do:

  • Add a flag that lets user report an unsatisfactory response with comment.
  • A posthog survey to collect experience.
@christad92 christad92 added this to v2 Sep 12, 2024
@github-project-automation github-project-automation bot moved this to New Issues in v2 Sep 12, 2024
@josephjclark

This comment has been minimized.

@christad92

This comment has been minimized.

@christad92 christad92 changed the title AI Assistant: Improve the quality of the AI AI Assistant: Get feedback on AI responses Sep 13, 2024
@josephjclark

This comment has been minimized.

@josephjclark
Copy link
Contributor

This needs more design detail. But this is required before general release (especially if we're not going to post chat logs to slack yet)

@christad92
Copy link
Author

christad92 commented Dec 6, 2024

The ideal solution here for me is to allow users to flag a response from the assistant. We should have a text under the responses that say, flag this response and on click, it should open a modal that asks the user to select the reasons(s) for flagging the response- incorrect information, incomplete answer, irrelevant answer, confusing or unclear, too long or verbose answer, too short or lacking detail, outdated information, not based on documentation, formatting issues, and other.

This "flag this answer" feature should only show when a user hovers over the answer from the assistant.

Image

When flagging a response, users can select more than one reason and should also provide more details about their reason for flagging the response. The responses will be saved in the db (maybe in a new table).

Image

@christad92
Copy link
Author

@josephjclark what do you think about this?

@elias-ba elias-ba self-assigned this Dec 8, 2024
@elias-ba elias-ba moved this from Backlog to In progress in v2 Dec 8, 2024
@elias-ba
Copy link
Contributor

elias-ba commented Dec 8, 2024

Here is how Claude does it (same as your proposal @christad92), and I think it's really cool.

Click on these

Image

For positive feedback

Image

For negative feedback

Image

@elias-ba elias-ba moved this from In progress to Backlog in v2 Dec 9, 2024
@josephjclark
Copy link
Contributor

@christad92 to investigate whether we can attach the AI-chat session ID to a posthog survey.

Then we can have a really simple flow like:

  • User clicks "Give feedback on / report this answer"
  • We pop up a posthog survey
  • We attach the session id to posthog so we can track it
  • we ask a few questions
  • job done

@josephjclark josephjclark assigned christad92 and unassigned elias-ba Jan 6, 2025
@theroinaochieng theroinaochieng moved this from Backlog to Ready in v2 Jan 15, 2025
@theroinaochieng
Copy link
Collaborator

@elias-ba thanks for picking this up! This will unblock @christad92 on setting up the PostHog survey. Here's the proposed implementation on the front end:

Image

The "Give us feedback on your answers" should:

  1. be coloured like the other hyperlinks at the bottom
  2. trigger the PostHog survey as shown in the comments above (this is set up on the PostHog dashboard)
  3. provide Ayo with a trigger that he can link on the PostHog dashboard to prompt the survey

@elias-ba elias-ba assigned elias-ba and unassigned christad92 Jan 15, 2025
@elias-ba elias-ba moved this from Ready to In progress in v2 Jan 15, 2025
@elias-ba elias-ba moved this from In progress to In review in v2 Jan 17, 2025
@github-project-automation github-project-automation bot moved this from In review to Done in v2 Jan 20, 2025
@christad92
Copy link
Author

christad92 commented Jan 21, 2025

@elias-ba @theroinaochieng this is very good work! I have tested this on staging with PostHog but I have feedback. See below:

Image

Can we change this message to "Flag this answer"?

@elias-ba
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants