Type Alias: VectorEncoderFn
ts
type VectorEncoderFn = (
texts: string[],
kind: EncodeKind,
) => Promise<number[][]>;Defined in: src/batteries/vector/types.ts:60
The BYO text-to-vector contract. Batch-shaped: one round-trip for many texts.
Parameters
| Parameter | Type |
|---|---|
texts | string[] |
kind | EncodeKind |
Returns
Promise<number[][]>