We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c065eb7 commit 74eb0d0Copy full SHA for 74eb0d0
apps/sim/lib/knowledge/documents/service.ts
@@ -563,7 +563,9 @@ export async function processDocumentAsync(
563
}
564
565
logger.info(`[${documentId}] Inserting ${embeddingRecords.length} embeddings`)
566
- await Promise.all(batches.map((batch) => tx.insert(embedding).values(batch)))
+ for (const batch of batches) {
567
+ await tx.insert(embedding).values(batch)
568
+ }
569
570
571
await tx
0 commit comments