-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
parallel iteration detail log bug report #11117
Comments
The issue you're experiencing with the iteration count in the detailed tracing logs seems to be related to how iteration metadata is being handled and displayed. In Dify, iteration counts are managed through events and metadata, specifically using the The problem might be occurring due to incorrect handling of iteration metadata, where the OCR API call count is being incorrectly added to the document processing iteration count. This could be a bug in how the iteration index is being updated or managed in parallel execution paths. To address this, you might want to check the implementation of the |
@dosu Additional questions: YML files are too large and contain private information, so how do you get them to the author? |
The max parallelism settings you've mentioned (2 for the iteration before and 3 for the iteration after) could be affecting how iterations are processed and logged. When parallelism is enabled, iterations can run concurrently, which might lead to complexities in how iteration counts are tracked and logged, especially if there are issues with synchronization or metadata handling [1]. Regarding sharing YML files that are large and contain private information, here are some best practices:
These steps can help you securely share YML files while protecting private information. |
Did any errors occur during the execution process, or are the errors only shown in the logs? |
@laipz8200 |
Self Checks
Dify version
0.12
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
✔️ Expected Behavior
The OCR API should be called once for each input image.
After searching for related documents, 5 documents should be retrieved (Top-k = 5).
The log should show 3 iterations for the 3 images, and 5 iterations for the 5 retrieved documents.
❌ Actual Behavior
In the detailed tracing logs, the second iteration incorrectly adds the OCR API call count (3), resulting in a total of 8 iterations instead of 5 for document processing.
This discrepancy does not appear in the preview logs, but it is visible in the tracing logs.
The text was updated successfully, but these errors were encountered: