Skip to content

Commit 74eb0d0

Browse files
committed
ack more PR comments
1 parent c065eb7 commit 74eb0d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/sim/lib/knowledge/documents/service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,9 @@ export async function processDocumentAsync(
563563
}
564564

565565
logger.info(`[${documentId}] Inserting ${embeddingRecords.length} embeddings`)
566-
await Promise.all(batches.map((batch) => tx.insert(embedding).values(batch)))
566+
for (const batch of batches) {
567+
await tx.insert(embedding).values(batch)
568+
}
567569
}
568570

569571
await tx

0 commit comments

Comments
 (0)