fix: Fix the issue where the chunk index might be duplicated
This commit is contained in:
parent
0dc5c42315
commit
6d6f89fe55
1 changed files with 1 additions and 2 deletions
|
|
@ -62,12 +62,11 @@ export async function* chunkDocument({
|
|||
resolve({
|
||||
...chunkWithoutId,
|
||||
digest,
|
||||
index,
|
||||
index: index++,
|
||||
filepath,
|
||||
});
|
||||
}),
|
||||
);
|
||||
index++;
|
||||
}
|
||||
for await (const chunk of chunkPromises) {
|
||||
if (!chunk) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue