InterfaceIFragment
Interface
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
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
A string containing the embedding-compatible text representation of the object.