Replies: 1 comment 2 replies
-
this is my go-to: add a human node that doesnt do anything, but instead user input just updates state as that node: https://langchain-ai.github.io/langgraph/how-tos/human_in_the_loop/wait-user-input/ |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on building an agent using RAG and I want to incorporate human feedback as an indicator for the LLM. For instance, if I think the agent doesn't provide the correct answer, it should be able to call the RAG or another tool to try again based on my suggestions. I reviewed the tutorial for human-in-the-loop, but it initiates a new for loop each time a human adds a new message, like this:
I'm wondering if there's a way to maintain everything within a single loop, such as:
Beta Was this translation helpful? Give feedback.
All reactions