Skip to content
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

👑 [需求] renders sources and related content as per message item #332

Open
maifeeulasad opened this issue Nov 7, 2024 · 0 comments · May be fixed by #339
Open

👑 [需求] renders sources and related content as per message item #332

maifeeulasad opened this issue Nov 7, 2024 · 0 comments · May be fixed by #339

Comments

@maifeeulasad
Copy link

🥰 需求描述

Add a feature to the chat component that renders sources and related content. Having dedicated fields for reference sources and additional resources would be highly valuable, as it allows us to present the origin of the information and any related content that might enhance understanding.

🧐 解决方案

Introduce fields within the chat component for citing sources and displaying related content. For instance, each message could have a small icon indicating a source, and when clicked, it would reveal the source link or any supplementary content relevant to the topic. Additionally, we could show related content below the message bubble, helping users quickly access further information or verify the accuracy of the message.

🚑 其他信息

The example screenshot below illustrates how the source icon and related content display might look in the chat interface.

snap from gemini.google.com, i have no right over this webpage

A new field will be added called sources as part of each messages which will be optional and will have a type of ISource which will contain necessary informations related to the source.

Willing to work on this.

maifeeulasad added a commit to maifeeulasad/pro-chat that referenced this issue Nov 23, 2024
maifeeulasad added a commit to maifeeulasad/pro-chat that referenced this issue Nov 23, 2024
maifeeulasad added a commit to maifeeulasad/pro-chat that referenced this issue Nov 23, 2024
@maifeeulasad maifeeulasad linked a pull request Nov 23, 2024 that will close this issue
maifeeulasad added a commit to maifeeulasad/pro-chat that referenced this issue Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant