promptflow
promptflow copied to clipboard
[Feature Request] Optimization for conditional control.
Is your feature request related to a problem? Please describe. Hi team,
I found prompt flow is really convenient for debugging, especially for turning the prompts.
But I feel the if/else is not very easy to be implemented in prompt flow.
I have followed the wiki to create a conditional control. https://microsoft.github.io/promptflow/how-to-guides/add-conditional-control-to-a-flow.html
The flow is as follow.
This is not my expected flow.
I would like the node D not to be triggered when node C is not executed.
Describe the solution you'd like Is it possible to not to trigger the node if any of the input is not executed.
Describe alternatives you've considered
Or is it possible to add custom filter here like (!=, is null) thus I can use it to check whether to run node D.
Since the output will be empty if node C is not executed.
For now, I need to check node B's result for all nodes which used the result of node A.
Additional context Please let me know if you have any other suggestions for my scenario. Thank you!