AI Agent Ignores Pinecone Embeddings — Only Gives Generic Responses

Describe the problem/error/question

I’m building an AI Agent workflow using n8n + OpenAI + Pinecone, and using a Google Docs .txt export as the content source.

The document is fetched successfully, embedded, and stored in Pinecone. But when users send questions via chat, the agent completely ignores the embedded content—it replies with generic answers as if no document was ever processed.

I’ve:

  • Verified the Google Docs export link
  • Used both Default Data Loader + Recursive Text Splitter
  • Confirmed embeddings are generated
  • Increased top-k value to 15
  • Tried re-running the workflow from scratch

But still… the agent never refers to the document content. I’m wondering if the issue lies in vector retrieval, memory setup, or tool usage.

Would really appreciate help—I’ve been stuck for days and can’t seem to resolve this.

What is the error message (if any)?

There’s no technical error—the workflow runs fine.

But the issue is functional: agent replies with “I’m sorry, I don’t have that information” or something vague, instead of using the embedded document content.

Please share your workflow

  "name": "MarkPlus V1.1 (WhatsApp UnOf WAG)",
  "nodes": [
    {
      "parameters": {
        "content": "### Load data into database\nFetch file from Google Drive, split it into chunks and insert into Pinecone index",
        "height": 687,
        "width": 1178,
        "color": 6
      },
      "id": "94e5f6d5-87bc-4fb7-822c-3bcdc67a7ccb",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -260,
        -20
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "content": "### Chat with database\nEmbed the incoming chat message and use it retrieve relevant chunks from the vector store. These are passed to the model to formulate an answer ",
        "height": 687,
        "width": 1294,
        "color": 6
      },
      "id": "de6e592f-8d32-4af5-a10e-2064009495f0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        -20
      ],
      "typeVersion": 1
    },
    {
      "parameters": {},
      "id": "2bb96e1a-678e-4557-aeff-b561dadc58b1",
      "name": "When clicking 'Test Workflow' button",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -180,
        120
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "mode": "insert",
        "pineconeIndex": {
          "__rl": true,
          "value": "test-index1",
          "mode": "id"
        },
        "options": {
          "clearNamespace": true,
          "pineconeNamespace": "MarkPlus-Ai"
        }
      },
      "id": "26bb0b29-a8ae-460d-915b-c39794d23187",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        520,
        100
      ],
      "typeVersion": 1,
      "credentials": {
        "pineconeApi": {
          "id": "jz1LkOKgRRHyN3ca",
          "name": "PineconeApi account"
        }
      }
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "=Anda adalah AI Agent MarkPlus yang ramah, membantu, dan sangat informatif.\n\nSaat ini adalah: {{$now.setZone('Asia/Jakarta').toFormat('cccc, dd MMMM yyyy, HH:mm ZZZZ')}}\n\nAnda memiliki akses ke alat berikut:\n1.  \"MarkPlus\": Berisi basis data pengetahuan MarkPlus mengenai Profil MarkPlus dan Produk Riset Murah.\nGunakan HANYA jika pengguna bertanya secara spesifik mengenai MarkPlus dan Produk Riset MarkPlus \n2.  \"WebSearch\": Alat pencarian web untuk mencari informasi terkini di internet. Gunakan alat ini untuk menjawab pertanyaan tentang peristiwa terbaru, tokoh publik saat ini, fakta spesifik, atau informasi lain yang kemungkinan berada di luar batas pengetahuan Anda (Oktober 2023).\n\nUntuk pertanyaan umum lainnya yang tidak memerlukan data terbaru atau data internal MarkPlus, silakan jawab menggunakan pengetahuan umum Anda.\n\nJika informasi yang dibutuhkan tidak tersedia atau Anda tidak yakin dengan jawabannya, sampaikan hal tersebut dengan jujur kepada pengguna.\n\nJika pertanyaan terasa kurang jelas atau ambigu, mohon lakukan konfirmasi kepada pengguna sebelum memberikan jawaban atau menggunakan alat bantu.\n\nGunakan gaya bahasa yang santai, sopan, dan tetap profesional.\n\nGunakan riwayat percakapan berikut untuk memahami konteks saat ini: {history}"
        }
      },
      "id": "76cb58db-868a-4e1d-8f01-960060370817",
      "name": "Question & Answer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1460,
        100
      ],
      "typeVersion": 1.8
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "d08ef1f5-932b-4bbb-bb02-0cbdff26a636",
              "name": "file_url",
              "type": "string",
              "value": "https://docs.google.com/document/d/1sKO99m-PZEWrSFpfpSnEUeUqfnuY_USqck2J0lXlYRk/edit?usp=sharing"
            }
          ]
        },
        "options": {}
      },
      "id": "2f826873-b396-45fa-96fd-206e50ba4602",
      "name": "Set Google Drive file URL",
      "type": "n8n-nodes-base.set",
      "position": [
        40,
        120
      ],
      "typeVersion": 3.4
    },
    {
      "parameters": {
        "operation": "download",
        "fileId": {
          "__rl": true,
          "value": "https://docs.google.com/document/d/1sKO99m-PZEWrSFpfpSnEUeUqfnuY_USqck2J0lXlYRk/edit?usp=sharing",
          "mode": "url"
        },
        "options": {}
      },
      "id": "c0065866-bee1-4d7d-8051-229e008b23ae",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        260,
        120
      ],
      "typeVersion": 3,
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "EqrD3Ef2pJpekeiJ",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "dataType": "binary",
        "options": {}
      },
      "id": "de623d3c-4f3b-40df-9aa1-363e54169443",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        620,
        320
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "chunkOverlap": 100,
        "options": {}
      },
      "id": "8908bd83-5bf9-4a00-9fad-aa9a82f038a6",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        700,
        440
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "f491ccc7-1b51-4f5c-9901-3ea35ea4c44b",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        2020,
        480
      ],
      "typeVersion": 1.2,
      "credentials": {
        "openAiApi": {
          "id": "bP89nAgkgYSP3bJD",
          "name": "OpenAi account"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "11b19fc4-3347-4199-bd7e-0654ef0bf22e",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        460,
        320
      ],
      "typeVersion": 1.2,
      "credentials": {
        "openAiApi": {
          "id": "bP89nAgkgYSP3bJD",
          "name": "OpenAi account"
        }
      }
    },
    {
      "parameters": {
        "mode": "retrieve-as-tool",
        "toolName": "MarkPlus",
        "toolDescription": "Call this tool to retrieve facts from the MarkPlus KnowledgeBase",
        "pineconeIndex": {
          "__rl": true,
          "value": "test-index1",
          "mode": "id"
        },
        "topK": 7,
        "options": {}
      },
      "id": "0b59ebfd-cd23-4713-bf51-04b48b1f4204",
      "name": "Pinecone Vector Store1",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        1900,
        340
      ],
      "typeVersion": 1,
      "credentials": {
        "pineconeApi": {
          "id": "jz1LkOKgRRHyN3ca",
          "name": "PineconeApi account"
        }
      }
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {
          "frequencyPenalty": 0.1,
          "maxTokens": 1024,
          "presencePenalty": 0.1,
          "temperature": 0.5
        }
      },
      "id": "157d607c-9730-495a-9a31-69b774cab95b",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1380,
        360
      ],
      "typeVersion": 1.2,
      "credentials": {
        "openAiApi": {
          "id": "bP89nAgkgYSP3bJD",
          "name": "OpenAi account"
        }
      }
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "wa-inbound",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        1000,
        120
      ],
      "id": "238d1ac4-3287-43ee-b341-c607c5dca4e9",
      "name": "Webhook",
      "webhookId": "405db538-7a13-432c-9044-341bac7d1035"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "4b5808cc-ccd4-4892-b38d-2014dcab530a",
              "name": "from",
              "value": "={{ $json.body.senderJid }}",
              "type": "string"
            },
            {
              "id": "1c62855e-571f-4978-9701-c0f68b01c724",
              "name": "text",
              "value": "={{ $json.body.text }}",
              "type": "string"
            },
            {
              "id": "7c9d1dc5-d237-4ed9-afd2-5b679e1ec2ae",
              "name": "timestamp",
              "value": "={{ $json.body.timestamp }}",
              "type": "string"
            },
            {
              "id": "48d396f5-8fac-44b1-aeda-7a2a4ac3a9da",
              "name": "chatInput",
              "value": "={{ $json.body.text }}",
              "type": "string"
            },
            {
              "id": "278b66d8-6d00-4ec8-80fe-115085dcc76c",
              "name": "isGroup",
              "value": "={{ $json.body.isGroup }}",
              "type": "boolean"
            },
            {
              "id": "a7c95761-64b0-4b12-af86-cd6e70bb0343",
              "name": "=chatJid",
              "value": "={{ $json.body.chatJid }}",
              "type": "string"
            },
            {
              "id": "e02ae850-fc8f-4776-9f48-8d02a3007d0a",
              "name": "senderName",
              "value": "={{ $json.body.senderName }}",
              "type": "string"
            },
            {
              "id": "e6a2bf29-ebd7-420f-920e-a687174ada19",
              "name": "messageId",
              "value": "={{ $json.body.messageId }}",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": "={{ false }}",
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1220,
        120
      ],
      "id": "18635d44-c983-4c36-868b-ffed972fc0a6",
      "name": "Edit Fields"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://145.79.10.104:3000/send-message",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "to",
              "value": "={{ $('Edit Fields').item.json.isGroup ? $('Edit Fields').item.json.chatJid : $('Edit Fields').item.json.from }}"
            },
            {
              "name": "text",
              "value": "={{$json[\"output\"]}}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1980,
        100
      ],
      "id": "f2c1a8e1-82c8-46a8-8fa7-85c52353fdbd",
      "name": "HTTP Request"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "typeVersion": 1,
      "position": [
        1740,
        380
      ],
      "id": "1fa8aec9-955f-43b6-bc58-33aaf1e6e14d",
      "name": "SerpAPI",
      "credentials": {
        "serpApi": {
          "id": "qNWXpEZtRkMDGFiX",
          "name": "SerpAPI account"
        }
      }
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "=={{ $json[\"from\"] }}",
        "contextWindowLength": 7
      },
      "type": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
      "typeVersion": 1.3,
      "position": [
        1560,
        340
      ],
      "id": "e3c37056-dab5-4c14-b47a-e9f0e1b215db",
      "name": "Postgres Chat Memory",
      "credentials": {
        "postgres": {
          "id": "szUSXzMRMU6DUD11",
          "name": "Postgres Chat DB"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "Google Drive": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Question & Answer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store1": {
      "ai_tool": [
        [
          {
            "node": "Question & Answer",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Set Google Drive file URL": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "When clicking 'Test Workflow' button": {
      "main": [
        [
          {
            "node": "Set Google Drive file URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Question & Answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Question & Answer": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store": {
      "main": [
        []
      ]
    },
    "SerpAPI": {
      "ai_tool": [
        [
          {
            "node": "Question & Answer",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Postgres Chat Memory": {
      "ai_memory": [
        [
          {
            "node": "Question & Answer",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "7a01c2d2-d255-4219-a6dc-0289c48a8543",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "d0d695faa07e1fbe52c0de6416aa4ea851df213a310f10061aeae8d4defed678"
  },
  "id": "YDKq2zJzf4RC0Yp9",
  "tags": []
}`
(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.)
```

## Share the output returned by the last node
<!-- If you need help with data transformations, please also share your expected output. -->
Example prompt:
`"What are the key benefits of FlazInsight?"`

Response:
`"I'm sorry, I couldn't find any information on that."`

Expected:
Something that reflects actual document content (e.g., “FlazInsight is designed to be affordable, fast, and accurate…”).

## Information on your n8n setup
- **n8n version:**1.91.2
- **Database (default: SQLite):**PostgreSQL
- **n8n EXECUTIONS_PROCESS setting (default: own, main):** Main
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** Docker
- **Operating system:** Ubuntu 22.04
2 Likes

I have encountered the same issue. Using n8n + OpenAI + Pinecone Assistant API which accesses a few PDF documents.

The Pinecone Asisstant API playground has its own chat - and it works perfectly with that. Just when I try it with n8n it doesn’t reply as expected.

I’m wondering if there is some cache that needs to be populated for this to start working as expected.
Any guidance on this is greatly appreciated.

1 Like

I face the same issue as well, pinecone’s native assistant works well for the same doc but, the n8n workflows doesn’t seem to fetch and feed the data from pinecone to chat models of Google gemini too,( not specific to openai alone). Always getting response like “what exactly are you looking for?” repeatedly for different queries.