Fixed page numbers being guessed from the text instead of read from the metadata

This commit is contained in:
Thorsten Sommer committed 2026-09-15 13:05:20 +02:00
1 parent 6ce7d856a3
commit 01e09804f6
9 files changed
+285 -49

No files matched your search

@@ -1,3 +1,9 @@
namespace AIStudio.Tools.Services;
public sealed record ArbitraryFileDataSegment(string Content, int TokenCount);
/// <summary>
/// One piece of an extracted file, as the runtime delivered it.
/// </summary>
/// <param name="Content">The extracted text.</param>
/// <param name="TokenCount">The number of tokens of that text.</param>
/// <param name="PageNumber">The page that text came from, or null when it has none. Presentations and spreadsheets have none.</param>
public sealed record ArbitraryFileDataSegment(string Content, int TokenCount, int? PageNumber);