Method EmbedAsync
- Namespace
- IntentSharp.Extensions.AI
- Assembly
- IntentSharp.Extensions.AI.dll
EmbedAsync(string, CancellationToken)
Returns an embedding vector for the text. Throws NotSupportedException when SupportsEmbeddings is false.
public Task<float[]> EmbedAsync(string text, CancellationToken cancellationToken = default)
Parameters
textstringcancellationTokenCancellationToken
Returns
- Task<float[]>