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