|
11 月之前 | |
---|---|---|
.. | ||
README.md | 11 月之前 | |
langgraph-agent.ipynb | 11 月之前 | |
langgraph-rag-agent-local.ipynb | 11 月之前 | |
langgraph-rag-agent.ipynb | 11 月之前 | |
tool-calling-agent.ipynb | 11 月之前 |
LLM agents use planning, memory, and tools to accomplish tasks.
LangChain offers several different ways to implement agents.
(1) Use AgentExecutor with tool-calling versions of Llama 3.
(2) Use LangGraph, a library from LangChain that can be used to build reliable agents with Llama 3.
AgentExecutor is the runtime for an agent. AgentExecutor calls the agent, executes the actions it chooses, passes the action outputs back to the agent, and repeats.
Our first notebook, tool-calling-agent
, shows how to build a tool calling agent with AgentExecutor and Llama 3.
This shows how to build an agent that uses web search, text2image, image2text, and text2speech tools.
LangGraph is a library from LangChain that can be used to build reliable agents.
LangGraph can be used to build agents with a few pieces:
Our second notebook, langgraph-agent
, shows an alternative way to AgentExecutor to build a Llama 3 powered agent in LangGraph.
It discusses some of the trade-offs between AgentExecutor and LangGraph.
Our third notebook, langgraph-rag-agent
, shows how to apply LangGraph to build advanced Llama 3 powered RAG agents that use ideas from 3 papers:
We implement each approach as a control flow in LangGraph:
We will build from CRAG (blue, below) to Self-RAG (green) and finally to Adaptive RAG (red):
Our fourth notebook, langgraph-rag-agent-local
, shows how to apply LangGraph to build advanced RAG agents using Llama 3 that run locally and reliably.
See this video overview for more detail.