From b44631e7e7d708978fe652f41b20f2068c8f3f71 Mon Sep 17 00:00:00 2001 From: serefyarar Date: Sat, 30 Nov 2024 22:58:04 -0500 Subject: [PATCH] Update embedding.js --- api/src/services/embedding.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/services/embedding.js b/api/src/services/embedding.js index 3d4fea17..5fea8386 100644 --- a/api/src/services/embedding.js +++ b/api/src/services/embedding.js @@ -361,7 +361,7 @@ export class EmbeddingService { return JSON.stringify(itemStream.stream_content); })); - await collection.add({ + await collection.upsert({ ids: newIds, embeddings: newVectors, // Use existing vectors metadatas: newMetadatas,