Method GenerateAsync
- Namespace
- LMKit.Integrations.SemanticKernel.Embeddings
- Assembly
- LM-Kit.NET.Integrations.SemanticKernel.dll
GenerateAsync(IEnumerable<string>, EmbeddingGenerationOptions?, CancellationToken)
Asynchronously generates embeddings for a collection of text inputs.
public Task<GeneratedEmbeddings<Embedding<float>>> GenerateAsync(IEnumerable<string> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default)
Parameters
valuesIEnumerable<string>A collection of text strings for which embeddings are to be generated.
optionsEmbeddingGenerationOptionsOptional embedding generation options.
cancellationTokenCancellationTokenA token that can be used to cancel the embedding generation operation.