From 5756b102d029ec1496bd6afc6a802e33cbb005e6 Mon Sep 17 00:00:00 2001 From: Mikael Brevik Date: Thu, 25 Apr 2024 21:35:27 +0200 Subject: [PATCH] chore: fix upsert signature --- search-index/generate-embeddings.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search-index/generate-embeddings.mjs b/search-index/generate-embeddings.mjs index 0a51e7c0..0bbadb7b 100644 --- a/search-index/generate-embeddings.mjs +++ b/search-index/generate-embeddings.mjs @@ -80,7 +80,7 @@ export async function generateEmbeddings(index) { }; progress.update(i, { operation: 'Inserting embedding' }); - await pineconeIndex.upsert({ upsertRequest }); + await pineconeIndex.upsert([{ upsertRequest }]); progress.update(i + 1); } catch (e) { errorCount++;