Skip to content

Commit

Permalink
chore: revert unwanted change
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Mar 21, 2024
1 parent 71f16a6 commit 8dfc0ee
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/indexer/src/lib/document-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,6 @@ export class DocumentProcessor {
let start = 0;
let end = length;

if (end <= MAX_SECTION_LENGTH) {
return [{ content: allText, page: findPage(0) }];
}

while (start + SECTION_OVERLAP < length) {
let lastWord = -1;
end = start + MAX_SECTION_LENGTH;
Expand Down

0 comments on commit 8dfc0ee

Please sign in to comment.