Skip to main content
TextEmbedding extends VectorFeature to handle text-based embeddings with additional text-specific analysis capabilities. It combines vector clustering with TF-IDF analysis to provide both semantic clustering and keyword extraction for text data. The feature type is automatically set to CustomFeatureType.FROM_TEXT_EMBEDDING and uses clustering combined with TF-IDF summarization for drift computation.

Examples

Attributes

Literal['FROM_TEXT_EMBEDDING']
Type discriminator; fixed as CustomFeatureType.FROM_TEXT_EMBEDDING.
str
Name of the original text column that generated the embedding.
int | None
Number of tokens per cluster used for TF-IDF summarization (default 5).
Dict[str, List] | None
TF-IDF analysis results; populated during training.

classmethod validate_n_tags()

Returns

int