Documentation
Table of Contents

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

text string
cancellationToken CancellationToken

Returns

Task<float[]>