continue
continue copied to clipboard
fix: Fix the issue where the chunk index might be duplicated
Description
This pull request includes a small change to the chunkDocument function in core/indexing/chunk/chunk.ts. The change simplifies the incrementation of the index variable by directly incrementing it within the object assignment. Fix the issue where the chunk index might be duplicated.
Checklist
- [x] I've read the contributing guide
- [x] The relevant docs, if any, have been updated or created
- [x] The relevant tests, if any, have been updated or created
Screenshots
[ For visual changes, include screenshots. Screen recordings are particularly helpful, and appreciated! ]
Tests
[ What tests were added or updated to ensure the changes work as expected? ]