providerplaneai
    Preparing search index...

    Interface EmbedCapability<TEmbedInput, TOutput>

    Provider-agnostic embedding capability interface.

    Providers that implement this interface can create embeddings for text or other data.

    interface EmbedCapability<TEmbedInput = any, TOutput = any> {
        embed(
            req: AIRequest<TEmbedInput>,
            ctx: MultiModalExecutionContext,
            signal?: AbortSignal,
        ): Promise<AIResponse<TOutput>>;
    }

    Type Parameters

    • TEmbedInput = any

      Input type for embedding

    • TOutput = any

      Output type (vector or array of vectors)

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods

    Methods