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

    Class AzureOpenAiEmbeddingClient

    LangChain embedding client for Azure OpenAI consumption on SAP BTP.

    Hierarchy

    • Embeddings
      • AzureOpenAiEmbeddingClient
    Index

    Constructors

    • Parameters

      • fields: AzureOpenAiEmbeddingModelParams
      • Optionaldestination:
            | never
            | Without<HttpDestination> & DestinationFetchOptions & {
                serviceBindingTransformFn?: ServiceBindingTransformFunction;
            } & { destinationName: string; service?: undefined }
            | Without<
                DestinationFetchOptions & {
                    serviceBindingTransformFn?: ServiceBindingTransformFunction;
                } & { destinationName: string; service?: undefined },
            > & Destination & { url: string }
        • never
        • Without<HttpDestination> & DestinationFetchOptions & {
              serviceBindingTransformFn?: ServiceBindingTransformFunction;
          } & { destinationName: string; service?: undefined }
          • OptionalserviceBindingTransformFn?: ServiceBindingTransformFunction

            Custom transformation function to control how a Destination is built from the given Service.

          • destinationName: string

            The name of the destination to retrieve from service bindings.

          • Optionalservice?: undefined
        • Without<
              DestinationFetchOptions & {
                  serviceBindingTransformFn?: ServiceBindingTransformFunction;
              } & { destinationName: string; service?: undefined },
          > & Destination & { url: string }

      Returns AzureOpenAiEmbeddingClient

    Properties

    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

    Methods

    • 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.

      Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.