Documentation
Table of Contents

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

text string
cancellationToken CancellationToken

Returns

Task<float[]>