- workflow/03_rag/README.md: RAG 워크플로우 인덱스 SSOT - 4개 흐름 문서 추가 (companyx_grounding, rag_search, rag_upload, skill_embedding) - workflow README에 03_rag 인덱스 섹션 연결 - JSON 4개에 settings 필드 추가 Made-with: Cursor
84 lines
2.4 KiB
JSON
84 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 }]] }
|
|
},
|
|
"settings": {},
|
|
"pinData": {},
|
|
"meta": { "templateCredsSetupCompleted": true, "instanceId": "robeing-rag" }
|
|
}
|