namespace AIStudio.Tools.Services.Indexing; /// /// One piece of a text as its source delivered it: a page, a slide, a sheet or a section. /// /// The text of the piece. /// Its token count for the embedding provider, when the source already knows it. /// The page it is on, or null when the source has no pages. internal sealed record TextSegment(string Text, int? TokenCount, int? PageNumber);