SAP AI SDK for JavaScript - v2.15.0
    Preparing search index...

    Class AzureOpenAiEmbeddingClient

    LangChain embedding client for Azure OpenAI consumption on SAP BTP.

    Hierarchy

    • Embeddings
      • AzureOpenAiEmbeddingClient
    Index
    caller: AsyncCaller

    The async caller should be used by subclasses to make any async calls, which will thus benefit from the concurrency and retry logic.

    modelVersion?: string
    resourceGroup?: string
    • Embed a list of document chunks. All chunks are embedded in one batch.

      Parameters

      • documents: string[]

        Document chunks to embed.

      Returns Promise<number[][]>

      Embeddings.

    • Embed a single string.

      Parameters

      • input: string

        Input string to embed.

      Returns Promise<number[]>

      Embedding.