EmbeddingGenerationExtensions.GetDimensions<TValue,TEmbedding> Method
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.
Gets the dimensions from service's IEmbeddingGenerationService<TValue,TEmbedding>.
public static int? GetDimensions<TValue,TEmbedding>(this Microsoft.SemanticKernel.Embeddings.IEmbeddingGenerationService<TValue,TEmbedding> service) where TEmbedding : struct;
static member GetDimensions : Microsoft.SemanticKernel.Embeddings.IEmbeddingGenerationService<'Value, 'Embedding (requires 'Embedding : struct)> -> Nullable<int> (requires 'Embedding : struct)
<Extension()>
Public Function GetDimensions(Of TValue, TEmbedding) (service As IEmbeddingGenerationService(Of TValue, TEmbedding)) As Nullable(Of Integer)
Type Parameters
- TValue
- TEmbedding
Parameters
The service from which to get the dimensions.
Returns
The dimensions if it was specified in the service's attributes; otherwise, null.