Share via


EmbeddingGeneratorMetadata(String, Uri, String, Nullable<Int32>) Constructor

Definition

Initializes a new instance of the EmbeddingGeneratorMetadata class.

public EmbeddingGeneratorMetadata (string? providerName = default, Uri? providerUri = default, string? modelId = default, int? dimensions = default);
new Microsoft.Extensions.AI.EmbeddingGeneratorMetadata : string * Uri * string * Nullable<int> -> Microsoft.Extensions.AI.EmbeddingGeneratorMetadata
Public Sub New (Optional providerName As String = Nothing, Optional providerUri As Uri = Nothing, Optional modelId As String = Nothing, Optional dimensions As Nullable(Of Integer) = Nothing)

Parameters

providerName
String

The name of the embedding generation provider, if applicable.

providerUri
Uri

The URL for accessing the embedding generation provider, if applicable.

modelId
String

The id of the embedding generation model used, if applicable.

dimensions
Nullable<Int32>

The number of dimensions in vectors produced by this generator, if applicable.

Applies to