Method EmbedAsync
- Namespace
- IntentSharp
- Assembly
- IntentSharp.dll
EmbedAsync(string, CancellationToken)
Returns an embedding from the first provider that supports embeddings, or null when none does.
public Task<float[]?> EmbedAsync(string text, CancellationToken cancellationToken = default)
Parameters
textstringcancellationTokenCancellationToken
Returns
- Task<float[]>