Delen via


AzureAIInferenceEmbeddingGenerator Constructor

Definition

Initializes a new instance of the AzureAIInferenceEmbeddingGenerator class.

public AzureAIInferenceEmbeddingGenerator (Azure.AI.Inference.EmbeddingsClient embeddingsClient, string? modelId = default, int? dimensions = default);
new Microsoft.Extensions.AI.AzureAIInferenceEmbeddingGenerator : Azure.AI.Inference.EmbeddingsClient * string * Nullable<int> -> Microsoft.Extensions.AI.AzureAIInferenceEmbeddingGenerator
Public Sub New (embeddingsClient As EmbeddingsClient, Optional modelId As String = Nothing, Optional dimensions As Nullable(Of Integer) = Nothing)

Parameters

embeddingsClient
EmbeddingsClient

The underlying client.

modelId
String

The id of the model to use. This may also be overridden per request via ModelId. Either this parameter or ModelId must provide a valid model id.

dimensions
Nullable<Int32>

The number of dimensions to generate in each embedding.

Applies to