weaviate-client
    Preparing search index...

    Type Alias GenerateOptions<T, C>

    Options available when defining queries using methods in the collection.generate namespace.

    type GenerateOptions<T, C> = {
        config?: C;
        groupedProperties?: T extends undefined ? string[] : (keyof T)[];
        groupedTask?: string | GroupedTask<T>;
        singlePrompt?: string | SinglePrompt;
    }

    Type Parameters

    • T
    • C
    Index

    Properties

    config?: C
    groupedProperties?: T extends undefined ? string[] : (keyof T)[]

    The properties to use as context to be injected into the groupedTask prompt when performing the grouped generation.

    groupedTask?: string | GroupedTask<T>

    The prompt to use when generating content relevant to objects returned by the query as a whole.

    singlePrompt?: string | SinglePrompt

    The prompt to use when generating content relevant to each object of the collection individually.