mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
451 lines
14 KiB
JSON
451 lines
14 KiB
JSON
{
|
||
"nodes": [
|
||
{
|
||
"id": "base-node",
|
||
"type": "base-node",
|
||
"x": 360,
|
||
"y": 2810,
|
||
"properties": {
|
||
"config": {
|
||
|
||
},
|
||
"height": 825.6,
|
||
"stepName": "基本資訊",
|
||
"node_data": {
|
||
"desc": "",
|
||
"name": "maxkbapplication",
|
||
"prologue": "您好,我是MaxKB小助手,您可以向我提出MaxKB使用問題。\n- MaxKB主要功能有什麼?\n- MaxKB支持哪些大語言模型?\n- MaxKB支持哪些文檔類型?"
|
||
},
|
||
"input_field_list": [
|
||
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"id": "start-node",
|
||
"type": "start-node",
|
||
"x": 430,
|
||
"y": 3660,
|
||
"properties": {
|
||
"config": {
|
||
"fields": [
|
||
{
|
||
"label": "用户问题",
|
||
"value": "question"
|
||
}
|
||
],
|
||
"globalFields": [
|
||
{
|
||
"label": "当前时间",
|
||
"value": "time"
|
||
}
|
||
]
|
||
},
|
||
"fields": [
|
||
{
|
||
"label": "用户问题",
|
||
"value": "question"
|
||
}
|
||
],
|
||
"height": 276,
|
||
"stepName": "開始",
|
||
"globalFields": [
|
||
{
|
||
"label": "当前时间",
|
||
"value": "time"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"id": "b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
|
||
"type": "search-dataset-node",
|
||
"x": 840,
|
||
"y": 3210,
|
||
"properties": {
|
||
"config": {
|
||
"fields": [
|
||
{
|
||
"label": "检索结果的分段列表",
|
||
"value": "paragraph_list"
|
||
},
|
||
{
|
||
"label": "满足直接回答的分段列表",
|
||
"value": "is_hit_handling_method_list"
|
||
},
|
||
{
|
||
"label": "检索结果",
|
||
"value": "data"
|
||
},
|
||
{
|
||
"label": "满足直接回答的分段内容",
|
||
"value": "directly_return"
|
||
}
|
||
]
|
||
},
|
||
"height": 794,
|
||
"stepName": "知識庫檢索",
|
||
"node_data": {
|
||
"dataset_id_list": [
|
||
|
||
],
|
||
"dataset_setting": {
|
||
"top_n": 3,
|
||
"similarity": 0.6,
|
||
"search_mode": "embedding",
|
||
"max_paragraph_char_number": 5000
|
||
},
|
||
"question_reference_address": [
|
||
"start-node",
|
||
"question"
|
||
],
|
||
"source_dataset_id_list": [
|
||
|
||
]
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"id": "fc60863a-dec2-4854-9e5a-7a44b7187a2b",
|
||
"type": "condition-node",
|
||
"x": 1490,
|
||
"y": 3210,
|
||
"properties": {
|
||
"width": 600,
|
||
"config": {
|
||
"fields": [
|
||
{
|
||
"label": "分支名称",
|
||
"value": "branch_name"
|
||
}
|
||
]
|
||
},
|
||
"height": 543.675,
|
||
"stepName": "判斷器",
|
||
"node_data": {
|
||
"branch": [
|
||
{
|
||
"id": "1009",
|
||
"type": "IF",
|
||
"condition": "and",
|
||
"conditions": [
|
||
{
|
||
"field": [
|
||
"b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
|
||
"is_hit_handling_method_list"
|
||
],
|
||
"value": "1",
|
||
"compare": "len_ge"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "4908",
|
||
"type": "ELSE IF 1",
|
||
"condition": "and",
|
||
"conditions": [
|
||
{
|
||
"field": [
|
||
"b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
|
||
"paragraph_list"
|
||
],
|
||
"value": "1",
|
||
"compare": "len_ge"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
"id": "161",
|
||
"type": "ELSE",
|
||
"condition": "and",
|
||
"conditions": [
|
||
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"branch_condition_list": [
|
||
{
|
||
"index": 0,
|
||
"height": 121.225,
|
||
"id": "1009"
|
||
},
|
||
{
|
||
"index": 1,
|
||
"height": 121.225,
|
||
"id": "4908"
|
||
},
|
||
{
|
||
"index": 2,
|
||
"height": 44,
|
||
"id": "161"
|
||
}
|
||
]
|
||
}
|
||
},
|
||
{
|
||
"id": "4ffe1086-25df-4c85-b168-979b5bbf0a26",
|
||
"type": "reply-node",
|
||
"x": 2170,
|
||
"y": 2480,
|
||
"properties": {
|
||
"config": {
|
||
"fields": [
|
||
{
|
||
"label": "内容",
|
||
"value": "answer"
|
||
}
|
||
]
|
||
},
|
||
"height": 378,
|
||
"stepName": "指定回覆",
|
||
"node_data": {
|
||
"fields": [
|
||
"b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
|
||
"directly_return"
|
||
],
|
||
"content": "",
|
||
"reply_type": "referencing",
|
||
"is_result": true
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"id": "f1f1ee18-5a02-46f6-b4e6-226253cdffbb",
|
||
"type": "ai-chat-node",
|
||
"x": 2160,
|
||
"y": 3200,
|
||
"properties": {
|
||
"config": {
|
||
"fields": [
|
||
{
|
||
"label": "AI 回答内容",
|
||
"value": "answer"
|
||
}
|
||
]
|
||
},
|
||
"height": 763,
|
||
"stepName": "AI 對話",
|
||
"node_data": {
|
||
"prompt": "已知資訊:\n{{知識庫檢索.data}}\n問題:\n{{開始.question}}",
|
||
"system": "",
|
||
"model_id": "",
|
||
"dialogue_number": 0,
|
||
"is_result": true
|
||
}
|
||
}
|
||
},
|
||
{
|
||
"id": "309d0eef-c597-46b5-8d51-b9a28aaef4c7",
|
||
"type": "ai-chat-node",
|
||
"x": 2160,
|
||
"y": 3970,
|
||
"properties": {
|
||
"config": {
|
||
"fields": [
|
||
{
|
||
"label": "AI 回答内容",
|
||
"value": "answer"
|
||
}
|
||
]
|
||
},
|
||
"height": 763,
|
||
"stepName": "AI 對話1",
|
||
"node_data": {
|
||
"prompt": "{{開始.question}}",
|
||
"system": "",
|
||
"model_id": "",
|
||
"dialogue_number": 0,
|
||
"is_result": true
|
||
}
|
||
}
|
||
}
|
||
],
|
||
"edges": [
|
||
{
|
||
"id": "7d0f166f-c472-41b2-b9a2-c294f4c83d73",
|
||
"type": "app-edge",
|
||
"sourceNodeId": "start-node",
|
||
"targetNodeId": "b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
|
||
"startPoint": {
|
||
"x": 590,
|
||
"y": 3660
|
||
},
|
||
"endPoint": {
|
||
"x": 680,
|
||
"y": 3210
|
||
},
|
||
"properties": {
|
||
|
||
},
|
||
"pointsList": [
|
||
{
|
||
"x": 590,
|
||
"y": 3660
|
||
},
|
||
{
|
||
"x": 700,
|
||
"y": 3660
|
||
},
|
||
{
|
||
"x": 570,
|
||
"y": 3210
|
||
},
|
||
{
|
||
"x": 680,
|
||
"y": 3210
|
||
}
|
||
],
|
||
"sourceAnchorId": "start-node_right",
|
||
"targetAnchorId": "b931efe5-5b66-46e0-ae3b-0160cb18eeb5_left"
|
||
},
|
||
{
|
||
"id": "35cb86dd-f328-429e-a973-12fd7218b696",
|
||
"type": "app-edge",
|
||
"sourceNodeId": "b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
|
||
"targetNodeId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b",
|
||
"startPoint": {
|
||
"x": 1000,
|
||
"y": 3210
|
||
},
|
||
"endPoint": {
|
||
"x": 1200,
|
||
"y": 3210
|
||
},
|
||
"properties": {
|
||
|
||
},
|
||
"pointsList": [
|
||
{
|
||
"x": 1000,
|
||
"y": 3210
|
||
},
|
||
{
|
||
"x": 1110,
|
||
"y": 3210
|
||
},
|
||
{
|
||
"x": 1090,
|
||
"y": 3210
|
||
},
|
||
{
|
||
"x": 1200,
|
||
"y": 3210
|
||
}
|
||
],
|
||
"sourceAnchorId": "b931efe5-5b66-46e0-ae3b-0160cb18eeb5_right",
|
||
"targetAnchorId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b_left"
|
||
},
|
||
{
|
||
"id": "e8f6cfe6-7e48-41cd-abd3-abfb5304d0d8",
|
||
"type": "app-edge",
|
||
"sourceNodeId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b",
|
||
"targetNodeId": "4ffe1086-25df-4c85-b168-979b5bbf0a26",
|
||
"startPoint": {
|
||
"x": 1780,
|
||
"y": 3073.775
|
||
},
|
||
"endPoint": {
|
||
"x": 2010,
|
||
"y": 2480
|
||
},
|
||
"properties": {
|
||
|
||
},
|
||
"pointsList": [
|
||
{
|
||
"x": 1780,
|
||
"y": 3073.775
|
||
},
|
||
{
|
||
"x": 1890,
|
||
"y": 3073.775
|
||
},
|
||
{
|
||
"x": 1900,
|
||
"y": 2480
|
||
},
|
||
{
|
||
"x": 2010,
|
||
"y": 2480
|
||
}
|
||
],
|
||
"sourceAnchorId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b_1009_right",
|
||
"targetAnchorId": "4ffe1086-25df-4c85-b168-979b5bbf0a26_left"
|
||
},
|
||
{
|
||
"id": "994ff325-6f7a-4ebc-b61b-10e15519d6d2",
|
||
"type": "app-edge",
|
||
"sourceNodeId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b",
|
||
"targetNodeId": "f1f1ee18-5a02-46f6-b4e6-226253cdffbb",
|
||
"startPoint": {
|
||
"x": 1780,
|
||
"y": 3203
|
||
},
|
||
"endPoint": {
|
||
"x": 2000,
|
||
"y": 3200
|
||
},
|
||
"properties": {
|
||
|
||
},
|
||
"pointsList": [
|
||
{
|
||
"x": 1780,
|
||
"y": 3203
|
||
},
|
||
{
|
||
"x": 1890,
|
||
"y": 3203
|
||
},
|
||
{
|
||
"x": 1890,
|
||
"y": 3200
|
||
},
|
||
{
|
||
"x": 2000,
|
||
"y": 3200
|
||
}
|
||
],
|
||
"sourceAnchorId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b_4908_right",
|
||
"targetAnchorId": "f1f1ee18-5a02-46f6-b4e6-226253cdffbb_left"
|
||
},
|
||
{
|
||
"id": "19270caf-bb9f-4ba7-9bf8-200aa70fecd5",
|
||
"type": "app-edge",
|
||
"sourceNodeId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b",
|
||
"targetNodeId": "309d0eef-c597-46b5-8d51-b9a28aaef4c7",
|
||
"startPoint": {
|
||
"x": 1780,
|
||
"y": 3293.6124999999997
|
||
},
|
||
"endPoint": {
|
||
"x": 2000,
|
||
"y": 3970
|
||
},
|
||
"properties": {
|
||
|
||
},
|
||
"pointsList": [
|
||
{
|
||
"x": 1780,
|
||
"y": 3293.6124999999997
|
||
},
|
||
{
|
||
"x": 1890,
|
||
"y": 3293.6124999999997
|
||
},
|
||
{
|
||
"x": 1890,
|
||
"y": 3970
|
||
},
|
||
{
|
||
"x": 2000,
|
||
"y": 3970
|
||
}
|
||
],
|
||
"sourceAnchorId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b_161_right",
|
||
"targetAnchorId": "309d0eef-c597-46b5-8d51-b9a28aaef4c7_left"
|
||
}
|
||
]
|
||
} |