Skip to content

RetrieverAgent

Description: A RetrieverAgent is an agent that will take a query, rewrite it for better similarity vector search, and then perform the vector search on the document store. The agent will dynamically load and embed files, so it is not performant for loading large bodies of files, but performs very well for small to medium-sized document stores (hundreds to thousands of documents) which are updating frequently.

PropertyPatternTypeDeprecatedDefinitionTitle/Description
- implementationNoconstNo-RetrieverAgent
- max_num_resultsNointegerNo-Max Num Results
- question_transformerNoReference[QuestionTransformer]NoIn QuestionTransformerOverview of QuestionTransformer components
- document_retrieverNoReference[DocumentRetriever]NoIn DocumentRetrieverOverview of DocumentRetriever components
- document_rerankerNoReference[DocumentReranker]NoIn DocumentRerankerOverview of DocumentReranker components
- result_summarizerNoReference[ResultSummarizer]NoIn ResultSummarizerOverview of ResultSummarizer components
+ nameNostringNo-Name
+ descriptionNostringNo-Description
- loader_root_locationNostringNo-Loader Root Location
- loader_patternNoCombinationNo-Loader Pattern
- document_managerNoReference[DocumentManager]NoIn DocumentManagerOverview of DocumentManager components
- apuNoReference[APU]NoIn APU
The APU is the main interface for the Agent to interact with the LLM.
The APU provides a set of capabilities that encapsulate LLM functionality and creates a clear separation between business logic and the underlying LLM implementation.

To learn more, check out our blog article APU: What is it and how does it work?.

1. Property implementation

Typeconst
RequiredNo

Description: RetrieverAgent

Specific value: "RetrieverAgent"

2. Property max_num_results

Title: Max Num Results

Typeinteger
RequiredNo
Default10

Description: The maximum number of results to consider.

3. Property question_transformer

TypeReference[QuestionTransformer]
RequiredNo
Default{"implementation": "QuestionTransformer"}
Defined inQuestionTransformer

Description: Overview of QuestionTransformer components

4. Property document_retriever

TypeReference[DocumentRetriever]
RequiredNo
Default{"implementation": "DocumentRetriever"}
Defined inDocumentRetriever

Description: Overview of DocumentRetriever components

5. Property document_reranker

TypeReference[DocumentReranker]
RequiredNo
Default{"implementation": "DocumentReranker"}
Defined inDocumentReranker

Description: Overview of DocumentReranker components

6. Property result_summarizer

TypeReference[ResultSummarizer]
RequiredNo
Default{"implementation": "ResultSummarizer"}
Defined inResultSummarizer

Description: Overview of ResultSummarizer components

7. Property name

Title: Name

Typestring
RequiredYes

Description: The name of the document store to use.

8. Property description

Title: Description

Typestring
RequiredYes

Description: A detailed description of the the retriever including all necessary information for the calling agent to decide to call this agent, i.e. file type or location or etc…

9. Property loader_root_location

Title: Loader Root Location

Typestring
RequiredNo
Defaultnull

Description: A URL specifying the root location of the loader.

10. Property loader_pattern

Title: Loader Pattern

Typecombining
RequiredNo
Additional properties[Any type: allowed]
Default"**/*"

Description: The search pattern to use when loading files.

Any of(Option)
item 0
item 1

10.1. Property item 0

Typestring
RequiredNo

10.2. Property item 1

Typenull
RequiredNo

11. Property document_manager

TypeReference[DocumentManager]
RequiredNo
Defaultnull
Defined inDocumentManager

Description: Overview of DocumentManager components

12. Property apu

TypeReference[APU]
RequiredNo
Default{"implementation": "APU"}
Defined inAPU

Description: The APU is the main interface for the Agent to interact with the LLM. The APU provides a set of capabilities that encapsulate LLM functionality and creates a clear separation between business logic and the underlying LLM implementation.

To learn more, check out our blog article APU: What is it and how does it work?.