From 109b0367ccd78dce273ea29bb1364484ba05730c Mon Sep 17 00:00:00 2001 From: Henry Heng Date: Mon, 24 Jun 2024 02:08:30 +0100 Subject: [PATCH] Bugfix/Pinecone Text Key (#2708) * add source tag to pinecone * update pinecone * add text key to pinecone * update pinecone version, and singleton --- packages/components/nodes/vectorstores/Pinecone/Pinecone.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/nodes/vectorstores/Pinecone/Pinecone.ts b/packages/components/nodes/vectorstores/Pinecone/Pinecone.ts index e587de8fe..7bc886f39 100644 --- a/packages/components/nodes/vectorstores/Pinecone/Pinecone.ts +++ b/packages/components/nodes/vectorstores/Pinecone/Pinecone.ts @@ -156,7 +156,7 @@ class Pinecone_VectorStores implements INode { const obj: PineconeStoreParams = { pineconeIndex, - textKey: pineconeTextKey ?? 'text' + textKey: pineconeTextKey || 'text' } if (pineconeNamespace) obj.namespace = pineconeNamespace @@ -203,7 +203,7 @@ class Pinecone_VectorStores implements INode { const obj: PineconeStoreParams = { pineconeIndex, - textKey: pineconeTextKey ?? 'text' + textKey: pineconeTextKey || 'text' } if (pineconeNamespace) obj.namespace = pineconeNamespace