How to define routing from multiple fan-in nodes to multiple fan-out nodes #1105
Unanswered
hasansalimkanmaz
asked this question in
Q&A
Replies: 2 comments
-
@vbarda any suggestions on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@hwchase17 any suggestions on this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my graph, I have some validation checks that I would like to run in parallel to save some time. Later on, based on these checks. I would like to either run a predefined answer or an LLM-generated answer. So, I need a conditional edge(s) that routes the fan-in nodes to fan-out nodes. The only requirement is to validate all checks in parallel, wait until they are done, and then route them to the right fan-out node. I couldn't find a suggestion on tutorials.
Example
My workaround at the moment is to put an empty node in between fan-in and fan-out nodes which does nothing apart from ensuring all checks are done and have a conditional edge from this node to fan-out nodes. Though it does the job, it seems unintuitive. Am I missing some best practices here or is it the only way to go forward?
Beta Was this translation helpful? Give feedback.
All reactions