{
  "name": "RAG Upload | Aula IA Rev",
  "nodes": [
    {
      "parameters": {
        "mode": "insert",
        "pineconeIndex": {
          "__rl": true,
          "value": "transcripts-iarev",
          "mode": "list",
          "cachedResultName": "transcripts-iarev"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "typeVersion": 1,
      "position": [
        680,
        0
      ],
      "id": "f940ec9c-f64d-4ebc-8bc8-b590e20d1c0b",
      "name": "Pinecone Vector Store",
      "credentials": {
        "pineconeApi": {
          "id": "QjAGqg9f5wKHQQZU",
          "name": "PineconeApi account"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "typeVersion": 1.2,
      "position": [
        580,
        240
      ],
      "id": "d7518789-6570-4ac2-9b36-edc318344e5b",
      "name": "Embeddings OpenAI",
      "credentials": {
        "openAiApi": {
          "id": "PoF1psTW8pg0vkTq",
          "name": "OpenAI - N8N API Key"
        }
      }
    },
    {
      "parameters": {
        "dataType": "binary",
        "options": {
          "metadata": {
            "metadataValues": [
              {
                "name": "nome-do-arquivo",
                "value": "={{ $json.name }}"
              }
            ]
          }
        }
      },
      "type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
      "typeVersion": 1,
      "position": [
        740,
        240
      ],
      "id": "4fdfcad9-a4e7-440f-9d27-92dcbd431b20",
      "name": "Default Data Loader"
    },
    {
      "parameters": {
        "chunkOverlap": 200,
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "typeVersion": 1,
      "position": [
        740,
        500
      ],
      "id": "ef557f54-c265-4730-aff9-0222596510ff",
      "name": "Recursive Character Text Splitter"
    },
    {
      "parameters": {
        "resource": "fileFolder",
        "filter": {
          "folderId": {
            "__rl": true,
            "value": "1iVLz69KfaNflp4-Re16nTGXvuc_t8FRV",
            "mode": "list",
            "cachedResultName": "Agentes de IA - Nível 1",
            "cachedResultUrl": "https://drive.google.com/drive/folders/1iVLz69KfaNflp4-Re16nTGXvuc_t8FRV"
          }
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        220,
        0
      ],
      "id": "d601f4ec-d853-41b1-8820-c49f113fe5b8",
      "name": "Busca Pasta",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "Fng4H4REbiuzKb4D",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "operation": "download",
        "fileId": {
          "__rl": true,
          "value": "={{ $json.id }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        440,
        0
      ],
      "id": "87adcc65-dc76-466f-8f2b-aff5186903b5",
      "name": "Download dos Arquivos",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "Fng4H4REbiuzKb4D",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "content": "\n\n\n\n### Abre e lê os diferentes tipos de arquivos, para enviar para o processo de Embeddings.",
        "width": 220,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        900,
        260
      ],
      "id": "34abe8dd-db8a-4e44-8da4-453a76c3c31e",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "### Divide o texto, em partes menores.",
        "height": 80,
        "width": 150,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        820,
        500
      ],
      "id": "a7a5be07-3fdb-4cb8-a2e3-24de3b598280",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "content": "### Transforma o texto em números especiais.",
        "height": 80,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        380,
        240
      ],
      "id": "8c6e99ef-eadf-41c5-8770-2b3b7fcbbbe8",
      "name": "Sticky Note3"
    },
    {
      "parameters": {
        "content": "### Faz a conexão com sua conta no Pinecone, e possibilita o uso das ferramentas necessárias.",
        "width": 220,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        700,
        -120
      ],
      "id": "a0fe8cc3-dcba-4bef-81aa-3ff2915b5a5c",
      "name": "Sticky Note2"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "871b8abe-0105-4e8a-bce2-3bcbcb80331d",
      "name": "When clicking ‘Test workflow’"
    }
  ],
  "pinData": {},
  "connections": {
    "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
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Default Data Loader",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    },
    "Busca Pasta": {
      "main": [
        [
          {
            "node": "Download dos Arquivos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download dos Arquivos": {
      "main": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Busca Pasta",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "95bbe55b-06ca-465e-9dd5-f57abed050ed",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "772777d75200d5308ed8f22abd0e5e044dc03c435e0fc1d278dfd5be984fa9ca"
  },
  "id": "slsO6CoW2fW4Vz2r",
  "tags": [
    {
      "createdAt": "2025-03-06T00:21:48.028Z",
      "updatedAt": "2025-03-06T00:21:48.028Z",
      "id": "4xLcO6k2p7LJWXPZ",
      "name": "Aula IA Rev"
    },
    {
      "createdAt": "2025-03-05T23:35:21.603Z",
      "updatedAt": "2025-03-05T23:35:21.603Z",
      "id": "5Kx09y7TPvOpNJTq",
      "name": "RAG"
    },
    {
      "createdAt": "2025-03-05T23:36:49.806Z",
      "updatedAt": "2025-03-05T23:36:49.806Z",
      "id": "wYALdeE6rE8mpq2P",
      "name": "Pinecone"
    }
  ]
}