Can the Top K value for the knowledge base be set to more than 10? #7242

Closed
opened 2026-02-21 18:19:36 -05:00 by yindo · 3 comments
Owner

Originally created by @kevintsai1202 on GitHub (Dec 17, 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.

We want to include products in the knowledge base for users to query. Some conditions may return more than 10 results, and if the maximum value is limited to 10, many products will be omitted. We hope the maximum Top K value can be increased to 50–100.

2. Additional context or comments

圖片

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @kevintsai1202 on GitHub (Dec 17, 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. We want to include products in the knowledge base for users to query. Some conditions may return more than 10 results, and if the maximum value is limited to 10, many products will be omitted. We hope the maximum Top K value can be increased to 50–100. ### 2. Additional context or comments ![圖片](https://github.com/user-attachments/assets/6e22c49a-063c-4133-b0c2-a6f557175090) ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:19:36 -05:00
yindo closed this issue 2026-02-21 18:19:36 -05:00
Author
Owner

@kevintsai1202 commented on GitHub (Dec 25, 2024):

Is there a chance to implement this enhancement?

@kevintsai1202 commented on GitHub (Dec 25, 2024): Is there a chance to implement this enhancement?
Author
Owner

@shujun1992 commented on GitHub (Dec 26, 2024):

same issue

@shujun1992 commented on GitHub (Dec 26, 2024): same issue
Author
Owner

@SamJo2023 commented on GitHub (Sep 11, 2025):

Hello, I also encount this issue. Did you find a way to implement this?

@SamJo2023 commented on GitHub (Sep 11, 2025): Hello, I also encount this issue. Did you find a way to implement this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7242