Interface
IContextFragmentsManager

Provides methods for splitting text into context fragments and joining them.

Definition

Namespace:Telerik.Documents.AI.Core

Assembly:Telerik.Documents.AI.Core.dll

Syntax:

cs-api-definition
public interface IContextFragmentsManager

Methods

SplitIntoFragments(string, int)

Splits the specified text into fragments suitable for processing, based on the model and encoding.

Declaration

cs-api-definition
Task<IFragments> SplitIntoFragments(string text, int maxTokenSizeOfSingleEmbedding)

Parameters

text

string

The input text to split.

maxTokenSizeOfSingleEmbedding

int

The maximum token size for a single embedding.

Returns

Task<IFragments>

An array of text fragments.

In this article
DefinitionMethodsSplitIntoFragments(string, int)
Not finding the help you need?
Contact Support