EmbeddingGenerationDispatcher.GenerateEmbeddingsAsync 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 embeddings of this type from the given values, using the embedding generator configured on the vectorProperty.
public:
abstract System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyList<Microsoft::Extensions::AI::Embedding ^> ^> ^ GenerateEmbeddingsAsync(Microsoft::Extensions::VectorData::ProviderServices::VectorPropertyModel ^ vectorProperty, System::Collections::Generic::IEnumerable<System::Object ^> ^ values, System::Threading::CancellationToken cancellationToken);
public abstract System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.Embedding>> GenerateEmbeddingsAsync(Microsoft.Extensions.VectorData.ProviderServices.VectorPropertyModel vectorProperty, System.Collections.Generic.IEnumerable<object?> values, System.Threading.CancellationToken cancellationToken);
abstract member GenerateEmbeddingsAsync : Microsoft.Extensions.VectorData.ProviderServices.VectorPropertyModel * seq<obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.Embedding>>
Public MustOverride Function GenerateEmbeddingsAsync (vectorProperty As VectorPropertyModel, values As IEnumerable(Of Object), cancellationToken As CancellationToken) As Task(Of IReadOnlyList(Of Embedding))
Parameters
- vectorProperty
- VectorPropertyModel
- values
- IEnumerable<Object>
- cancellationToken
- CancellationToken
Returns
The generated embeddings.