DOCS/workflow/_archive/skill_embedding_bridge.json
happybell80 45847403fe docs: workflow Phase 1 정리 — 레거시 이동, n8n 제거, IP 하드코딩 제거
- 레거시 .md 2건(slack_basic_dialogue, service_health_check)을 _archive/로 이동
- n8n .json 파일 18건을 _archive/로 이동
- README.md 전면 재작성: n8n 전제 제거, 현행 아키텍처(APScheduler DB + SKILL.md) 반영
- 구 IP(192.168.219.52)를 localhost로 교체 (infrastructure-ssot-principle 준수)

Refs: DOCS#8

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 07:48:39 +09:00

81 lines
2.7 KiB
JSON

{
"name": "robeing-skill-embedding-bridge",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "v1/multimodal-embed",
"responseMode": "responseNode",
"options": {}
},
"id": "embed-001",
"name": "Webhook In",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [200, 240]
},
{
"parameters": {
"jsCode": "const body = $json.body || {};\nreturn {\n api_key: body.api_key,\n gemini_payload: {\n model: 'models/gemini-embedding-2-preview',\n task_type: body.task_type || 'RETRIEVAL_DOCUMENT',\n content: body.content || { parts: [{ text: body.text || '' }] },\n output_dimensionality: body.dimension || 768\n }\n};"
},
"id": "embed-002",
"name": "Build Gemini Payload",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [450, 240]
},
{
"parameters": {
"method": "POST",
"url": "=https://generativelanguage.googleapis.com/v1beta/models/gemini-embedding-2-preview:embedContent?key={{$json.api_key}}",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ $json.gemini_payload }}",
"options": {
"response": {
"response": {
"fullResponse": true
}
}
}
},
"id": "embed-003",
"name": "Call Gemini Embedding API",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [700, 240]
},
{
"parameters": {
"jsCode": "const body = $json.body || {};\nreturn {\n success: true,\n embedding: body.embedding?.values || [],\n model: 'gemini-embedding-2-preview'\n};"
},
"id": "embed-004",
"name": "Normalize Response",
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [940, 240]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ $json }}",
"options": {}
},
"id": "embed-005",
"name": "Return Response",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [1170, 240]
}
],
"connections": {
"Webhook In": { "main": [[{ "node": "Build Gemini Payload", "type": "main", "index": 0 }]] },
"Build Gemini Payload": { "main": [[{ "node": "Call Gemini Embedding API", "type": "main", "index": 0 }]] },
"Call Gemini Embedding API": { "main": [[{ "node": "Normalize Response", "type": "main", "index": 0 }]] },
"Normalize Response": { "main": [[{ "node": "Return Response", "type": "main", "index": 0 }]] }
},
"settings": {},
"pinData": {},
"meta": { "templateCredsSetupCompleted": true, "instanceId": "robeing-rag" }
}