EmbeddingGeneratorMetadata(String, Uri, String, Nullable<Int32>) 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 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.
The number of dimensions in vectors produced by this generator, if applicable.
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.