Using RunnablePassthrough/Parallel to Extract and Inject Values in a Chain #28494
Unanswered
ericwood73
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Checked other resources
Commit to Help
Example Code
Description
I'm working on a recovery wrapper using langgraph/langchain that can take a sequence of steps (each a chain) run them and if there is an error or a check fails, route the problem to an llm which can identify the step that introduced the problem, recommend corrective action, and route the error back to the step to correct. To do this I need a chain that can do several things at once:
This is the structure I have come up with for the chain. Do you see any way to simplify other than using intermediate variables to represent some of the structure? Am I using RunnableParallel and RunnablePassthrough correctly. I appreciate the help. I plan to open source this to the benefit of the langgraph/chain community once I have it stable.
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies
Beta Was this translation helpful? Give feedback.
All reactions