Table of Contents

Class TextChunk

Namespace
JD.AI.Core.Memory
Assembly
JD.AI.Core.dll

A chunk of text with position metadata.

public sealed record TextChunk : IEquatable<TextChunk>
Inheritance
TextChunk
Implements
Inherited Members

Constructors

TextChunk(string, int, int)

A chunk of text with position metadata.

public TextChunk(string Text, int Index, int CharOffset)

Parameters

Text string

The chunk content.

Index int

Zero-based chunk index within the source document.

CharOffset int

Character offset from the start of the source document.

Properties

CharOffset

Character offset from the start of the source document.

public int CharOffset { get; init; }

Property Value

int

Index

Zero-based chunk index within the source document.

public int Index { get; init; }

Property Value

int

Text

The chunk content.

public string Text { get; init; }

Property Value

string