-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Using a parallel connection to connect two code executors after LLM can cause problems #8453
Comments
Hello @massif-01! I'm here to assist you with bug reports, answer questions, and help you become a contributor. Let me know how I can help while you wait for a human maintainer. I found a similar unsolved discussion regarding issues with parallel execution in Dify version 0.8.0. You can check it out here [1]. To resolve the error in Dify 0.8.2 when using parallel code executors after LLM to extract different contents from JSON, ensure that the JSON structure and types match the expected schema defined in the Here are some key constraints and checks performed in the
Here is an example of how you might adjust your JSON data to fit these constraints: {
"example_string": "This is a valid string",
"example_number": 123,
"example_float": 123.45,
"example_array_numbers": [1, 2, 3],
"example_array_strings": ["one", "two", "three"],
"example_object": {
"nested_string": "Nested string",
"nested_number": 456
},
"example_array_objects": [
{"nested_string": "Object 1"},
{"nested_string": "Object 2"}
]
} Ensure that your JSON data adheres to these constraints and types to avoid errors during the transformation process [2]. Additionally, there are specific configuration settings or parameters that need to be adjusted for parallel execution in Dify:
These settings help in configuring the parallel execution environment in Dify [3][4]. |
Self Checks
Dify version
0.8.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
When I use LLM to write outline, output json, and use two code executors in parallel after LLM to separately extract different contents in json, Dify reports error as follows: Node beginning extraction related parallel not found or incorrectly connected to multiple parallel branches. After testing, there is no problem with the code, because Dify will not report errors when not using parallel mode. And in 0.8.1, such an orchestration design does not report an error and can run normally.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered: