Edgewise API
    Preparing search index...

    Interface EvaluateOptions<Q>

    One thing to judge: a state, with images or audio, or the media alone.

    interface EvaluateOptions<Q extends Record<string, Question>> {
        allowPreview?: boolean;
        audio?: AudioLike;
        device?: DeviceOption;
        dtype?: Dtype | Record<string, Dtype>;
        images?: ImageLike | ImageLike[];
        items?: undefined;
        model?: ModelRef;
        onProgress?: (event: LoadEvent) => void;
        questions: Q;
        sampleRate?: number;
        signal?: AbortSignal;
        state?: unknown;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index
    allowPreview?: boolean

    Allow preview and experimental models.

    audio?: AudioLike

    One audio clip (up to 30 s) to judge along with the state. Needs a model that accepts audio.

    device?: DeviceOption

    Force a device. Default 'auto'.

    dtype?: Dtype | Record<string, Dtype>

    Force a dtype, such as 'q4'.

    images?: ImageLike | ImageLike[]

    Images to judge along with the state, in order. Needs a model that accepts images, such as d1-omni-600m.

    items?: undefined
    model?: ModelRef

    Default model for questions that do not name one.

    onProgress?: (event: LoadEvent) => void

    Receives load events while the model downloads and compiles.

    questions: Q
    sampleRate?: number

    Sample rate of audio when it is a Float32Array at a rate other than 16 kHz.

    signal?: AbortSignal

    Abort download or inference.

    state?: unknown

    What to judge: a string, or JSON (serialized with sorted keys; d1 models read it as JSON). Optional when images or audio are the whole state.