You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to get streaming to work, I came across two large gaps in the streaming functionality: edge traversal visibility and workflow preview capabilities.
Challenges
Limited Edge Traversal Visibility:
Opaque Transitions: The current implementation shows node-level execution details but lacks visibility into edge traversals across the graph.
Conditional Ambiguity: The logic governing node transitions remains obscured, hindering our ability to trace decision paths.
No Pre-Execution Event Insights:
Post-Execution Focus: While the updates and values stream events provide clear visibility on the node execution path and state, respectively, they only provide data after actions are completed, offering no foresight into upcoming tasks.
Here, I can see that retrieve was triggered, and by splitting the triggers up I can ascertain that it was triggered by route_question.
Two issues here:
There was no debug event associated with route_question (I'm seeing this after the fact).
While I can technically extract route_question from this debug event, it doesn't seem to be made easy. It would be great if we had a dedicated key:value pair to look at, or triggers was more structured (and consistent. I've seen a few variations of in the format, sometimes a single node as the trigger, sometimes in a format akin to the above).
Integrate edge traversal and pre-execution data into existing debug streams
Provide structured formats that are easy to parse
While LangGraph's streaming capabilities form a solid foundation, these proposed enhancements would significantly improve workflow transparency and control. Real-time edge traversal insights and pre-execution notifications would empower developers with better debugging and optimisation capabilities while maintaining the platform's core strengths.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
While trying to get streaming to work, I came across two large gaps in the streaming functionality: edge traversal visibility and workflow preview capabilities.
Challenges
Limited Edge Traversal Visibility:
No Pre-Execution Event Insights:
updates
andvalues
stream events provide clear visibility on the node execution path and state, respectively, they only provide data after actions are completed, offering no foresight into upcoming tasks.Examples
From Adaptive RAG,
From the existing streaming logs:
retrieve
was triggered, and by splitting thetriggers
up I can ascertain that it was triggered byroute_question
.Two issues here:
route_question
(I'm seeing this after the fact).route_question
from this debug event, it doesn't seem to be made easy. It would be great if we had a dedicated key:value pair to look at, ortriggers
was more structured (and consistent. I've seen a few variations of in the format, sometimes a single node as the trigger, sometimes in a format akin to the above).This only tells me what happened after
grade_documents
executed. It would be great to know thatgrade_documents
was about to run beforehand.Proposed Enhancements
Edge Traversal Visibility:
from_node
,to_node
).Pre-Execution Event Notifications:
Streamlined Debugging:
debug
streamsWhile LangGraph's streaming capabilities form a solid foundation, these proposed enhancements would significantly improve workflow transparency and control. Real-time edge traversal insights and pre-execution notifications would empower developers with better debugging and optimisation capabilities while maintaining the platform's core strengths.
Beta Was this translation helpful? Give feedback.
All reactions