Replies: 1 comment 1 reply
-
To address the issue of modifying the if segmentation["max_tokens"] < 50 or segmentation["max_tokens"] > 1000:
raise ValueError("Custom segment length should be between 50 and 1000.") Modify it to: if segmentation["max_tokens"] < 50 or segmentation["max_tokens"] > 2000:
raise ValueError("Custom segment length should be between 50 and 2000.") After making this change, rebuild your Docker image to include the updated code and redeploy your Dify environment using the updated Docker image. This adjustment should allow the system to accept a Be mindful of the potential performance or system stability implications when increasing the Additionally, ensure that other parts of the Dify codebase that enforce or rely on the Lastly, consider that tests in the Dify codebase validating the
|
Beta Was this translation helpful? Give feedback.
-
Self Checks
Dify version
0.6.6
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
i have modify the max_tokens to 2000 in my localhost,but error happens below:
✔️ Expected Behavior
to modify the custom fo Maximum chunk length from 1000 to 2000
❌ Actual Behavior
nothing changes,still 1000 ,the Maximum chunk length
Beta Was this translation helpful? Give feedback.
All reactions