Class
Embedding

Represents a text embedding consisting of the original text and its associated vector representation.

Definition

Namespace:Telerik.Documents.AI.Core

Assembly:Telerik.Documents.AI.Core.dll

Syntax:

cs-api-definition
public class Embedding

Inheritance: objectEmbedding

Constructors

Embedding(IFragment, float[])

Initializes a new instance of the Embedding class with the specified text and vector representation.

Declaration

cs-api-definition
public Embedding(IFragment fragment, float[] vector)

Parameters

fragment

IFragment

The source fragment to associate with the embedding. Cannot be null.

vector

float[]

The vector representation of the text. Cannot be null.

Properties

Fragment

Gets the fragment content associated with this instance.

Declaration

cs-api-definition
public IFragment Fragment { get; }

Property Value

IFragment

Vector

Gets the vector representation as an array of single-precision floating-point values.

Declaration

cs-api-definition
public float[] Vector { get; }

Property Value

float[]