EmbeddingGenerationDispatcher.GenerateEmbeddingAsync 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.
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.