default_workflow_zh.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. {
  2. "nodes": [
  3. {
  4. "id": "base-node",
  5. "type": "base-node",
  6. "x": 360,
  7. "y": 2810,
  8. "properties": {
  9. "config": {
  10. },
  11. "height": 825.6,
  12. "stepName": "基本信息",
  13. "node_data": {
  14. "desc": "",
  15. "name": "maxkbapplication",
  16. "prologue": "您好,我是 MaxKB 小助手,您可以向我提出 MaxKB 使用问题。\n- MaxKB 主要功能有什么?\n- MaxKB 支持哪些大语言模型?\n- MaxKB 支持哪些文档类型?"
  17. },
  18. "input_field_list": [
  19. ]
  20. }
  21. },
  22. {
  23. "id": "start-node",
  24. "type": "start-node",
  25. "x": 430,
  26. "y": 3660,
  27. "properties": {
  28. "config": {
  29. "fields": [
  30. {
  31. "label": "用户问题",
  32. "value": "question"
  33. }
  34. ],
  35. "globalFields": [
  36. {
  37. "label": "当前时间",
  38. "value": "time"
  39. }
  40. ]
  41. },
  42. "fields": [
  43. {
  44. "label": "用户问题",
  45. "value": "question"
  46. }
  47. ],
  48. "height": 276,
  49. "stepName": "开始",
  50. "globalFields": [
  51. {
  52. "label": "当前时间",
  53. "value": "time"
  54. }
  55. ]
  56. }
  57. },
  58. {
  59. "id": "b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
  60. "type": "search-dataset-node",
  61. "x": 840,
  62. "y": 3210,
  63. "properties": {
  64. "config": {
  65. "fields": [
  66. {
  67. "label": "检索结果的分段列表",
  68. "value": "paragraph_list"
  69. },
  70. {
  71. "label": "满足直接回答的分段列表",
  72. "value": "is_hit_handling_method_list"
  73. },
  74. {
  75. "label": "检索结果",
  76. "value": "data"
  77. },
  78. {
  79. "label": "满足直接回答的分段内容",
  80. "value": "directly_return"
  81. }
  82. ]
  83. },
  84. "height": 794,
  85. "stepName": "知识库检索",
  86. "node_data": {
  87. "dataset_id_list": [
  88. ],
  89. "dataset_setting": {
  90. "top_n": 3,
  91. "similarity": 0.6,
  92. "search_mode": "embedding",
  93. "max_paragraph_char_number": 5000
  94. },
  95. "question_reference_address": [
  96. "start-node",
  97. "question"
  98. ],
  99. "source_dataset_id_list": [
  100. ]
  101. }
  102. }
  103. },
  104. {
  105. "id": "fc60863a-dec2-4854-9e5a-7a44b7187a2b",
  106. "type": "condition-node",
  107. "x": 1490,
  108. "y": 3210,
  109. "properties": {
  110. "width": 600,
  111. "config": {
  112. "fields": [
  113. {
  114. "label": "分支名称",
  115. "value": "branch_name"
  116. }
  117. ]
  118. },
  119. "height": 543.675,
  120. "stepName": "判断器",
  121. "node_data": {
  122. "branch": [
  123. {
  124. "id": "1009",
  125. "type": "IF",
  126. "condition": "and",
  127. "conditions": [
  128. {
  129. "field": [
  130. "b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
  131. "is_hit_handling_method_list"
  132. ],
  133. "value": "1",
  134. "compare": "len_ge"
  135. }
  136. ]
  137. },
  138. {
  139. "id": "4908",
  140. "type": "ELSE IF 1",
  141. "condition": "and",
  142. "conditions": [
  143. {
  144. "field": [
  145. "b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
  146. "paragraph_list"
  147. ],
  148. "value": "1",
  149. "compare": "len_ge"
  150. }
  151. ]
  152. },
  153. {
  154. "id": "161",
  155. "type": "ELSE",
  156. "condition": "and",
  157. "conditions": [
  158. ]
  159. }
  160. ]
  161. },
  162. "branch_condition_list": [
  163. {
  164. "index": 0,
  165. "height": 121.225,
  166. "id": "1009"
  167. },
  168. {
  169. "index": 1,
  170. "height": 121.225,
  171. "id": "4908"
  172. },
  173. {
  174. "index": 2,
  175. "height": 44,
  176. "id": "161"
  177. }
  178. ]
  179. }
  180. },
  181. {
  182. "id": "4ffe1086-25df-4c85-b168-979b5bbf0a26",
  183. "type": "reply-node",
  184. "x": 2170,
  185. "y": 2480,
  186. "properties": {
  187. "config": {
  188. "fields": [
  189. {
  190. "label": "内容",
  191. "value": "answer"
  192. }
  193. ]
  194. },
  195. "height": 378,
  196. "stepName": "指定回复",
  197. "node_data": {
  198. "fields": [
  199. "b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
  200. "directly_return"
  201. ],
  202. "content": "",
  203. "reply_type": "referencing",
  204. "is_result": true
  205. }
  206. }
  207. },
  208. {
  209. "id": "f1f1ee18-5a02-46f6-b4e6-226253cdffbb",
  210. "type": "ai-chat-node",
  211. "x": 2160,
  212. "y": 3200,
  213. "properties": {
  214. "config": {
  215. "fields": [
  216. {
  217. "label": "AI 回答内容",
  218. "value": "answer"
  219. }
  220. ]
  221. },
  222. "height": 763,
  223. "stepName": "AI 对话",
  224. "node_data": {
  225. "prompt": "已知信息:\n{{知识库检索.data}}\n问题:\n{{开始.question}}",
  226. "system": "",
  227. "model_id": "",
  228. "dialogue_number": 0,
  229. "is_result": true
  230. }
  231. }
  232. },
  233. {
  234. "id": "309d0eef-c597-46b5-8d51-b9a28aaef4c7",
  235. "type": "ai-chat-node",
  236. "x": 2160,
  237. "y": 3970,
  238. "properties": {
  239. "config": {
  240. "fields": [
  241. {
  242. "label": "AI 回答内容",
  243. "value": "answer"
  244. }
  245. ]
  246. },
  247. "height": 763,
  248. "stepName": "AI 对话1",
  249. "node_data": {
  250. "prompt": "{{开始.question}}",
  251. "system": "",
  252. "model_id": "",
  253. "dialogue_number": 0,
  254. "is_result": true
  255. }
  256. }
  257. }
  258. ],
  259. "edges": [
  260. {
  261. "id": "7d0f166f-c472-41b2-b9a2-c294f4c83d73",
  262. "type": "app-edge",
  263. "sourceNodeId": "start-node",
  264. "targetNodeId": "b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
  265. "startPoint": {
  266. "x": 590,
  267. "y": 3660
  268. },
  269. "endPoint": {
  270. "x": 680,
  271. "y": 3210
  272. },
  273. "properties": {
  274. },
  275. "pointsList": [
  276. {
  277. "x": 590,
  278. "y": 3660
  279. },
  280. {
  281. "x": 700,
  282. "y": 3660
  283. },
  284. {
  285. "x": 570,
  286. "y": 3210
  287. },
  288. {
  289. "x": 680,
  290. "y": 3210
  291. }
  292. ],
  293. "sourceAnchorId": "start-node_right",
  294. "targetAnchorId": "b931efe5-5b66-46e0-ae3b-0160cb18eeb5_left"
  295. },
  296. {
  297. "id": "35cb86dd-f328-429e-a973-12fd7218b696",
  298. "type": "app-edge",
  299. "sourceNodeId": "b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
  300. "targetNodeId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b",
  301. "startPoint": {
  302. "x": 1000,
  303. "y": 3210
  304. },
  305. "endPoint": {
  306. "x": 1200,
  307. "y": 3210
  308. },
  309. "properties": {
  310. },
  311. "pointsList": [
  312. {
  313. "x": 1000,
  314. "y": 3210
  315. },
  316. {
  317. "x": 1110,
  318. "y": 3210
  319. },
  320. {
  321. "x": 1090,
  322. "y": 3210
  323. },
  324. {
  325. "x": 1200,
  326. "y": 3210
  327. }
  328. ],
  329. "sourceAnchorId": "b931efe5-5b66-46e0-ae3b-0160cb18eeb5_right",
  330. "targetAnchorId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b_left"
  331. },
  332. {
  333. "id": "e8f6cfe6-7e48-41cd-abd3-abfb5304d0d8",
  334. "type": "app-edge",
  335. "sourceNodeId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b",
  336. "targetNodeId": "4ffe1086-25df-4c85-b168-979b5bbf0a26",
  337. "startPoint": {
  338. "x": 1780,
  339. "y": 3073.775
  340. },
  341. "endPoint": {
  342. "x": 2010,
  343. "y": 2480
  344. },
  345. "properties": {
  346. },
  347. "pointsList": [
  348. {
  349. "x": 1780,
  350. "y": 3073.775
  351. },
  352. {
  353. "x": 1890,
  354. "y": 3073.775
  355. },
  356. {
  357. "x": 1900,
  358. "y": 2480
  359. },
  360. {
  361. "x": 2010,
  362. "y": 2480
  363. }
  364. ],
  365. "sourceAnchorId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b_1009_right",
  366. "targetAnchorId": "4ffe1086-25df-4c85-b168-979b5bbf0a26_left"
  367. },
  368. {
  369. "id": "994ff325-6f7a-4ebc-b61b-10e15519d6d2",
  370. "type": "app-edge",
  371. "sourceNodeId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b",
  372. "targetNodeId": "f1f1ee18-5a02-46f6-b4e6-226253cdffbb",
  373. "startPoint": {
  374. "x": 1780,
  375. "y": 3203
  376. },
  377. "endPoint": {
  378. "x": 2000,
  379. "y": 3200
  380. },
  381. "properties": {
  382. },
  383. "pointsList": [
  384. {
  385. "x": 1780,
  386. "y": 3203
  387. },
  388. {
  389. "x": 1890,
  390. "y": 3203
  391. },
  392. {
  393. "x": 1890,
  394. "y": 3200
  395. },
  396. {
  397. "x": 2000,
  398. "y": 3200
  399. }
  400. ],
  401. "sourceAnchorId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b_4908_right",
  402. "targetAnchorId": "f1f1ee18-5a02-46f6-b4e6-226253cdffbb_left"
  403. },
  404. {
  405. "id": "19270caf-bb9f-4ba7-9bf8-200aa70fecd5",
  406. "type": "app-edge",
  407. "sourceNodeId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b",
  408. "targetNodeId": "309d0eef-c597-46b5-8d51-b9a28aaef4c7",
  409. "startPoint": {
  410. "x": 1780,
  411. "y": 3293.6124999999997
  412. },
  413. "endPoint": {
  414. "x": 2000,
  415. "y": 3970
  416. },
  417. "properties": {
  418. },
  419. "pointsList": [
  420. {
  421. "x": 1780,
  422. "y": 3293.6124999999997
  423. },
  424. {
  425. "x": 1890,
  426. "y": 3293.6124999999997
  427. },
  428. {
  429. "x": 1890,
  430. "y": 3970
  431. },
  432. {
  433. "x": 2000,
  434. "y": 3970
  435. }
  436. ],
  437. "sourceAnchorId": "fc60863a-dec2-4854-9e5a-7a44b7187a2b_161_right",
  438. "targetAnchorId": "309d0eef-c597-46b5-8d51-b9a28aaef4c7_left"
  439. }
  440. ]
  441. }