| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 |
- {
- "nodes": [
- {
- "id": "base-node",
- "type": "base-node",
- "x": 360,
- "y": 2810,
- "properties": {
- "config": {
- },
- "height": 825.6,
- "stepName": "Base",
- "node_data": {
- "desc": "",
- "name": "maxkbapplication",
- "prologue": "Hello, I am the MaxKB assistant. You can ask me about MaxKB usage issues.\n-What are the main functions of MaxKB?\n-What major language models does MaxKB support?\n-What document types does MaxKB support?"
- },
- "input_field_list": [
- ]
- }
- },
- {
- "id": "start-node",
- "type": "start-node",
- "x": 430,
- "y": 3660,
- "properties": {
- "config": {
- "fields": [
- {
- "label": "User Question",
- "value": "question"
- }
- ],
- "globalFields": [
- {
- "label": "Current Time",
- "value": "time"
- }
- ]
- },
- "fields": [
- {
- "label": "User Question",
- "value": "question"
- }
- ],
- "height": 276,
- "stepName": "Start",
- "globalFields": [
- {
- "label": "Current Time",
- "value": "time"
- }
- ]
- }
- },
- {
- "id": "b931efe5-5b66-46e0-ae3b-0160cb18eeb5",
- "type": "search-dataset-node",
- "x": 840,
- "y": 3210,
- "properties": {
- "config": {
- "fields": [
- {
- "label": "List of Retrieved Paragraphs",
- "value": "paragraph_list"
- },
- {
- "label": "List of Paragraphs Satisfying Direct Answer",
- "value": "is_hit_handling_method_list"
- },
- {
- "label": "Search Results",
- "value": "data"
- },
- {
- "label": "Content of Paragraphs Satisfying Direct Answer",
- "value": "directly_return"
- }
- ]
- },
- "height": 794,
- "stepName": "Knowledge Search",
- "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": "Branch Name",
- "value": "branch_name"
- }
- ]
- },
- "height": 543.675,
- "stepName": "Conditional Branch",
- "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": "Content",
- "value": "answer"
- }
- ]
- },
- "height": 378,
- "stepName": "Specified Reply",
- "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 Answer Content",
- "value": "answer"
- }
- ]
- },
- "height": 763,
- "stepName": "AI Chat",
- "node_data": {
- "prompt": "Known information:\n{{Knowledge Search.data}}\nQuestion:\n{{Start.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 Answer Content",
- "value": "answer"
- }
- ]
- },
- "height": 763,
- "stepName": "AI Chat1",
- "node_data": {
- "prompt": "{{Start.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"
- }
- ]
- }
|