Skip to content

Interface: BoundEmbeddingModel

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / BoundEmbeddingModel

Defined in: src/types/provider.ts:337

Bound embedding model interface.

Represents an embedding model bound to a specific model ID, ready to generate embeddings.

TParams = unknown

Provider-specific parameter type

readonly dimensions: number

Defined in: src/types/provider.ts:351

Output embedding dimensions


readonly maxBatchSize: number

Defined in: src/types/provider.ts:345

Maximum number of inputs per batch request


readonly maxInputLength: number

Defined in: src/types/provider.ts:348

Maximum length of input text in tokens


readonly modelId: string

Defined in: src/types/provider.ts:339

The model identifier


readonly provider: EmbeddingProvider<TParams>

Defined in: src/types/provider.ts:342

Reference to the parent provider

embed(request): Promise<EmbeddingResponse>

Defined in: src/types/provider.ts:359

Execute embedding request.

EmbeddingRequest<TParams>

The embedding request

Promise<EmbeddingResponse>

Promise resolving to embedding response