{
  "name": "Index Documents from Google Drive to Pinecone with OpenAI Embeddings for RAG",
  "nodes": [
    {
      "id": "e72ec6be-08f3-4195-b429-34c0870ee1bc",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        180,
        0
      ]
    },
    {
      "id": "82a0bcb2-35e0-4897-b2a5-2e8d22fdec43",
      "name": "Get Docs",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        440,
        0
      ]
    },
    {
      "id": "61fc1b10-4a5e-4f12-82c1-c1c7d64c7901",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        660,
        0
      ]
    },
    {
      "id": "95a8e03c-bd70-4742-b4ad-6bf3a9b484a2",
      "name": "Pinecone Vector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        900,
        20
      ]
    },
    {
      "id": "8d762bd6-d64f-4e01-bf9d-8183b7cd7555",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        920,
        160
      ]
    },
    {
      "id": "80c20301-9fdd-455a-85eb-f0f5b12091be",
      "name": "Default Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        1060,
        240
      ]
    },
    {
      "id": "9b849c85-fa99-4f2d-bdd5-02fababbc361",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        1140,
        380
      ]
    },
    {
      "id": "a18e5576-6e16-487f-9347-2de39ecd7708",
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -60,
        0
      ]
    },
    {
      "id": "b82cc00a-56f9-41e9-9257-9a054c971db7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -140,
        -120
      ],
      "parameters": {
        "width": 260,
        "height": 400,
        "content": "Google Folder Upload Trigger"
      }
    },
    {
      "id": "aca97112-2f76-44ab-b5ae-aa232bd1242c",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        140,
        -120
      ],
      "parameters": {
        "width": 220,
        "height": 400,
        "content": "Google Search File from Folder"
      }
    },
    {
      "id": "7cf71e7a-db76-43b5-a8fd-c377ac4187aa",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        -120
      ],
      "parameters": {
        "width": 220,
        "height": 400,
        "content": "Get File"
      }
    },
    {
      "id": "ee27b02f-4d74-49f7-a3fd-5d0e928ac556",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        860,
        -120
      ],
      "parameters": {
        "width": 500,
        "height": 680,
        "content": "Upload to Pinecone Vector"
      }
    },
    {
      "id": "ec38ac32-c4a8-47fb-9312-c8804590a891",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        620,
        -120
      ],
      "parameters": {
        "width": 220,
        "height": 400,
        "content": "Loop for multiple files"
      }
    },
    {
      "id": "4db0ce4b-77d2-4875-963c-10f61438128e",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        -120
      ],
      "parameters": {
        "width": 580,
        "height": 1300,
        "content": "🧠 Google Drive Upload Trigger → Pinecone Vector Upsert for Document Indexing\n\n📄 What This Workflow Does\nThis workflow watches a specific Google Drive folder and automatically uploads any newly added d"
      }
    }
  ],
  "connections": {
    "Get Docs": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "Get Docs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Default Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    }
  }
}