{
  "name": "Chat with Google Drive documents using OpenAI and Pinecone RAG search",
  "nodes": [
    {
      "id": "e73ef010-c51c-4bb1-87cb-92cd65a6a73a",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        -16,
        16
      ]
    },
    {
      "id": "98c2d7b7-88ff-49d6-9095-a386846f690b",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        -80,
        592
      ]
    },
    {
      "id": "5c37d980-4726-4f35-8845-71e8d4750121",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -464,
        864
      ]
    },
    {
      "id": "b51a237f-2467-4f72-8d14-04b2443c5270",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -176,
        864
      ]
    },
    {
      "id": "f1299e20-a590-46f3-a742-24bd93fbd78e",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -272,
        1136
      ]
    },
    {
      "id": "c06a2096-c5cc-4a0d-a9f8-fcef5c237c81",
      "name": "Pinecone Vector Store Tool",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        112,
        1008
      ]
    },
    {
      "id": "a62e23b3-eae6-48e6-9b9e-4b5853234a62",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1248,
        -80
      ],
      "parameters": {
        "width": 604,
        "height": 1488,
        "content": "![Pinecone logo](https://www.pinecone.io/images/pinecone-logo-for-n8n-templates.png)\n\n\n## Try it out\n\nThis n8n workflow template lets you chat with your Google Drive documents (.docx, .json, .md, .txt"
      }
    },
    {
      "id": "f738618b-ce9f-41ab-a6f5-2f7fed2a1d9f",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        128,
        192
      ]
    },
    {
      "id": "0af1ef79-079b-4c93-a7d6-ea65c153de52",
      "name": "Cohere Reranker",
      "type": "@n8n/n8n-nodes-langchain.rerankerCohere",
      "position": [
        208,
        1248
      ]
    },
    {
      "id": "3058cf8c-385d-4f9b-bdb4-12243bb1c52f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -608,
        -80
      ],
      "parameters": {
        "width": 1184,
        "height": 608,
        "content": "## 1. Download, chunk, embed, and upsert Pinecone release notes to Pinecone index"
      }
    },
    {
      "id": "c844c7ca-fc77-44d7-9fc7-3ae5dd5b11b1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -608,
        736
      ],
      "parameters": {
        "width": 1184,
        "height": 672,
        "content": "## 2. Chat with the Pinecone release notes"
      }
    },
    {
      "id": "766a7768-8bf7-458b-b43c-29fe238fc8df",
      "name": "Character Text Splitter - markdown",
      "type": "@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
      "position": [
        224,
        352
      ]
    },
    {
      "id": "2fb30743-a6f7-44eb-aed0-abc3eba9a399",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        -80
      ],
      "parameters": {
        "width": 576,
        "height": 608,
        "content": "## What chunking strategy should I use?\n\nIn the case of the Pinecone release notes, these are markdown files with separators like this:\n\n```\n<Update label=\"2025-12-12\" tags={[\"General\"]}>\n  ### Upgrad"
      }
    },
    {
      "id": "675daabc-abb7-49d8-b1c8-dac9b3b2aa36",
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -496,
        16
      ]
    },
    {
      "id": "8fb8ddb6-ea88-4410-b065-9c4c2ac8e2e6",
      "name": "Download file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -288,
        16
      ]
    }
  ],
  "connections": {
    "Download file": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cohere Reranker": {
      "ai_reranker": [
        [
          {
            "node": "Pinecone Vector Store Tool",
            "type": "ai_reranker",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          },
          {
            "node": "Pinecone Vector Store Tool",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store Tool": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Character Text Splitter - markdown": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    }
  }
}