# Class AzureOpenAiEmbeddingClient

LangChain embedding client for Azure OpenAI consumption on SAP BTP.

#### Hierarchy

- Embeddings
  - AzureOpenAiEmbeddingClient

- Defined in packages/langchain/dist/openai/embedding.d.ts:8

##### Index

### Constructors

constructor

### Properties

caller
modelName
modelVersion?
resourceGroup?

### Methods

embedDocuments
embedQuery

## Constructors

### constructor

- new AzureOpenAiEmbeddingClient(
  fields: AzureOpenAiEmbeddingModelParams,
  destination?:
  | never
  | Without<HttpDestination> & DestinationFetchOptions & {
  serviceBindingTransformFn?: ServiceBindingTransformFunction;
  } & { destinationName: string; service?: undefined }
  | Without<
  DestinationFetchOptions & {
  serviceBindingTransformFn?: ServiceBindingTransformFunction;
  } & { destinationName: string; service?: undefined },
  > & Destination & { url: string },
  ): AzureOpenAiEmbeddingClient

  #### Parameters

  - fields: AzureOpenAiEmbeddingModelParams
  - `Optional` destination:
    | 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 }

      - ##### `Optional` serviceBindingTransformFn?: 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.

      - ##### `Optional` service?: undefined

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

  #### Returns AzureOpenAiEmbeddingClient

  Overrides Embeddings.constructor

  - Defined in packages/langchain/dist/openai/embedding.d.ts:13

## Properties

### caller

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.

Inherited from Embeddings.caller

- Defined in node_modules/.pnpm/@langchain+core@1.2.0_openai@6.44.0_ws@8.21.0_zod@4.4.3__ws@8.21.0/node_modules/@langchain/core/dist/embeddings.d.ts:35

### modelName

modelName: AzureOpenAiEmbeddingModel

- Defined in packages/langchain/dist/openai/embedding.d.ts:9

### `Optional` modelVersion

modelVersion?: string

- Defined in packages/langchain/dist/openai/embedding.d.ts:10

### `Optional` resourceGroup

resourceGroup?: string

- Defined in packages/langchain/dist/openai/embedding.d.ts:11

## Methods

### embedDocuments

- embedDocuments(documents: string[]): Promise<number[][]>

  Embed a list of document chunks. All chunks are embedded in one batch.

  #### Parameters

  - documents: string[]

    Document chunks to embed.

  #### Returns Promise<number[][]>

  Embeddings.

  Overrides Embeddings.embedDocuments

  - Defined in packages/langchain/dist/openai/embedding.d.ts:19

### embedQuery

- embedQuery(input: string): Promise<number[]>

  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.

  Overrides Embeddings.embedQuery

  - Defined in packages/langchain/dist/openai/embedding.d.ts:25