Skip to content

feat: add ai chatbot to member profile 🤖#588

Merged
ramiAbdou merged 22 commits intocolorstackorg:mainfrom
Boris713:main
Nov 9, 2024
Merged

feat: add ai chatbot to member profile 🤖#588
ramiAbdou merged 22 commits intocolorstackorg:mainfrom
Boris713:main

Conversation

@Boris713
Copy link
Contributor

Description ✏️

Closes #541

Describe what this PR does.

  • Adds new tab/page for AI chat bot in member profiles
  • Allows users to ask questions and have the ai answer them based off info from slack
Screenshot 2024-10-26 at 7 33 59 PM

Type of Change 🐞

  • Feature - A non-breaking change which adds functionality.
  • Fix - A non-breaking change which fixes an issue.
  • Refactor - A change that neither fixes a bug nor adds a feature.
  • Documentation - A change only to in-code or markdown documentation.
  • Tests - A change that adds missing unit/integration tests.
  • Chore - A change that is likely none of the above.

Checklist ✅

  • I have done a self-review of my code.
  • I have manually tested my code (if applicable).
  • I have added/updated any relevant documentation (if applicable).

Areas of Interest 👀

  • I want to ensure exporting of AnswerMemberProfileQuestion is done correctly. specifically using member-profile.server.ts
  • Unable to test directly due to not having API credits. Although it should work, would be good to test.
  • Order of icons in sidebar

Copy link
Collaborator

@tomas-salgado tomas-salgado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work @Boris713! The UI looks great. I wasn't able to test it fully because I don't have access to all of the embeddings for the Slack messages, but I'll ping Rami and he'll be able to help with this.

Just left a couple of minor comments, after that this should be good for a final review

@tomas-salgado tomas-salgado added the Bloomberg This issue is reserved for the Bloomberg Mentorship Program label Oct 27, 2024
@Boris713
Copy link
Contributor Author

Fixed! can I get a LGTM?

Copy link
Collaborator

@tomas-salgado tomas-salgado left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@tomas-salgado tomas-salgado added the Ready ✅ This PR is ready for a final review. label Oct 28, 2024
Copy link
Member

@ramiAbdou ramiAbdou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, @Boris713! 🚀

I made some updates and wanted to summarize them here:

  • Since we're going to be rendering the response in the UI and not Slack, we needed to do some additional formatting of the Slack answer such that we can make the UI dynamic. For example, in order to render the "reference links" we need to parse the string into multiple "parts", when of them being a reference which our UI can now then work off of.
  • The UI is updated such that it supports the above, and also it has a couple suggested prompts that the user can work off. We also now have a custom loading state since the response can take many seconds to come up.
  • We'll cache the last question/answer that was asked for an hour so that the member doesn't lose it if they navigate away.

I'm going to follow up with some additional formatting for the sources that it retrieved the answer to as well. Take a look!

Screenshot 2024-11-07 at 4 18 29 PM

Screenshot 2024-11-07 at 4 16 22 PM

@ramiAbdou ramiAbdou changed the title feat: implement ai chat bot 🤖 feat: implement ai chatbot in member profile 🤖 Nov 9, 2024
@ramiAbdou ramiAbdou changed the title feat: implement ai chatbot in member profile 🤖 feat: add ai chatbot in member profile 🤖 Nov 9, 2024
@ramiAbdou ramiAbdou changed the title feat: add ai chatbot in member profile 🤖 feat: add ai chatbot to member profile 🤖 Nov 9, 2024
@ramiAbdou ramiAbdou merged commit 328a308 into colorstackorg:main Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bloomberg This issue is reserved for the Bloomberg Mentorship Program Ready ✅ This PR is ready for a final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add AI Chatbot in Member Profile 🤖

3 participants