namespace AIStudio.Tools.Services.Indexing;
///
/// What indexing a document stored: a new generation of its chunks, next to whatever the document had before.
///
///
/// The new generation replaces the stored one only once the kind of data source records the
/// document as indexed, cf. DocumentRunProgress.RecordDocumentIndexedAsync. Until then, and for
/// good when it fails, the document keeps the version it had.
///
/// How many chunks were stored.
/// The generation of the chunks, cf. IndexedDocumentIds.CreateChunkIdSource.
/// The ids of the chunks, which are also the ids of their points.
internal sealed record IndexedDocument(int ChunkCount, int Generation, IReadOnlyList ChunkIds);