forked from Archives/langchain
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.5 KiB
Markdown
34 lines
1.5 KiB
Markdown
1 year ago
|
# Agent Types
|
||
2 years ago
|
|
||
2 years ago
|
Agents use an LLM to determine which actions to take and in what order.
|
||
1 year ago
|
An action can either be using a tool and observing its output, or returning a response to the user.
|
||
2 years ago
|
Here are the agents available in LangChain.
|
||
2 years ago
|
|
||
1 year ago
|
## `zero-shot-react-description`
|
||
2 years ago
|
|
||
|
This agent uses the ReAct framework to determine which tool to use
|
||
|
based solely on the tool's description. Any number of tools can be provided.
|
||
|
This agent requires that a description is provided for each tool.
|
||
|
|
||
1 year ago
|
## `react-docstore`
|
||
2 years ago
|
|
||
|
This agent uses the ReAct framework to interact with a docstore. Two tools must
|
||
|
be provided: a `Search` tool and a `Lookup` tool (they must be named exactly as so).
|
||
|
The `Search` tool should search for a document, while the `Lookup` tool should lookup
|
||
|
a term in the most recently found document.
|
||
|
This agent is equivalent to the
|
||
|
original [ReAct paper](https://arxiv.org/pdf/2210.03629.pdf), specifically the Wikipedia example.
|
||
|
|
||
1 year ago
|
## `self-ask-with-search`
|
||
2 years ago
|
|
||
|
This agent utilizes a single tool that should be named `Intermediate Answer`.
|
||
|
This tool should be able to lookup factual answers to questions. This agent
|
||
|
is equivalent to the original [self ask with search paper](https://ofir.io/self-ask.pdf),
|
||
|
where a Google search API was provided as the tool.
|
||
1 year ago
|
|
||
|
### `conversational-react-description`
|
||
|
|
||
|
This agent is designed to be used in conversational settings.
|
||
|
The prompt is designed to make the agent helpful and conversational.
|
||
|
It uses the ReAct framework to decide which tool to use, and uses memory to remember the previous conversation interactions.
|