Feature: remove documents of which score is below 0.01 from knowledge retrieval #6917

Closed
opened 2026-02-21 18:17:57 -05:00 by yindo · 1 comment
Owner

Originally created by @jasonkang14 on GitHub (Nov 24, 2024).

Self Checks

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

1. Is this request related to a challenge you're experiencing? Tell me about your story.

When performing knowledge searches, there are instances where documents with scores below 0.01 are retrieved, as their scores are non-zero but extremely low (e.g., 0.00051512). I would like to propose a feature that checks the scores of retrieved documents and excludes those where the rounded value of the score is 0.00.

Would your team be open to a pull request for this enhancement?

Screenshot 2024-11-25 at 10 53 34 AM

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @jasonkang14 on GitHub (Nov 24, 2024). ### Self Checks - [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. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. When performing knowledge searches, there are instances where documents with scores below 0.01 are retrieved, as their scores are non-zero but extremely low (e.g., 0.00051512). I would like to propose a feature that checks the scores of retrieved documents and excludes those where the rounded value of the score is 0.00. Would your team be open to a pull request for this enhancement? <img width="913" alt="Screenshot 2024-11-25 at 10 53 34 AM" src="https://github.com/user-attachments/assets/db1530ab-1331-4651-a012-4b92ea14f646"> ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [X] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:17:57 -05:00
yindo closed this issue 2026-02-21 18:17:57 -05:00
Author
Owner

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

Hi, @jasonkang14. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You suggested a feature to exclude documents with scores below 0.01 from knowledge retrieval results.
  • You expressed willingness to contribute by submitting a pull request.
  • There has been no further activity or comments on the issue.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of the Dify repository by commenting here.
  • If there is no further input, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Dec 26, 2024): Hi, @jasonkang14. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - You suggested a feature to exclude documents with scores below 0.01 from knowledge retrieval results. - You expressed willingness to contribute by submitting a pull request. - There has been no further activity or comments on the issue. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of the Dify repository by commenting here. - If there is no further input, this issue will be automatically closed in 15 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6917