Method EmbedAsync
- Namespace
- IntentSharp.Providers
- Assembly
- IntentSharp.dll
EmbedAsync(string, EmbeddingRequest, CancellationToken)
Returns the embedding vector of text.
Task<float[]> EmbedAsync(string text, EmbeddingRequest request, CancellationToken ct = default)
Parameters
textstringThe text to embed.
requestEmbeddingRequestThe model and options for this call. A null Model leaves the model to the provider.
ctCancellationTokenCancels the call.
Returns
- Task<float[]>