There are 5000 md files stored in my knowledge base. When changing the knowledge base from economical to high quality, the server has problems, so how many files should be placed in the knowledge base #5628

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

Originally created by @9264Yf on GitHub (Sep 14, 2024).

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

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

There are 5000 md files stored in my knowledge base. When changing the knowledge base from economical to high quality, the server has problems, so how many files should be placed in the knowledge base

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @9264Yf on GitHub (Sep 14, 2024). ### 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.8.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce There are 5000 md files stored in my knowledge base. When changing the knowledge base from economical to high quality, the server has problems, so how many files should be placed in the knowledge base ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo closed this issue 2026-02-21 18:11:57 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 14, 2024):

I found a similar solved discussion regarding the number of files in the knowledge base. According to the discussion, there is no specific limit to the number of files that can be set in the knowledge base for the Community Edition [1].

However, there are documented performance benchmarks and limitations for the number of files in the knowledge base. Different subscription plans for the SaaS version limit batch upload numbers, total document uploads, and vector storage [2].

For optimizing performance when switching from 'economical' to 'high quality' mode, you can adjust specific configuration settings or parameters. These include embedding model configuration, retrieval settings (vector search, full-text search, hybrid search), and multi-path retrieval mode. Adjusting parameters like TopK, Score Threshold, and Rerank Model can help improve performance [2][3].

If the server encounters problems with 5000 files, it might be due to resource limitations. Unfortunately, specific server resource requirements (CPU, memory, etc.) for handling large knowledge bases in 'high quality' mode are not documented in the repository. You might need to experiment with fewer files or upgrade your server resources to handle the load better.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Sep 14, 2024): <!-- Answer --> I found a similar solved discussion regarding the number of files in the knowledge base. According to the discussion, there is no specific limit to the number of files that can be set in the knowledge base for the Community Edition <sup>[[1]](https://github.com/langgenius/dify/discussions/7008)</sup>. However, there are documented performance benchmarks and limitations for the number of files in the knowledge base. Different subscription plans for the SaaS version limit batch upload numbers, total document uploads, and vector storage <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/knowledge-base/create-knowledge-and-upload-documents.md)</sup>. For optimizing performance when switching from 'economical' to 'high quality' mode, you can adjust specific configuration settings or parameters. These include embedding model configuration, retrieval settings (vector search, full-text search, hybrid search), and multi-path retrieval mode. Adjusting parameters like TopK, Score Threshold, and Rerank Model can help improve performance <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/knowledge-base/create-knowledge-and-upload-documents.md)</sup><sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/en/guides/knowledge-base/integrate-knowledge-within-application.md)</sup>. If the server encounters problems with 5000 files, it might be due to resource limitations. Unfortunately, specific server resource requirements (CPU, memory, etc.) for handling large knowledge bases in 'high quality' mode are not documented in the repository. You might need to experiment with fewer files or upgrade your server resources to handle the load better. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5628