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