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? defaultModelId = default, int? defaultModelDimensions = 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 defaultModelId As String = Nothing, Optional defaultModelDimensions As Nullable(Of Integer) = Nothing)

Parameters

providerName
String

The name of the embedding generation provider, if applicable. Where possible, this should map to the appropriate name defined in the OpenTelemetry Semantic Conventions for Generative AI systems.

providerUri
Uri

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

defaultModelId
String

The ID of the default embedding generation model used, if applicable.

defaultModelDimensions
Nullable<Int32>

The number of dimensions in vectors produced by the default model, if applicable.

Applies to