From the course: Prompt Engineering with LangChain
Unlock the full course today
Join today to access over 24,600 courses taught by industry experts.
Agents: Let chains choose tools based on high-level directives
From the course: Prompt Engineering with LangChain
Agents: Let chains choose tools based on high-level directives
- [Instructor] Agents in LangChain are systems that use a language model to interact with tools. they could be used for tasks such as grounded question answering, interacting with APIs, or taking action. LangChain provides a standard interface for agents, a selection of agents to choose from, and example of end-to-end agents. So one thing I want to drive home here is, I know it sounds fancy, but at the end of the day, agents are really nothing more than a prompting strategy. A sophisticated prompting strategy, but at the end of the day, agents are just prompts. So let's talk about the difference between agents and chains. So the core idea of an agent is to use an LLM to choose a sequence of actions. So in chains, a sequence of actions is hard coded through the prompt template, through code. But an agent, a language model, is going to be used as a reasoning engine to determine what actions to take and in which order. So an agent essentially is a language model that is interacting with…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
What is LangChain?4m 54s
-
(Locked)
LangChain overview4m 52s
-
(Locked)
Model I/O: Interface with language models20m 16s
-
(Locked)
Retrieval: Interface with application-specific data13m 35s
-
Chains: Construct sequences of calls15m 13s
-
(Locked)
Agents: Let chains choose tools based on high-level directives11m 4s
-
(Locked)
Memory: Persist application state between runs of a chain8m 16s
-
(Locked)
-
-
-
-
-