weaviate-agents
    Preparing search index...

    Type Alias QueryAgentSearchOnlyOptions

    Options for QueryAgent.search.

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

    limit?: number

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