Class RagChunk
Represents a text chunk produced by an ITextSplitter.
public class RagChunk
- Inheritance
-
RagChunk
- Inherited Members
Constructors
RagChunk()
public RagChunk()
RagChunk(string, string, string, int)
public RagChunk(string id, string documentId, string content, int index)
Parameters
Properties
Content
The text content of this chunk.
public string Content { get; set; }
Property Value
DocumentId
The parent document identifier.
public string DocumentId { get; set; }
Property Value
Id
Unique identifier for this chunk.
public string Id { get; set; }
Property Value
Index
Zero-based index of this chunk within the parent document.
public int Index { get; set; }
Property Value
Metadata
Inherited and chunk-specific metadata.
public Dictionary<string, string> Metadata { get; set; }