Class EmbeddingText

Marks the string property that contains the text sent to the embedding generator. Used as default TextSelector by EmbeddingTransformation<TInput> and EmbeddingBatchTransformation<TInput>.

Inheritance
EmbeddingText
Inherited Members
Namespace: ETLBox.AI
Assembly: ETLBox.AI.dll
Syntax
    [AttributeUsage(AttributeTargets.Property)]
public sealed class EmbeddingText : Attribute
Examples
public class TextRow {
    [EmbeddingText]
    public string Text { get; set; }
    [EmbeddingVector]
    public float[] Embedding { get; set; }
}

Properties

PropertyName

Name of the property that holds the attribute. Set automatically.

Declaration
    public string PropertyName { get; set; }
Property Value
TypeDescription
string