Files
metis/metis-starter/src/test/resources/flow.json
2025-05-05 01:14:39 +08:00

210 lines
5.2 KiB
JSON

{
"appId": 1919041086810968064,
"name": "llm运行测试",
"description": "llm运行测试",
"graph": {
"nodes": [
{
"id": "node_5",
"type": "start",
"initialized": false,
"position": {
"x": -221.9030111576117,
"y": 59.99186709389075
},
"data": {
"label": "开始",
"icon": "SuitcaseLine",
"toolbarPosition": "right",
"config": {
"variables": [
{
"variable": "query",
"label": "查询条件",
"type": "text-input",
"maxLength": 60,
"required": true
},
{
"variable": "background",
"label": "背景",
"type": "text-input",
"maxLength": 60,
"required": true
}
]
},
"handles": [
{
"id": "51",
"type": "source",
"position": "right",
"connectable": true
}
]
},
"customType": null,
"width": 200,
"height": 40
},
{
"id": "node_700",
"type": "llm",
"initialized": false,
"position": {
"x": 6.81248018754539,
"y": 68.80431452712736
},
"data": {
"label": "llm",
"icon": "",
"toolbarPosition": "right",
"config": {
"context": "node_5.background",
"retryConfig": {
"enable": true,
"maxRetries": 3,
"retryInterval": 1000
},
"promptTemplate": [
{
"role": "system",
"text": "你的背景是${context}",
"id": "1"
},
{
"role": "user",
"text": "请你解释一下上述问题${node_5.query}",
"id": "2"
}
],
"model": {
"modelId": 1,
"modelName": "Qwen/Qwen2.5-Coder-32B-Instruct",
"completionParams": {
"temperature": 0.7,
"topP": 0.9,
"maxTokens": 1024,
"seed": 1234,
"presencePenalty": 0,
"responseFormat": "text"
}
}
},
"handles": [
{
"id": "57",
"type": "source",
"position": "left",
"connectable": true
},
{
"id": "35",
"type": "source",
"position": "right",
"connectable": true
}
]
},
"customType": null,
"width": 200,
"height": 40
},
{
"id": "node_802",
"type": "end",
"initialized": false,
"position": {
"x": 221.7192701843481,
"y": 67.57111673995398
},
"data": {
"label": "结束",
"icon": "",
"toolbarPosition": "right",
"config": {
"variables": [
{
"variable": "query",
"variableKey": "node_5.query"
},
{
"variable": "background",
"variableKey": "node_5.background"
},
{
"variable": "usage",
"variableKey": "node_700.usage"
},
{
"variable": "finishReason",
"variableKey": "node_700.finishReason"
},
{
"variable": "text",
"variableKey": "node_700.text"
}
]
},
"handles": [
{
"id": "13",
"type": "target",
"position": "left",
"connectable": true
}
]
},
"customType": null,
"width": 200,
"height": 40
}
],
"edges": [
{
"id": "vueflow__edge-551-70057",
"type": "default",
"source": "node_5",
"target": "node_700",
"sourceHandle": "51",
"targetHandle": "57",
"data": {},
"label": "",
"animated": true,
"markerStart": "none",
"markerEnd": "none",
"sourceX": -15.903013850339164,
"sourceY": 79.9918688890424,
"targetX": 4.312479626560497,
"targetY": 88.80432081015815
},
{
"id": "802",
"type": "default",
"source": "node_700",
"target": "node_802",
"sourceHandle": "35",
"targetHandle": "13",
"data": {},
"label": "",
"animated": true,
"markerStart": "none",
"markerEnd": "none",
"sourceX": 212.81248478762151,
"sourceY": 88.80432081015815,
"targetX": 219.2192701843481,
"targetY": 87.5711275108639
}
],
"position": [
987.9498689166815,
102.12938290987324
],
"zoom": 3.5988075528449266,
"viewport": {
"x": 987.9498689166815,
"y": 102.12938290987324,
"zoom": 3.5988075528449266
}
}
}