weaviate-agents
    Preparing search index...

    Type Alias QueryAgentSearchOnlyOptions

    Options for QueryAgent.search.

    type QueryAgentSearchOnlyOptions = {
        collections?: (string | QueryAgentCollectionConfig)[];
        diversityWeight?: number;
        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.

    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.