feat: add ai chatbot to member profile 🤖#588
Merged
ramiAbdou merged 22 commits intocolorstackorg:mainfrom Nov 9, 2024
Merged
Conversation
tomas-salgado
requested changes
Oct 27, 2024
Collaborator
tomas-salgado
left a comment
There was a problem hiding this comment.
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
Contributor
Author
|
Fixed! can I get a LGTM? |
commit changes
ramiAbdou
approved these changes
Nov 9, 2024
Member
ramiAbdou
left a comment
There was a problem hiding this comment.
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
referencewhich 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!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description ✏️
Closes #541
Describe what this PR does.
Type of Change 🐞
Checklist ✅
Areas of Interest 👀