namespace AIStudio.Tools.Services.Indexing; /// /// One chunk as the chunking produced it, together with the page it starts on. /// /// /// The page is carried rather than read back out of the chunk text. The runtime states it, and /// the chunking knows which source segment a chunk begins in, so nothing has to be derived from /// a marker in the text — which is what used to leave Word files and continued passages without /// a page. /// /// The chunk itself, overlap prefix included. /// The page the chunk's own content starts on, or null when it has none. internal sealed record EmbeddingChunk(string Text, int? PageNumber);