OptionalcollectionsThe collections to query. Either a list of strings, or a list of QueryAgentCollectionConfig objects. Will override any collections passed in the constructor.
OptionaldiversityOptional number between 0.0 and 1.0 to diversify results with MMR reranking. Higher values
push for more topical variety at the cost of relevance. Defaults to no diversity.
OptionalfilteringThe filtering strategy to use for the search. "recall" optimizes for finding all relevant
results (broader retrieval), while "precision" optimizes for accuracy of returned results
(narrower, more targeted retrieval).
OptionallimitThe maximum number of results to return for the first page. Defaults to 20.
Options for QueryAgent.search.