{
  "openruna_format": "flow-graph-v1",
  "title": "RAG:Context-Aware Chunking | Google Drive to Pinecone via OpenRouter & Gemini",
  "slug": "ragcontext-aware-chunking-google-drive-to-pinecone-via-openrouter-gemini",
  "source_filename": "1627_Splitout_Code_Automation_Triggered.json",
  "nodes": [
    {
      "id": "When clicking ‘Test workflow’",
      "name": "When clicking ‘Test workflow’",
      "integration": "manual",
      "kind": "trigger"
    },
    {
      "id": "Loop Over Items",
      "name": "Loop Over Items",
      "integration": "splitInBatches",
      "kind": "logic"
    },
    {
      "id": "OpenRouter Chat Model",
      "name": "OpenRouter Chat Model",
      "integration": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "kind": "action"
    },
    {
      "id": "Pinecone Vector Store",
      "name": "Pinecone Vector Store",
      "integration": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "kind": "action"
    },
    {
      "id": "Embeddings Google Gemini",
      "name": "Embeddings Google Gemini",
      "integration": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "kind": "action"
    },
    {
      "id": "Default Data Loader",
      "name": "Default Data Loader",
      "integration": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "kind": "action"
    },
    {
      "id": "Recursive Character Text Splitter",
      "name": "Recursive Character Text Splitter",
      "integration": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "kind": "action"
    },
    {
      "id": "Get Document From Google Drive",
      "name": "Get Document From Google Drive",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Extract Text Data From Google Document",
      "name": "Extract Text Data From Google Document",
      "integration": "extractFromFile",
      "kind": "action"
    },
    {
      "id": "Split Document Text Into Sections",
      "name": "Split Document Text Into Sections",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Prepare Sections For Looping",
      "name": "Prepare Sections For Looping",
      "integration": "splitOut",
      "kind": "logic"
    },
    {
      "id": "AI Agent - Prepare Context",
      "name": "AI Agent - Prepare Context",
      "integration": "@n8n/n8n-nodes-langchain.agent",
      "kind": "action"
    },
    {
      "id": "Concatenate the context and section text",
      "name": "Concatenate the context and section text",
      "integration": "set",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Loop Over Items",
      "to": "AI Agent - Prepare Context"
    },
    {
      "from": "Pinecone Vector Store",
      "to": "Loop Over Items"
    },
    {
      "from": "AI Agent - Prepare Context",
      "to": "Concatenate the context and section text"
    },
    {
      "from": "Prepare Sections For Looping",
      "to": "Loop Over Items"
    },
    {
      "from": "Get Document From Google Drive",
      "to": "Extract Text Data From Google Document"
    },
    {
      "from": "Split Document Text Into Sections",
      "to": "Prepare Sections For Looping"
    },
    {
      "from": "When clicking ‘Test workflow’",
      "to": "Get Document From Google Drive"
    },
    {
      "from": "Extract Text Data From Google Document",
      "to": "Split Document Text Into Sections"
    },
    {
      "from": "Concatenate the context and section text",
      "to": "Pinecone Vector Store"
    }
  ]
}