mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-13 10:53:48 +00:00
Fixed page numbers being guessed from the text instead of read from the metadata
This commit is contained in:
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);
|
||||
Reference in new issue
Block a user