VectorPropertyModel.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 for the given values, using the configured EmbeddingGenerationDispatcher.
public:
System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyList<Microsoft::Extensions::AI::Embedding ^> ^> ^ GenerateEmbeddingsAsync(System::Collections::Generic::IEnumerable<System::Object ^> ^ values, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.Embedding>> GenerateEmbeddingsAsync(System.Collections.Generic.IEnumerable<object?> values, System.Threading.CancellationToken cancellationToken);
member this.GenerateEmbeddingsAsync : seq<obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.Extensions.AI.Embedding>>
Public Function GenerateEmbeddingsAsync (values As IEnumerable(Of Object), cancellationToken As CancellationToken) As Task(Of IReadOnlyList(Of Embedding))
Parameters
- values
- IEnumerable<Object>
- cancellationToken
- CancellationToken
Returns
The generated embeddings.
Exceptions
Thrown if no EmbeddingGenerationDispatcher is configured on this property.