We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6efe240 commit 2e808c7Copy full SHA for 2e808c7
packages/indexer/src/lib/document-processor.ts
@@ -75,6 +75,10 @@ export class DocumentProcessor {
75
let start = 0;
76
let end = length;
77
78
+ if (end <= MAX_SECTION_LENGTH) {
79
+ return [{ content: allText, page: findPage(0) }];
80
+ }
81
+
82
while (start + SECTION_OVERLAP < length) {
83
let lastWord = -1;
84
end = start + MAX_SECTION_LENGTH;
0 commit comments