{
  "name": "Convert tour PDFs to vector database using Google Drive, LangChain & OpenAI",
  "nodes": [
    {
      "id": "ff4ada8f-0e63-4035-afb2-9f459cd7f158",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -920,
        1060
      ]
    },
    {
      "id": "b17ec584-be56-49c2-ad9d-a85bc98285c2",
      "name": "PDF Tour Package Folder",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -680,
        1060
      ]
    },
    {
      "id": "5c4e9e98-4f1f-4024-ab88-6183f4583c00",
      "name": "Download Package Files",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -440,
        1060
      ]
    },
    {
      "id": "ad967561-1968-4bdb-9c36-17200f291593",
      "name": "Loop Over each PDF file",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -180,
        1060
      ]
    },
    {
      "id": "6408c50e-99fe-46f1-995b-0d9b99e42ca1",
      "name": "Pinecone Vector Store - Store Vector Data",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        160,
        1100
      ]
    },
    {
      "id": "687269c8-74ca-44fb-8f37-a860ae82f162",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        60,
        1360
      ]
    },
    {
      "id": "068cde17-e656-440d-abb8-2e498cee82b1",
      "name": "Data Loader",
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "position": [
        220,
        1360
      ]
    },
    {
      "id": "adaeaaf3-1bfc-4b27-878b-5d5ddb1fc9a5",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        300,
        1540
      ]
    },
    {
      "id": "4184166f-f2ea-448e-9876-a432fd85a8c3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -740,
        920
      ],
      "parameters": {
        "width": 460,
        "height": 320,
        "content": "## Extract PDF file from Google Drive\n**Connect & Download PDF file**"
      }
    },
    {
      "id": "cfcef192-f80d-43dc-beac-0b7bfab7d9ba",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -260,
        920
      ],
      "parameters": {
        "width": 360,
        "height": 320,
        "content": "## Loop over each PDF file\n**Extract each tour package content from the pdf file and vectorise the data in the pinecone database. "
      }
    }
  ],
  "connections": {
    "Data Loader": {
      "ai_document": [
        [
          {
            "node": "Pinecone Vector Store - Store Vector Data",
            "type": "ai_document",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store - Store Vector Data",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Download Package Files": {
      "main": [
        [
          {
            "node": "Loop Over each PDF file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over each PDF file": {
      "main": [
        [],
        [
          {
            "node": "Pinecone Vector Store - Store Vector Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PDF Tour Package Folder": {
      "main": [
        [
          {
            "node": "Download Package Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "PDF Tour Package Folder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store - Store Vector Data": {
      "main": [
        [
          {
            "node": "Loop Over each PDF file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}