How can I display the content I provide in a format that indicates citation and attribution? #4792

Closed
opened 2026-02-21 18:08:03 -05:00 by yindo · 3 comments
Owner

Originally created by @Leekinxun on GitHub (Jul 26, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.15

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

I would like to display the content I specify in my workflow in a format that indicates citation and attribution. Currently, I have implemented a tool that returns the specified text. I would like to include the citation details of the specified source at the end of the tool's output.

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @Leekinxun on GitHub (Jul 26, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.15 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce I would like to display the content I specify in my workflow in a format that indicates citation and attribution. Currently, I have implemented a tool that returns the specified text. I would like to include the citation details of the specified source at the end of the tool's output. ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 18:08:03 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jul 26, 2024):

To display the content you provide in a format that indicates citation and attribution in your Dify version 0.6.15 self-hosted workflow, you need to enable the citation attribution feature. Here are the steps to do so:

  1. Navigate to 工作室 (Studio).
  2. Go to 添加功能 (Add Function).
  3. Enable the 引用归属 (Citation Attribution) feature.

Once this feature is enabled, the tool will automatically include citation details such as the original text segment, segment number, and match score at the end of the output when the large language model references content from the knowledge base.

Here is a visual guide from the documentation:

### 2 引用与归属

在应用内测试知识库效果时,你可以进入 **工作室 -- 添加功能 -- 引用归属**,打开引用归属功能。

<figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>打开引用与归属功能</p></figcaption></figure>

开启功能后,当大语言模型回复问题时引用来自知识库的内容时,可以在回复内容下面查看到具体的引用段落信息,包括**原始分段文本、分段序号、匹配度**等。点击引用分段上方的 **跳转至知识库 ,**可以快捷访问该分段所在的知识库分段列表,方便开发者进行调试编辑。

<figure><img src="../../.gitbook/assets/image (2) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>查看回复内容的引用信息</p></figcaption></figure>

By following these steps, you will ensure that citation details are included in the tool's output [1].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Jul 26, 2024): <!-- Answer --> To display the content you provide in a format that indicates citation and attribution in your Dify version 0.6.15 self-hosted workflow, you need to enable the citation attribution feature. Here are the steps to do so: 1. Navigate to **工作室 (Studio)**. 2. Go to **添加功能 (Add Function)**. 3. Enable the **引用归属 (Citation Attribution)** feature. Once this feature is enabled, the tool will automatically include citation details such as the original text segment, segment number, and match score at the end of the output when the large language model references content from the knowledge base. Here is a visual guide from the documentation: ```md ### 2 引用与归属 在应用内测试知识库效果时,你可以进入 **工作室 -- 添加功能 -- 引用归属**,打开引用归属功能。 <figure><img src="../../.gitbook/assets/image (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>打开引用与归属功能</p></figcaption></figure> 开启功能后,当大语言模型回复问题时引用来自知识库的内容时,可以在回复内容下面查看到具体的引用段落信息,包括**原始分段文本、分段序号、匹配度**等。点击引用分段上方的 **跳转至知识库 ,**可以快捷访问该分段所在的知识库分段列表,方便开发者进行调试编辑。 <figure><img src="../../.gitbook/assets/image (2) (1) (1) (1) (1) (1) (1) (1) (1).png" alt=""><figcaption><p>查看回复内容的引用信息</p></figcaption></figure> ``` By following these steps, you will ensure that citation details are included in the tool's output <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/zh_CN/guides/knowledge-base/retrieval_test_and_citation.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Jul 26, 2024):

Close as off topic.

@crazywoola commented on GitHub (Jul 26, 2024): Close as off topic.
Author
Owner

@Leekinxun commented on GitHub (Jul 26, 2024):

@dosu
I would like to return the content I specify in a citation and attribution format without using a knowledge base.

@Leekinxun commented on GitHub (Jul 26, 2024): @dosu I would like to return the content I specify in a citation and attribution format without using a knowledge base.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4792