mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-11 19:52:10 +00:00
Changed document sections to no longer look like real page numbers
This commit is contained in:
parent
791d623d67
commit
9f343c12a5
@ -21,7 +21,14 @@ public sealed class DocumentManager
|
|||||||
{
|
{
|
||||||
var completedPage = this.Flush();
|
var completedPage = this.Flush();
|
||||||
this.currentPageContent = new StringBuilder();
|
this.currentPageContent = new StringBuilder();
|
||||||
this.currentPageContent.AppendLine($"# Page {pageNumber}");
|
|
||||||
|
//
|
||||||
|
// Sections, not pages: a Word or OpenDocument file carries no fixed page layout, so the
|
||||||
|
// runtime derives these boundaries from page breaks and heuristics. Calling them pages,
|
||||||
|
// as the PDF reader does with its real ones, would invite the AI to cite page numbers
|
||||||
|
// which do not exist in the document.
|
||||||
|
//
|
||||||
|
this.currentPageContent.AppendLine($"# Section {pageNumber}");
|
||||||
this.currentPageContent.Append(content);
|
this.currentPageContent.Append(content);
|
||||||
return completedPage;
|
return completedPage;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user