Problem in node ‘Pinecone Vector Store1‘ Vector dimension

Describe the problem/error/question

When executing a workflow, this error always occurs at the end of my Pinecone Vector Store

What is the error message (if any)?

The number for Vector dimension varies depending on which file I select when downloading from Google Drive

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

{
“nodes”: [
{
“parameters”: {
“operation”: “download”,
“fileId”: {
“__rl”: true,
“value”: “1Gs4O9m-sg3MyVw3IFLkRineN4rMsvoUE”,
“mode”: “list”,
“cachedResultName”: “manual_A5_62317V5_maeuse_ameisen_abwehr_6-23.pdf”,
“cachedResultUrl”: “https://drive.google.com/file/d/1Gs4O9m-sg3MyVw3IFLkRineN4rMsvoUE/view?usp=drivesdk
},
“options”: {}
},
“type”: “n8n-nodes-base.googleDrive”,
“typeVersion”: 3,
“position”: [
80,
0
],
“id”: “25beed33-be99-41c3-88da-aa1acaa6bf68”,
“name”: “Google Drive”,
“credentials”: {
“googleDriveOAuth2Api”: {
“id”: “W0RiEUtsMCD88gU6”,
“name”: “Google Drive account”
}
}
},
{
“parameters”: {},
“type”: “n8n-nodes-base.manualTrigger”,
“typeVersion”: 1,
“position”: [
-80,
0
],
“id”: “dc278e6a-f59c-4fb6-8597-3df8388a55ac”,
“name”: “When clicking ‘Test workflow’”
},
{
“parameters”: {
“dataType”: “binary”,
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.documentDefaultDataLoader”,
“typeVersion”: 1,
“position”: [
320,
180
],
“id”: “98034e54-59cd-4668-888b-900f5e5bb5d8”,
“name”: “Default Data Loader”
},
{
“parameters”: {
“mode”: “insert”,
“pineconeIndex”: {
“__rl”: true,
“value”: “rag-chatbot”,
“mode”: “list”,
“cachedResultName”: “rag-chatbot”
},
“options”: {
“pineconeNamespace”: “rag”
}
},
“type”: “@n8n/n8n-nodes-langchain.vectorStorePinecone”,
“typeVersion”: 1,
“position”: [
240,
-20
],
“id”: “83fd25b4-65dd-4ced-80b9-7f8aceb070cf”,
“name”: “Pinecone Vector Store1”,
“credentials”: {
“pineconeApi”: {
“id”: “ipjR4QzOTdtu2NEg”,
“name”: “PineconeApi account”
}
}
},
{
“parameters”: {
“modelName”: “models/embedding-001”
},
“type”: “@n8n/n8n-nodes-langchain.embeddingsGoogleGemini”,
“typeVersion”: 1,
“position”: [
100,
260
],
“id”: “97457208-ba0e-4c40-a49d-02bc01ace6ec”,
“name”: “Embeddings Google Gemini”,
“credentials”: {
“googlePalmApi”: {
“id”: “xPmIM2IcnMM5w5S3”,
“name”: “Google Gemini(PaLM) Api account”
}
}
},
{
“parameters”: {
“chunkSize”: 1000000,
“chunkOverlap”: “=0”,
“options”: {}
},
“type”: “@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter”,
“typeVersion”: 1,
“position”: [
420,
400
],
“id”: “2b089381-97d1-4e20-ab13-53ed5ec60a2f”,
“name”: “Recursive Character Text Splitter”
}
],
“connections”: {
“Google Drive”: {
“main”: [
[
{
“node”: “Pinecone Vector Store1”,
“type”: “main”,
“index”: 0
}
]
]
},
“When clicking ‘Test workflow’”: {
“main”: [
[
{
“node”: “Google Drive”,
“type”: “main”,
“index”: 0
}
]
]
},
“Default Data Loader”: {
“ai_document”: [
[
{
“node”: “Pinecone Vector Store1”,
“type”: “ai_document”,
“index”: 0
}
]
]
},
“Embeddings Google Gemini”: {
“ai_embedding”: [
[
{
“node”: “Pinecone Vector Store1”,
“type”: “ai_embedding”,
“index”: 0
}
]
]
},
“Recursive Character Text Splitter”: {
“ai_textSplitter”: [
[
{
“node”: “Default Data Loader”,
“type”: “ai_textSplitter”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateCredsSetupCompleted”: true,
“instanceId”: “a772b07cb916db0ace570744fd3566138e7a670babc4139cf5504bff9e78d14a”
}
}

Share the output returned by the last node

Information on your n8n setup

  • n8n version: Newest
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system: Win 11
1 Like

Hey Emanuel,

please put your JSON code inside a code block

like this

Your problem seems to be more related to the configuration in Pinecone, rather than a problem with the workflow.

But share it with us in a code block and let’s see what we can find!

Create an index in Pinecone that has 1536 dimensions (and probably cosine metric). When you access that Vector Store, up or down, use an Embeddings OpenAI node set to text-embedding-3-small. Then your requests will match your index.

2 Likes

Hey @Emanuel_Lasche do you still need help with this?

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.