functai for TypeScript - v0.1.0
    Preparing search index...

    Interface RandomSearchOptions<F, R>

    interface RandomSearchOptions<F = AnyAIFunction, R = Rec> {
        candidates?: number;
        concurrency?: number;
        expected?: Expected<F, R>;
        maxBootstrapped?: number;
        maxLabeled?: number;
        metric?: Metric<R>;
        seed?: number;
        stopAtScore?: number;
        teacher?: string;
        threshold?: number;
        valset?: readonly R[];
    }

    Type Parameters

    Hierarchy (View Summary)

    Index
    candidates?: number

    Bootstrapped candidates besides zero-shot, labeled and bootstrapped (default 8).

    concurrency?: number

    Runs in flight at once (default 4).

    expected?: Expected<F, R>

    Where the right answers are, as in evaluate.

    maxBootstrapped?: number
    maxLabeled?: number
    metric?: Metric<R>

    Which runs are good: (row, outputs) => score; default exact_match against the row's answers.

    seed?: number
    stopAtScore?: number

    Stop once a candidate scores this much.

    teacher?: string

    A stronger model to write the examples ("gpt-4.1"); default the function's own.

    threshold?: number

    A run counts when its score is at least this (default: any score above 0).

    valset?: readonly R[]

    Rows to score candidates on (default: the rows).