langgraph/how-tos/branching/ #540
Replies: 12 comments 13 replies
-
Hi i am implementing this parallel tool calling but it raises exception mermaid syntax for diagram |
Beta Was this translation helpful? Give feedback.
-
Thanks for these wonderful guildes. I got a quesiton on the state update. So what is happening under the hood? |
Beta Was this translation helpful? Give feedback.
-
When it comes to executing langchain chains, is it possible to execute parallel calling with these graph structure? |
Beta Was this translation helpful? Give feedback.
-
I have been trying to execute this kind of structure via streaming_events but it does not work. the answer is always waited to be finished, before showing it: try: |
Beta Was this translation helpful? Give feedback.
-
May I ask regarding the "Parallel node fan-out and fan-in with extra steps", what is the point of having parallel paths if both branches share the same state? I mean if "C" sees not only "A", but also the change made in "B". I mean in here:
|
Beta Was this translation helpful? Give feedback.
-
I found an interesting unexpected behaviour: In the basic fan-out and fan-in case, the method 1 and method 2 shown below do exactly the same thing.
Output from method 1 and method 2 are identical
However, in the fan-out and fan-in with extra steps, method 1 and method 2 (below) give different output
The output:
|
Beta Was this translation helpful? Give feedback.
-
In Parallel node fan-out and fan-in with extra steps。 It seems that b2 needs to be executed after c is completed I expect the execution of b and b2 to be independent of c. Should I use subgraph? |
Beta Was this translation helpful? Give feedback.
-
Is it possible to define how each Node transforms the state rather than defining it globally within the global Graph State? |
Beta Was this translation helpful? Give feedback.
-
another interesting behaviour, if i do
instead of
then d is executed twice and doesn't wait for both to complete |
Beta Was this translation helpful? Give feedback.
-
I have solved this problem. ValueError: Already found path for node 'page_element_extractor_node'. |
Beta Was this translation helpful? Give feedback.
-
parallel paths for execution entails, any given instance of workflow may have 2 or more current nodes of execution and therefore 2 or more rejoin-points, |
Beta Was this translation helpful? Give feedback.
-
Correct me if im wrong, but I tested out the below code with some time delay to see whether the parallel nodes (which do run parallely) run in a fashion that if one finishes then it moves ahead to the next node. But I observed that the nodes at a particular parallel layer wait until both finished. Why is this happening. You can observe this in the following example. How can make two branches run in a way that they run parallely and "asynchronously".
|
Beta Was this translation helpful? Give feedback.
-
langgraph/how-tos/branching/
Build language agents as graphs
https://langchain-ai.github.io/langgraph/how-tos/branching/
Beta Was this translation helpful? Give feedback.
All reactions