Knowledge base score filter not working properly: setting threshold to 0.6 returns no results while chatflow recall works fine #19187

Closed
opened 2026-02-21 19:56:45 -05:00 by yindo · 0 comments
Owner

Originally created by @shutong2199 on GitHub (Oct 13, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.7.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When the score value is set to 0 in the knowledge base, I can still see answers with a score of 0.95 in the same recall test. I want to filter out answers with a score below 0.6, but after setting it to 0.6, the recall test shows no answers. However, in the recall settings of the chatflow node, it is possible to recall answers with a score above 0.6 by setting the score to 0.6. This issue only occurs in the knowledge base module and does not take effect.

Image
Image
Image
Image

✔️ Expected Behavior

I expect the knowledge base's recall test to correctly display answers whose scores are higher than the threshold I set.

Actual Behavior

No response

Originally created by @shutong2199 on GitHub (Oct 13, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.7.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When the score value is set to 0 in the knowledge base, I can still see answers with a score of 0.95 in the same recall test. I want to filter out answers with a score below 0.6, but after setting it to 0.6, the recall test shows no answers. However, in the recall settings of the chatflow node, it is possible to recall answers with a score above 0.6 by setting the score to 0.6. This issue only occurs in the knowledge base module and does not take effect. ![Image](https://github.com/user-attachments/assets/de2e419b-13f9-48cc-8b58-3ae9398f39d4) ![Image](https://github.com/user-attachments/assets/dbffd190-c1f2-409d-9e3e-6096c9ee41d1) ![Image](https://github.com/user-attachments/assets/77f35577-a182-4176-9a06-b5562ded7fa7) ![Image](https://github.com/user-attachments/assets/456ab569-fa49-4483-ad2a-b906932ccbad) ### ✔️ Expected Behavior I expect the knowledge base's recall test to correctly display answers whose scores are higher than the threshold I set. ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 19:56:45 -05:00
yindo closed this issue 2026-02-21 19:56:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#19187