Interface
IFragment

Defines a fragment which can be converted to text representations suitable for context or embedding scenarios.

Definition

Namespace:Telerik.Documents.AI.Core

Assembly:Telerik.Documents.AI.Core.dll

Syntax:

cs-api-definition
public interface IFragment

Methods

ToContextText()

Returns a string representation of the object's context suitable for display or logging.

Declaration

cs-api-definition
string ToContextText()

Returns

string

A string containing text suitable for adding to an LLM context.

ToEmbeddingText()

Converts the current object to a plain text representation suitable for use in embedding models.

Declaration

cs-api-definition
string ToEmbeddingText()

Returns

string

A string containing the embedding-compatible text representation of the object.

In this article
DefinitionMethodsToContextText()ToEmbeddingText()
Not finding the help you need?
Contact Support