Interface
IEmbedder

Defines a contract for generating vector embeddings from a collection of text fragments asynchronously.

Definition

Namespace:Telerik.Documents.AI.Core

Assembly:Telerik.Documents.AI.Core.dll

Syntax:

cs-api-definition
public interface IEmbedder

Methods

EmbedAsync(IList<IFragment>)

Generates embeddings for the specified collection of text fragments asynchronously.

Declaration

cs-api-definition
Task<IList<Embedding>> EmbedAsync(IList<IFragment> fragments)

Parameters

fragments

IList<IFragment>

A list of text fragments for which to generate embeddings. Each fragment represents a separate input to be embedded. Cannot be null or contain null elements.

Returns

Task<IList<Embedding>>

A task that represents the asynchronous operation. The task result contains an array of Embedding objects corresponding to each input fragment, in the same order as provided.

In this article
DefinitionMethodsEmbedAsync(IList<IFragment>)
Not finding the help you need?
Contact Support