Class TextChunk
- Namespace
- FoundationaLLM.Common.Models.Vectorization
- Assembly
- FoundationaLLM.Common.dll
Represents a chunk of text produced by a text splitter.
public class TextChunk
- Inheritance
-
TextChunk
- Inherited Members
- Extension Methods
Properties
Content
The text content of the chunk.
[JsonPropertyName("content")]
public string? Content { get; set; }
Property Value
Embedding
The embedding of the text content.
[JsonPropertyName("embedding")]
[JsonConverter(typeof(Embedding.JsonConverter))]
public Embedding? Embedding { get; set; }
Property Value
OperationId
The identifier of the operation the text chunk belongs to. Can be null if the chunk is not associated with an operation.
[JsonPropertyName("operation_id")]
public string? OperationId { get; set; }
Property Value
Position
The position of the text chunk in the content it belongs to.
[JsonPropertyName("position")]
public int Position { get; set; }
Property Value
TokensCount
The size of the chunk in tokens.
[JsonPropertyName("tokens_count")]
public int TokensCount { get; set; }