Documentation
Table of Contents

Method EmbedAsync

Namespace
IntentSharp.Testing
Assembly
IntentSharp.dll

EmbedAsync(string, CancellationToken)

Returns the embedder's vector for text.

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

Parameters

text string
cancellationToken CancellationToken

Returns

Task<float[]>

Exceptions

NotSupportedException

The provider was created without an embedder.