AzureAIInferenceEmbeddingGenerator Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.