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

[AiChat] Add reference sources of AI response #4930

Closed
yucaowang opened this issue Jan 16, 2025 · 2 comments
Closed

[AiChat] Add reference sources of AI response #4930

yucaowang opened this issue Jan 16, 2025 · 2 comments

Comments

@yucaowang
Copy link

这个功能解决了什么问题

Most RAG based chatbot will show the reference documents or source URLs to users for further information, but currently the ChatItem does not have component to show the reference sources.

你建议的方案是什么

Add a 'sources' field for ChatItem, it could be array of reference sources and each source are clickable.

Copy link
Contributor

👋 @yucaowang,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@zydemail
Copy link
Collaborator

zydemail commented Jan 16, 2025

可以使用chat-item的slot插槽来实现,content插槽内容支持自定义,你可以把引用来源放在content插槽里来写
https://tdesign.tencent.com/chat/components/chat-item

Image

实现效果如官网所示:

Image

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

No branches or pull requests

2 participants