Skip to content
1 min read · 42 words

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 ​

ParameterType
textsstring[]
kindEncodeKind

Returns ​

Promise<number[][]>