Retriever Tool
Overview
The Retriever Tool node allows you to incorporate a retriever as a tool for agents in AnswerAI workflows. This tool enables agents to search and retrieve relevant documents based on a given query, enhancing their ability to access and utilize information.
Key Benefits
- Empowers agents with the ability to search and retrieve relevant information
- Enhances the knowledge base of agents by providing access to stored documents
- Allows for flexible configuration of retriever behavior within agent workflows
How to Use
-
Add the Retriever Tool node to your AnswerAI canvas.
-
Configure the following parameters:
- Retriever Name: Provide a unique name for the retriever tool (e.g., "search_state_of_union").
- Retriever Description: Explain when the agent should use this tool to retrieve documents.
- Retriever: Select the BaseRetriever instance to be used by this tool.
- Return Source Documents: Choose whether to include source document information in the output.
-
Connect the Retriever Tool node to your agent node or other relevant nodes in your workflow.

Retriever Tool node & Drop UI