Documentation
Table of Contents

Method EmbedAsync

Namespace
IntentSharp.Extensions.AI
Assembly
IntentSharp.Extensions.AI.dll

EmbedAsync(string, CancellationToken)

Returns an embedding vector for the text. Throws NotSupportedException when SupportsEmbeddings is false.

public Task<float[]> EmbedAsync(string text, CancellationToken cancellationToken = default)

Parameters

text string
cancellationToken CancellationToken

Returns

Task<float[]>