DOCS/workflow/03_rag/rag_upload_indexing_pipeline.json
2026-03-18 23:49:20 +09:00

83 lines
2.4 KiB
JSON

{
"name": "robeing-rag-upload-indexing-pipeline",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "rag/upload-index",
"responseMode": "responseNode",
"options": {}
},
"id": "rag-up-001",
"name": "Webhook In",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [200, 240]
},
{
"parameters": {
"jsCode": "const body = $json.body || {};\nreturn {\n team_id: body.team_id,\n file_url: body.file_url || '',\n file_name: body.file_name || '',\n metadata: body.metadata || {},\n request_body: body\n};"
},
"id": "rag-up-002",
"name": "Normalize Upload Payload",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [440, 240]
},
{
"parameters": {
"method": "POST",
"url": "=http://192.168.219.52:8508/api/upload",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "X-User-Id",
"value": "=system"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ $json.request_body }}",
"options": {
"response": {
"response": {
"fullResponse": true
}
},
"timeout": 120000
}
},
"id": "rag-up-003",
"name": "Call skill-rag-file Upload",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [690, 240]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ $json.body || $json }}",
"options": {}
},
"id": "rag-up-004",
"name": "Return Response",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [930, 240]
}
],
"connections": {
"Webhook In": { "main": [[{ "node": "Normalize Upload Payload", "type": "main", "index": 0 }]] },
"Normalize Upload Payload": { "main": [[{ "node": "Call skill-rag-file Upload", "type": "main", "index": 0 }]] },
"Call skill-rag-file Upload": { "main": [[{ "node": "Return Response", "type": "main", "index": 0 }]] }
},
"pinData": {},
"meta": { "templateCredsSetupCompleted": true, "instanceId": "robeing-rag" }
}