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-Implementation
- max_num_resultsNointegerNo-Max Num Results
- question_transformerNoReference[QuestionTransformer]No--
- document_retrieverNoReference[DocumentRetriever]No--
- document_rerankerNoReference[DocumentReranker]No--
- result_summarizerNoReference[ResultSummarizer]No--
+ nameNostringNo-Name
+ descriptionNostringNo-Description
- loader_root_locationNostringNo-Loader Root Location
- loader_patternNoCombinationNo-Loader Pattern
- document_managerNoReference[DocumentManager]No--
- apuNoReference[APU]No-The APU to use for question transformation.

1. Property implementation

Title: Implementation

Typeconst
RequiredYes

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"}

4. Property document_retriever

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

5. Property document_reranker

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

6. Property result_summarizer

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

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

12. Property apu

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

Description: The APU to use for question transformation.