Carga por lotes de RAG
Este es unAI, IT Opsflujo de automatización del dominio deautomatización que contiene 14 nodos.Utiliza principalmente nodos como GoogleDrive, SplitInBatches, GoogleDriveTrigger, EmbeddingsOpenAi, VectorStorePinecone, combinando tecnología de inteligencia artificial para lograr automatización inteligente. Indexar documentos de Google Drive en Pinecone para RAG utilizando incrustaciones de OpenAI
- •Credenciales de API de Google Drive
- •Clave de API de OpenAI
- •Clave de API de Pinecone
Nodos utilizados (14)
{
"id": "OceYxCmiuf5W2X4y",
"meta": {
"instanceId": "REDACTED_ID",
"templateCredsSetupCompleted": true
},
"name": "Bundle RAG Upload",
"tags": [],
"nodes": [
{
"id": "REDACTED_ID",
"name": "Google Drive",
"type": "n8n-nodes-base.googleDrive",
"position": [
180,
0
],
"parameters": {
"filter": {
"folderId": {
"__rl": true,
"mode": "list",
"value": "REDACTED_ID",
"cachedResultUrl": "REDACTED_URL",
"cachedResultName": "Course Module Outline Folder for n8n"
}
},
"options": {},
"resource": "fileFolder",
"returnAll": true
},
"typeVersion": 3
},
{
"id": "REDACTED_ID",
"name": "Obtener Documentos",
"type": "n8n-nodes-base.googleDrive",
"position": [
440,
0
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "id",
"value": "={{ $json.id }}"
},
"options": {},
"operation": "download"
},
"typeVersion": 3
},
{
"id": "REDACTED_ID",
"name": "Iterar sobre Elementos",
"type": "n8n-nodes-base.splitInBatches",
"position": [
660,
0
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "REDACTED_ID",
"name": "Pinecone Almacén de vectores",
"type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
"position": [
900,
20
],
"parameters": {
"mode": "insert",
"options": {
"pineconeNamespace": "Course Outlines"
},
"pineconeIndex": {
"__rl": true,
"mode": "list",
"value": "REDACTED_ID",
"cachedResultName": "REDACTED_ID"
}
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Incrustaciones OpenAI",
"type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
"position": [
920,
160
],
"parameters": {
"options": {}
},
"typeVersion": 1.2
},
{
"id": "REDACTED_ID",
"name": "Cargador de Datos Predeterminado",
"type": "@n8n/n8n-nodes-langchain.documentDefaultDataLoader",
"position": [
1060,
240
],
"parameters": {
"options": {
"metadata": {
"metadataValues": [
{
"name": "Type",
"value": "Course Module Names"
}
]
}
},
"dataType": "binary"
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Divisor de Texto Recursivo de Caracteres",
"type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
"position": [
1140,
380
],
"parameters": {
"options": {},
"chunkSize": 600,
"chunkOverlap": 60
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Google Drive Trigger",
"type": "n8n-nodes-base.googleDriveTrigger",
"position": [
-60,
0
],
"parameters": {
"event": "fileCreated",
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"triggerOn": "specificFolder",
"folderToWatch": {
"__rl": true,
"mode": "list",
"value": "REDACTED_ID",
"cachedResultUrl": "REDACTED_URL",
"cachedResultName": "Course Module Outline Folder for n8n"
}
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Nota Adhesiva",
"type": "n8n-nodes-base.stickyNote",
"position": [
-140,
-120
],
"parameters": {
"color": 4,
"width": 260,
"height": 400,
"content": "Google Folder Upload Trigger"
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Nota Adhesiva1",
"type": "n8n-nodes-base.stickyNote",
"position": [
140,
-120
],
"parameters": {
"color": 6,
"width": 220,
"height": 400,
"content": "Google Search File from Folder"
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Nota Adhesiva2",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
-120
],
"parameters": {
"color": 2,
"width": 220,
"height": 400,
"content": "Get File"
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Nota Adhesiva3",
"type": "n8n-nodes-base.stickyNote",
"position": [
860,
-120
],
"parameters": {
"color": 3,
"width": 500,
"height": 680,
"content": "Upload to Pinecone Vector"
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Nota Adhesiva4",
"type": "n8n-nodes-base.stickyNote",
"position": [
620,
-120
],
"parameters": {
"color": 7,
"width": 220,
"height": 400,
"content": "Loop for multiple files"
},
"typeVersion": 1
},
{
"id": "REDACTED_ID",
"name": "Nota Adhesiva5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-740,
-120
],
"parameters": {
"color": 3,
"width": 580,
"height": 1300,
"content": "REDACTED_URL"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {
"Default Data Loader": [
{
"json": {
"isArtificialRecoveredEventItem": true
}
}
],
"Recursive Character Text Splitter": [
{
"json": {
"isArtificialRecoveredEventItem": true
}
}
]
},
"settings": {
"executionOrder": "v1"
},
"versionId": "REDACTED_ID",
"connections": {
"REDACTED_ID": {
"ai_textSplitter": [
[
{
"node": "REDACTED_ID",
"type": "ai_textSplitter",
"index": 0
}
]
]
},
"Embeddings OpenAI": {
"ai_embedding": [
[
{
"node": "Pinecone Vector Store",
"type": "ai_embedding",
"index": 0
}
]
]
},
"Pinecone Vector Store": {
"main": [
[
{
"node": "REDACTED_ID",
"type": "main",
"index": 0
}
]
]
}
}
}¿Cómo usar este flujo de trabajo?
Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.
¿En qué escenarios es adecuado este flujo de trabajo?
Intermedio - Inteligencia Artificial, Operaciones de TI
¿Es de pago?
Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.
Flujos de trabajo relacionados recomendados
Automate With Marc
@marconiAutomating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc
Compartir este flujo de trabajo