Unable to use knowledge base #13088

Closed
opened 2026-02-21 19:10:31 -05:00 by yindo · 10 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, Self Hosted (Docker)

Steps to reproduce

Image
Image

✔️ Expected Behavior

Regarding the content of the knowledge base, the knowledge base can be used to answer questions. Currently, it is possible to call the knowledge base normally, but if there are any questions, they can be answered

Actual Behavior

Repeated answer “I need to provide more detailed information”, answer without using knowledge base content

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, Self Hosted (Docker) ### Steps to reproduce ![Image](https://github.com/user-attachments/assets/1d78fdd3-d8d1-4731-92df-fe6d0fa502f7) ![Image](https://github.com/user-attachments/assets/acc0fafc-4bcd-45d1-9ea0-cba31208823d) ### ✔️ Expected Behavior Regarding the content of the knowledge base, the knowledge base can be used to answer questions. Currently, it is possible to call the knowledge base normally, but if there are any questions, they can be answered ### ❌ Actual Behavior Repeated answer “I need to provide more detailed information”, answer without using knowledge base content
yindo added the 🐞 bugoutdated labels 2026-02-21 19:10:31 -05:00
yindo closed this issue 2026-02-21 19:10:31 -05:00
Author
Owner

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

There is a known issue in Dify V0.15.3 where the agent mode could not properly retrieve content from the knowledge base, even though the knowledge base worked correctly in direct testing. This might be related to the problem you're experiencing, where the chatbot fails to use the knowledge base content and instead provides generic responses [1].

Additionally, ensure that the knowledge base is properly configured with a detailed description and explicit instructions for retrieval. This helps the LLM understand when to use the knowledge base [2].

If you are experiencing these issues, it is recommended to update to the latest version of Dify, as these issues have been addressed in subsequent updates [1].

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 is a known issue in Dify V0.15.3 where the agent mode could not properly retrieve content from the knowledge base, even though the knowledge base worked correctly in direct testing. This might be related to the problem you're experiencing, where the chatbot fails to use the knowledge base content and instead provides generic responses <sup>[[1]](https://github.com/langgenius/dify/issues/18296)</sup>. Additionally, ensure that the knowledge base is properly configured with a detailed description and explicit instructions for retrieval. This helps the LLM understand when to use the knowledge base <sup>[[2]](https://github.com/langgenius/dify/issues/18331)</sup>. If you are experiencing these issues, it is recommended to update to the latest version of Dify, as these issues have been addressed in subsequent updates <sup>[[1]](https://github.com/langgenius/dify/issues/18296)</sup>. <!-- 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/5c0477f3-74ca-4067-9613-1938ad311656?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/5c0477f3-74ca-4067-9613-1938ad311656?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/5c0477f3-74ca-4067-9613-1938ad311656?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/5c0477f3-74ca-4067-9613-1938ad311656?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/5c0477f3-74ca-4067-9613-1938ad311656?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/5c0477f3-74ca-4067-9613-1938ad311656?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/5c0477f3-74ca-4067-9613-1938ad311656?feedback_type=other)</sup>
Author
Owner

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

What kind of question is that

@shuaidiandian commented on GitHub (Apr 17, 2025): What kind of question is that
Author
Owner

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

Image

@shuaidiandian commented on GitHub (Apr 17, 2025): ![Image](https://github.com/user-attachments/assets/d11a06bc-e8be-4228-8d57-b9373514438d)
Author
Owner

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

In the Agent mode, the model will choose whether to use the knowledge base, and how many times, which is usually because the model is not intelligent enough or the description of the knowledge base is not detailed enough

@crazywoola commented on GitHub (Apr 17, 2025): In the Agent mode, the model will choose whether to use the knowledge base, and how many times, which is usually because the model is not intelligent enough or the description of the knowledge base is not detailed enough
Author
Owner

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

How do I need to adjust? Can I only upgrade to a new version

@shuaidiandian commented on GitHub (Apr 17, 2025): How do I need to adjust? Can I only upgrade to a new version
Author
Owner

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

Multiple calls are not a problem, but ultimately you have to use the knowledge base to answer the question. It is not right to end this conversation without answering or only halfway through

@shuaidiandian commented on GitHub (Apr 17, 2025): Multiple calls are not a problem, but ultimately you have to use the knowledge base to answer the question. It is not right to end this conversation without answering or only halfway through
Author
Owner

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

I have already answered your question yesterday. https://github.com/langgenius/dify/issues/18305 See this thread.
New configurations only applies for the new conversation, if you changed those variables, please restart the conversation.

@crazywoola commented on GitHub (Apr 17, 2025): I have already answered your question yesterday. https://github.com/langgenius/dify/issues/18305 See this thread. New configurations only applies for the new conversation, if you changed those variables, please restart the conversation.
Author
Owner

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

And this is related to the model itself, please provide more details like what kind of model, what parameters are you using, the provided information is insufficient to solve the problems.

@crazywoola commented on GitHub (Apr 17, 2025): And this is related to the model itself, please provide more details like what kind of model, what parameters are you using, the provided information is insufficient to solve the problems.
Author
Owner

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

Image
Image
Image
Yes, I have made the modifications according to your answer, but there will still be the same question. What other information do you need me to provide? I will send it to you

@shuaidiandian commented on GitHub (Apr 17, 2025): ![Image](https://github.com/user-attachments/assets/ab4d34d6-fe99-4480-abbe-66d35c904391) ![Image](https://github.com/user-attachments/assets/8bc9ea1c-3b88-47b3-9135-597a092f34f6) ![Image](https://github.com/user-attachments/assets/96ea14f0-3bcc-4125-8b76-ec8b50e671ef) Yes, I have made the modifications according to your answer, but there will still be the same question. What other information do you need me to provide? I will send it to you
Author
Owner

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

Image

Image
I set it to the maximum or only answer half of the content

@shuaidiandian commented on GitHub (Apr 17, 2025): ![Image](https://github.com/user-attachments/assets/d6443b01-07cc-4bd5-91aa-7f50cdb02828) ![Image](https://github.com/user-attachments/assets/21ffb94c-4b57-44d3-834e-3d8dfd87b799) I set it to the maximum or only answer half of the content
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#13088