-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The chunk size of the knowledge base cannot be modified through environment variables. #12500
Comments
I found a similar unsolved discussion regarding an issue with modifying the maximum chunk length through environment variables. You can view it here [1]. In your case, it seems that the environment variable change to increase the chunk size limit from 4000 to 8191 is not taking effect in version 0.15.0, whereas it worked in version 0.14.2. This might indicate a change in how environment variables are handled between these versions. Unfortunately, I couldn't find specific documentation or code comments explaining the process of updating configuration settings through environment variables in the current version. You might want to check if there are any recent changes in the codebase related to the chunk size configuration or how environment variables are applied. If the issue persists, consider reviewing the code to ensure that the environment variable is correctly set and applied in the configuration. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Sorry, I made a mistake. It is version 0.14.1. |
dify/web/app/components/datasets/create/step-two/inputs.tsx Lines 41 to 55 in 49feff0
|
Sorry, modifying this file does not take effect. Due to network restrictions, I am unable to rebuild the image. Is there any other way to resolve this issue? Alternatively, could this issue be fixed as soon as possible? |
Self Checks
Dify version
0.15.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
The chunk size of the knowledge base is limited to 4000. I changed the environment variable to 8191, but it didn't take effect; the limit is still 4000. In version 0.14.1, modifying this variable used to work.The size limit for both parent and child chunks is also 4000.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered: