Language

EmbeddingGenerationDispatcher.GenerateEmbeddingAsync Method

Definition

Generates a single embedding of this type from the given value, using the embedding generator configured on the vectorProperty.

public:
 abstract System::Threading::Tasks::Task<Microsoft::Extensions::AI::Embedding ^> ^ GenerateEmbeddingAsync(Microsoft::Extensions::VectorData::ProviderServices::VectorPropertyModel ^ vectorProperty, System::Object ^ value, System::Threading::CancellationToken cancellationToken);
public abstract System.Threading.Tasks.Task<Microsoft.Extensions.AI.Embedding> GenerateEmbeddingAsync(Microsoft.Extensions.VectorData.ProviderServices.VectorPropertyModel vectorProperty, object? value, System.Threading.CancellationToken cancellationToken);
abstract member GenerateEmbeddingAsync : Microsoft.Extensions.VectorData.ProviderServices.VectorPropertyModel * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.Embedding>
Public MustOverride Function GenerateEmbeddingAsync (vectorProperty As VectorPropertyModel, value As Object, cancellationToken As CancellationToken) As Task(Of Embedding)

Parameters

vectorProperty
VectorPropertyModel
value
Object
cancellationToken
CancellationToken

Returns

The generated embedding.

Applies to