Skip to content

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

Description

@maifeeulasad

🥰 需求描述

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions