Documentation
Table of Contents

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

text string

The text to embed.

request EmbeddingRequest

The model and options for this call. A null Model leaves the model to the provider.

ct CancellationToken

Cancels the call.

Returns

Task<float[]>