Table of Contents

Class TextPartition

Namespace
LMKit.Data
Assembly
LM-Kit.NET.dll

Represents a text partition (or chunk of text) of a Section.
This class encapsulates the text details such as tokens, embeddings, and the mode used for splitting.

public sealed class TextPartition
Inheritance
TextPartition
Inherited Members

Remarks

In LMKit, the hierarchy of data structures is organized as follows: a DataSource contains a collection of Section objects, each of which can hold a collection of TextPartition instances.

Properties

Embeddings

Gets a read-only list of embedding vectors generated for this text partition. These embeddings are derived from the text using the specified model.

Model

Gets the embeddings model used to analyze and process the text of this partition.
This model determines how text is converted into embeddings and tokens.

Owner

Gets or sets the Section object to which this partition belongs. The section is the parent context for this partition.

SplitMode

Gets the method of text splitting, defined by the SplitMode enumeration, that was used to create this partition.

Text

Gets the original text content of this partition. This property provides access to the text segment that this partition represents.

Tokens

Gets a read-only list of tokens that represent the processed form of the text in this partition.
These tokens are derived from the text based on the embeddings model used.