What Is LangGraph?
Explore LangGraph as a dynamic orchestration system that surpasses linear LangChain workflows by managing adaptable, nonlinear AI tasks. Learn how to use agents powered by large language models to create flexible applications that respond in real time to changing inputs and maintain context across interactions.
We'll cover the following...
We have explored how LangChain allows developers to build applications powered by large language models by chaining a sequence of tasks, similar to assembling a row of dominoes, where each task follows the previous one in a neat, predictable order. By now, we can confidently say that it’s ideal for scenarios where the steps are well-defined.
But what if our application needs to be more flexible? What if the flow of tasks isn’t always linear but must adapt based on real-time inputs and changing conditions? This is where LangGraph comes in.
Introduction to LangGraph
LangGraph is the orchestration runtime underneath LangChain: it handles durable execution, streaming, persistence, and human-in-the-loop for stateful systems, including multi-agent and non-agent systems, that handle complex, nonlinear workflows. While LangChain excels at creating linear chains of tasks, LangGraph uses a graph-based approach, allowing applications to dynamically adapt to varying inputs and conditions with greater flexibility. ...