You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.10.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
I am encountering an issue with Dify version 0.10.2 when attempting to create Knowledge. After uploading a file, I receive an error message indicating a "rules" error. Despite the error, the file upload completes successfully. However, the chunk preview does not display as expected. Here are the details of the error:
The error you're encountering seems to be related to the handling of the rules variable during the knowledge creation process in Dify. The error message IndexingEstimateError with the message 'rules' suggests that there might be an issue with how the rules are being retrieved or applied during the indexing process.
Here are a few things to consider:
Check the get_process_rules Method: The rules variable is defined in the get_process_rules method of the DatasetService class. This method retrieves the latest processing rules for a given dataset. If no specific rules are found, it defaults to the rules defined in DocumentService.DEFAULT_RULES[1].
Ensure Default Rules are Defined: Make sure that the default rules in DocumentService are correctly defined and accessible. The default rules should include pre-processing rules and segmentation settings.
Review the post Method in datasets.py: The post method in datasets.py is responsible for handling the indexing process. The error handling block for IndexingEstimateError suggests that the error might be occurring during the execution of the indexing_runner.indexing_estimate method [2].
Dependencies in Chunk Preview: The rules variable is used in the chunk preview functionality to manage pre-processing rules. Ensure that the functions setRules, getRules, getRulesFromDetail, and resetRules are correctly implemented and that they properly update the rules state [3].
By checking these areas, you might be able to identify where the issue with the rules variable is occurring and resolve the error preventing the chunk preview from displaying.
Self Checks
Dify version
0.10.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
I am encountering an issue with Dify version 0.10.2 when attempting to create Knowledge. After uploading a file, I receive an error message indicating a "rules" error. Despite the error, the file upload completes successfully. However, the chunk preview does not display as expected. Here are the details of the error:
Error Message:
[{"code": "indexing_estimate_error", "message": "'rules'", "status": 500}]
The relevant logs are:
✔️ Expected Behavior
After uploading a file, the system should successfully complete the process and display the chunk preview without any errors.
❌ Actual Behavior
While the file is uploaded successfully, an error message related to "rules" appears, and the chunk preview is not displayed as it should be
The text was updated successfully, but these errors were encountered: