Workflow Batch run CSV template does not include include template details for images
Self Checks
- [X] This is only for bug report, if you would like to ask a quesion, please head to Discussions.
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [X] Pleas do not modify this template :) and fill in all the required fields.
Dify version
0.6.7
Cloud or Self Hosted
Cloud
Steps to reproduce
- Make a workflow with image vision features enabled
- Connect a vision model
- Publish app and go to "Run App"
- Go to Run Batch
- Download template. Template does not include details on how to batch run with images
✔️ Expected Behavior
- Expected template to reflect the same variables as the input variables in the "Run once" variables form
❌ Actual Behavior
- Image missing from CSV template
The issue you're experiencing with the Workflow Batch run CSV template not including details for images, despite setting up a workflow with image vision features, is indeed unexpected. The template should ideally reflect all input variables, including those for image uploads, as seen in the "Run once" form.
This problem likely arises from the way the system handles file uploads in batch operations. Handling file uploads, especially images, through a CSV template introduces complexities, such as how to represent and manage file data for multiple uploads. The system's current setup might not support including image upload fields in the CSV template due to these challenges.
To address this, a workaround involves adjusting the workflow's handling of image files to ensure they are properly formatted and processed. This might require custom handling within the workflow's logic to accommodate image inputs in batch runs, potentially by treating them as special cases or using alternative methods for including image data.
Unfortunately, there are no immediate fixes or updates available for this issue in Dify version 0.6.7. It seems to be an oversight in the current version's functionality regarding batch processing with images. For now, exploring alternative methods to include image data in your batch operations or awaiting future updates that might address this limitation would be advisable.
If you need further assistance or have more questions, feel free to ask.
Details
Sources
- en/features/workflow/introduce.md
- web/app/components/workflow/nodes/tool/use-config.ts
- api/core/workflow/workflow_engine_manager.py
- web/app/components/workflow/nodes/_base/components/before-run-form/form-item.tsx
- web/app/components/share/text-generation/run-once/index.tsx
- web/app/components/workflow/nodes/_base/components/before-run-form/index.tsx
About Dosu This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.