argia-migrator - v0.3.0
    Preparing search index...

    Interface Profile<M, F>

    One embedding model and the store that holds its vectors.

    interface Profile<M, F = unknown> {
        dimensions: number;
        name: string;
        store: VectorStore<M, F>;
        embed(texts: string[]): Promise<number[][]>;
    }

    Type Parameters

    • M
    • F = unknown
    Index
    dimensions: number

    Length of every vector embed returns. Checked on every call.

    name: string

    Appears in errors and events. The two profiles must have different names.

    store: VectorStore<M, F>
    • One vector per text, in the same order. Receives every text of one write or backfill call at once, so split the call yourself if your provider caps the batch size.

      Parameters

      • texts: string[]

      Returns Promise<number[][]>