@weaviate/agents
    Preparing search index...

    Type Alias QueryAgentSearchOnlyOptions

    Options for QueryAgent.search.

    type QueryAgentSearchOnlyOptions = {
        collections?: (string | QueryAgentCollectionConfig)[];
        diversityWeight?: number;
        effort?: "medium" | "high" | "ultrahigh";
        filtering?: "recall" | "precision";
        limit?: number;
    }
    Index

    Properties

    collections?: (string | QueryAgentCollectionConfig)[]

    The collections to query. Either a list of strings, or a list of QueryAgentCollectionConfig objects. Will override any collections passed in the constructor.

    diversityWeight?: number

    Optional 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.

    effort?: "medium" | "high" | "ultrahigh"

    The amount of effort the agent should put into the search. One of "medium", "high", or "ultrahigh". Higher effort may improve result quality at the expense of increased latency and cost.

    filtering?: "recall" | "precision"

    The 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).

    limit?: number

    The maximum number of results to return for the first page. Defaults to 20.