The knowledge base stopped halfway through the answer #13074

Closed
opened 2026-02-21 19:10:27 -05:00 by yindo · 4 comments
Owner

Originally created by @shuaidiandian on GitHub (Apr 17, 2025).

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.15.3

Cloud or Self Hosted

Cloud

Steps to reproduce

Image

✔️ Expected Behavior

Normally, one should use a knowledge base to answer questions

Actual Behavior

Actually, the knowledge base was called, but it only ended halfway through the answer

Originally created by @shuaidiandian on GitHub (Apr 17, 2025). ### 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.15.3 ### Cloud or Self Hosted Cloud ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/26202edc-e551-45ca-b4d0-51ecfb3f24da) ### ✔️ Expected Behavior Normally, one should use a knowledge base to answer questions ### ❌ Actual Behavior Actually, the knowledge base was called, but it only ended halfway through the answer
yindo closed this issue 2026-02-21 19:10:27 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 17, 2025):

There are a couple of similar discussions that might be relevant to your issue:

  1. Why cannot find required text from knowledge base in Dify? - This discussion is still open and might provide insights into issues related to retrieving text from the knowledge base [1].

  2. Knowledge-related responses stop in the middle of answers - This is another open discussion that addresses similar issues with responses stopping midway [2].

For Dify version 0.15.3, there was a known issue where the rerank model switch in 'Recall Settings' would automatically turn on when using an external knowledge base, causing empty results. This issue was fixed in a later update [3]. You might want to check if this setting is affecting your responses.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Apr 17, 2025): <!-- Answer --> There are a couple of similar discussions that might be relevant to your issue: 1. [Why cannot find required text from knowledge base in Dify?](https://github.com/langgenius/dify/discussions/10459) - This discussion is still open and might provide insights into issues related to retrieving text from the knowledge base <sup>[[1]](https://github.com/langgenius/dify/discussions/10459)</sup>. 2. [Knowledge-related responses stop in the middle of answers](https://github.com/langgenius/dify/discussions/9379) - This is another open discussion that addresses similar issues with responses stopping midway <sup>[[2]](https://github.com/langgenius/dify/discussions/9379)</sup>. For Dify version 0.15.3, there was a known issue where the rerank model switch in 'Recall Settings' would automatically turn on when using an external knowledge base, causing empty results. This issue was fixed in a later update <sup>[[3]](https://github.com/langgenius/dify/issues/14215)</sup>. You might want to check if this setting is affecting your responses. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/50f736d0-c811-459a-885f-da5332bee92f?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/50f736d0-c811-459a-885f-da5332bee92f?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/50f736d0-c811-459a-885f-da5332bee92f?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/50f736d0-c811-459a-885f-da5332bee92f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/50f736d0-c811-459a-885f-da5332bee92f?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/50f736d0-c811-459a-885f-da5332bee92f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/50f736d0-c811-459a-885f-da5332bee92f?feedback_type=other)</sup>
Author
Owner

@shuaidiandian commented on GitHub (Apr 17, 2025):

The external knowledge base was not used, and the retrieved knowledge base was also uploaded as a file

@shuaidiandian commented on GitHub (Apr 17, 2025): The external knowledge base was not used, and the retrieved knowledge base was also uploaded as a file
Author
Owner

@crazywoola commented on GitHub (Apr 17, 2025):

Image

This is controlled by the max tokens.

@crazywoola commented on GitHub (Apr 17, 2025): <img width="894" alt="Image" src="https://github.com/user-attachments/assets/d492641b-20ba-4897-b0fb-6cf1cc83a601" /> This is controlled by the max tokens.
Author
Owner

@shuaidiandian commented on GitHub (Apr 17, 2025):

Image
It doesn't seem to be useful to make changes, but there is still this problem. After calling the knowledge base twice, it crashed. This is the UI page and console log page

Image

@shuaidiandian commented on GitHub (Apr 17, 2025): ![Image](https://github.com/user-attachments/assets/c1e4083f-2289-4d45-9651-091939ad693c) It doesn't seem to be useful to make changes, but there is still this problem. After calling the knowledge base twice, it crashed. This is the UI page and console log page ![Image](https://github.com/user-attachments/assets/d55b14e4-4e88-4feb-ba77-8be92bb88f0b)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13074