Method EmbedAsync
- Namespace
- IntentSharp.Testing
- Assembly
- IntentSharp.dll
EmbedAsync(string, CancellationToken)
Returns the embedder's vector for text.
public Task<float[]> EmbedAsync(string text, CancellationToken cancellationToken = default)
Parameters
textstringcancellationTokenCancellationToken
Returns
- Task<float[]>
Exceptions
- NotSupportedException
The provider was created without an embedder.