citation lost in chatflow #4901

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

Originally created by @ddnoodle on GitHub (Aug 5, 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).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.14

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Create a Chatflow app, using the knowledge retrieval block and LLM to process.
You can see in the dify studio, the main chatflow is running through the yellow line in the picture. The citation is shown in the debug and preview mode correctly.
However, after publish and "run app", there is no citation shown on the chat window using the same query
citation issue 1

✔️ Expected Behavior

The citation should also shown in "Run App" chat session after publishing.

Actual Behavior

There is no citation shown in "Run App" chat session after publishing.

Originally created by @ddnoodle on GitHub (Aug 5, 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] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.14 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Create a Chatflow app, using the knowledge retrieval block and LLM to process. You can see in the dify studio, the main chatflow is running through the yellow line in the picture. The citation is shown in the debug and preview mode correctly. However, after publish and "run app", there is no citation shown on the chat window using the same query ![citation issue 1](https://github.com/user-attachments/assets/103cbb5a-1a80-4e1f-951b-f61459a037c2) ### ✔️ Expected Behavior The citation should also shown in "Run App" chat session after publishing. ### ❌ Actual Behavior There is no citation shown in "Run App" chat session after publishing.
yindo added the 🐞 bug label 2026-02-21 18:08:31 -05:00
yindo closed this issue 2026-02-21 18:08:31 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 5, 2024):

Hello there, @ddnoodle! I'm here to help you with bugs, questions, and contributions. Let's squash those bugs together! 🤖

To resolve the issue where the citation feature in a Chatflow app using Dify version 0.6.14 does not appear in the chat window after publishing, even though it works correctly in debug and preview modes, ensure that the "Citation and Attribution" feature is enabled in the application toolbox.

Here is the relevant section from the documentation:

### Citation and Attribution

When this feature is enabled, the large language model will cite content from the knowledge base when responding to questions. You can view specific citation details below the response, including the original text segment, segment number, and match score.

Additionally, verify that the Popup component responsible for displaying citations is correctly integrated and functioning in the published environment. The Popup component uses the PortalToFollowElem and PortalToFollowElemContent to render citation details. Ensure that these components are not being blocked or misconfigured in the production build [1][2].

If the feature is enabled and the Popup component is correctly configured, but the issue persists, you may need to check for any additional settings or permissions that might be affecting the published environment.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Aug 5, 2024): <!-- Greeting --> Hello there, @ddnoodle! I'm here to help you with bugs, questions, and contributions. Let's squash those bugs together! 🤖 <!-- Answer --> To resolve the issue where the citation feature in a Chatflow app using Dify version 0.6.14 does not appear in the chat window after publishing, even though it works correctly in debug and preview modes, ensure that the "Citation and Attribution" feature is enabled in the application toolbox. Here is the relevant section from the documentation: ```md ### Citation and Attribution When this feature is enabled, the large language model will cite content from the knowledge base when responding to questions. You can view specific citation details below the response, including the original text segment, segment number, and match score. ``` Additionally, verify that the `Popup` component responsible for displaying citations is correctly integrated and functioning in the published environment. The `Popup` component uses the `PortalToFollowElem` and `PortalToFollowElemContent` to render citation details. Ensure that these components are not being blocked or misconfigured in the production build <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/guides/application-orchestrate/app-toolkits/README.md)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/web/app/components/base/chat/chat/citation/popup.tsx)</sup>. If the feature is enabled and the `Popup` component is correctly configured, but the issue persists, you may need to check for any additional settings or permissions that might be affecting the published environment. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@ddnoodle commented on GitHub (Aug 6, 2024):

Issue resolved. Thank you.

@ddnoodle commented on GitHub (Aug 6, 2024): Issue resolved. Thank you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4901