Human-in-the-Loop

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Human-in-the-Loop

Large language models are amazing in what they can do but aren’t perfect. You don’t have to use them for very long before you find them hallucinating, confidently telling you something you know to be false. While letting LLMs make some decisions is fine, it’d be unwise to naively accept everything an LLM chooses to do. That’s why it’s important to keep a human in the loop when it comes to sensitive decisions.

memory = MemorySaver()
app = graph.compile(checkpointer=memory, interrupt_before=["node_3"])
app.invoke(None, config=thread)
See forum comments
Download course materials from Github
Previous: Structured Output Demo Next: Human-in-the-Loop Demo