0% found this document useful (0 votes)
160 views17 pages

LangChain Academy - Introduction To LangGraph - Motivation

Uploaded by

Quang Tri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
160 views17 pages

LangChain Academy - Introduction To LangGraph - Motivation

Uploaded by

Quang Tri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

LangChain Academy

Introduction to
1
1 Introduction and Basics: Motivation

A solitary language model is fairly limited…

… e.g., access to tools, external context, multi-step workflows.

2
1 Introduction and Basics: Motivation

So, many LLM applications use a control flow …

… with steps pre / post-LLM call (tool calls, retrieval, etc).

Reference:
hps://en.wikipedia.org/wiki/Control_flow 3
hps://github.com/langchain-ai/rag-from-scratch
1 Introduction and Basics: Motivation

This control flow forms a “chain”

Reference:
hps://en.wikipedia.org/wiki/Control_flow 4
hps://blog.langchain.dev/what-is-an-agent/
1 Introduction and Basics: Motivation

Chains are reliable! Same control flow every time.

Reference:
hps://en.wikipedia.org/wiki/Control_flow 5
hps://blog.langchain.dev/what-is-an-agent/
1 Introduction and Basics: Motivation

But, we want LLM systems that can pick their own control flow!

6
1 Introduction and Basics: Motivation

Agent ~= control flow defined by an LLM

7
Reference: hps://blog.langchain.dev/what-is-an-agent/
1 Introduction and Basics: Motivation

Fixed vs LLM-defined control flow

vs

8
Reference: hps://blog.langchain.dev/what-is-an-agent/
1 Introduction and Basics: Motivation

Many kinds of agents!

Reference:
hps://blog.langchain.dev/what-is-a-cognitive-architecture/ 9
hps://x.com/AndrewYNg/status/1801295202788983136
1 Introduction and Basics: Motivation

But, practical challenges.

10
1 Introduction and Basics: Motivation

LangGraph helps you bend the reliability curve

11
1 Introduction and Basics: Motivation

Balance reliability with control

12
1 Introduction and Basics: Motivation

Intuition: Let developer set parts of control flow (reliable)

13
1 Introduction and Basics: Motivation

Intuition: Inject LLM to make it an agent (control)

14
1 Introduction and Basics: Motivation

Express custom control flows as graphs

15
Reference: hps://github.com/langchain-ai/langgraph
1 Introduction and Basics: Motivation

16
Reference: hps://github.com/langchain-ai/langgraph
1 Introduction and Basics: Motivation

Module What you will learn

1: Foundations LangGraph foundations


Chains
Routers
General autonomous agents

2: Memory Agents that remember things

3: Human-In-The-Loop Agents with human oversight

4. Customization Customized, useful agents

17
Reference: hps://github.com/langchain-ai/langgraph

You might also like