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. /// Where it is: its page, its sheet and row, or its line; nothing when the source does not say. internal sealed record TextSegment(string Text, int? TokenCount, SourceLocation Location);