You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

knowledge_base_report.json 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. {
  2. "id": 20,
  3. "title": "Report Agent Using Knowledge Base",
  4. "description": "A report generation assistant using local knowledge base, with advanced capabilities in task planning, reasoning, and reflective analysis. Recommended for academic research paper Q&A",
  5. "canvas_type": "Agent",
  6. "dsl": {
  7. "components": {
  8. "Agent:NewPumasLick": {
  9. "downstream": [
  10. "Message:OrangeYearsShine"
  11. ],
  12. "obj": {
  13. "component_name": "Agent",
  14. "params": {
  15. "delay_after_error": 1,
  16. "description": "",
  17. "exception_comment": "",
  18. "exception_default_value": "",
  19. "exception_goto": [],
  20. "exception_method": null,
  21. "frequencyPenaltyEnabled": false,
  22. "frequency_penalty": 0.5,
  23. "llm_id": "qwen3-235b-a22b-instruct-2507@Tongyi-Qianwen",
  24. "maxTokensEnabled": true,
  25. "max_retries": 3,
  26. "max_rounds": 3,
  27. "max_tokens": 128000,
  28. "mcp": [],
  29. "message_history_window_size": 12,
  30. "outputs": {
  31. "content": {
  32. "type": "string",
  33. "value": ""
  34. }
  35. },
  36. "parameter": "Precise",
  37. "presencePenaltyEnabled": false,
  38. "presence_penalty": 0.5,
  39. "prompts": [
  40. {
  41. "content": "# User Query\n {sys.query}",
  42. "role": "user"
  43. }
  44. ],
  45. "sys_prompt": "## Role & Task\nYou are a **\u201cKnowledge Base Retrieval Q\\&A Agent\u201d** whose goal is to break down the user\u2019s question into retrievable subtasks, and then produce a multi-source-verified, structured, and actionable research report using the internal knowledge base.\n## Execution Framework (Detailed Steps & Key Points)\n1. **Assessment & Decomposition**\n * Actions:\n * Automatically extract: main topic, subtopics, entities (people/organizations/products/technologies), time window, geographic/business scope.\n * Output as a list: N facts/data points that must be collected (*N* ranges from 5\u201320 depending on question complexity).\n2. **Query Type Determination (Rule-Based)**\n * Example rules:\n * If the question involves a single issue but requests \u201cmethod comparison/multiple explanations\u201d \u2192 use **depth-first**.\n * If the question can naturally be split into \u22653 independent sub-questions \u2192 use **breadth-first**.\n * If the question can be answered by a single fact/specification/definition \u2192 use **simple query**.\n3. **Research Plan Formulation**\n * Depth-first: define 3\u20135 perspectives (methodology/stakeholders/time dimension/technical route, etc.), assign search keywords, target document types, and output format for each perspective.\n * Breadth-first: list subtasks, prioritize them, and assign search terms.\n * Simple query: directly provide the search sentence and required fields.\n4. **Retrieval Execution**\n * After retrieval: perform coverage check (does it contain the key facts?) and quality check (source diversity, authority, latest update time).\n * If standards are not met, automatically loop: rewrite queries (synonyms/cross-domain terms) and retry \u22643 times, or flag as requiring external search.\n5. **Integration & Reasoning**\n * Build the answer using a **fact\u2013evidence\u2013reasoning** chain. For each conclusion, attach 1\u20132 strongest pieces of evidence.\n---\n## Quality Gate Checklist (Verify at Each Stage)\n* **Stage 1 (Decomposition)**:\n * [ ] Key concepts and expected outputs identified\n * [ ] Required facts/data points listed\n* **Stage 2 (Retrieval)**:\n * [ ] Meets quality standards (see above)\n * [ ] If not met: execute query iteration\n* **Stage 3 (Generation)**:\n * [ ] Each conclusion has at least one direct evidence source\n * [ ] State assumptions/uncertainties\n * [ ] Provide next-step suggestions or experiment/retrieval plans\n * [ ] Final length and depth match user expectations (comply with word count/format if specified)\n---\n## Core Principles\n1. **Strict reliance on the knowledge base**: answers must be **fully bounded** by the content retrieved from the knowledge base.\n2. **No fabrication**: do not generate, infer, or create information that is not explicitly present in the knowledge base.\n3. **Accuracy first**: prefer incompleteness over inaccurate content.\n4. **Output format**:\n * Hierarchically clear modular structure\n * Logical grouping according to the MECE principle\n * Professionally presented formatting\n * Step-by-step cognitive guidance\n * Reasonable use of headings and dividers for clarity\n * *Italicize* key parameters\n * **Bold** critical information\n5. **LaTeX formula requirements**:\n * Inline formulas: start and end with `$`\n * Block formulas: start and end with `$$`, each `$$` on its own line\n * Block formula content must comply with LaTeX math syntax\n * Verify formula correctness\n---\n## Additional Notes (Interaction & Failure Strategy)\n* If the knowledge base does not cover critical facts: explicitly inform the user (with sample wording)\n* For time-sensitive issues: enforce time filtering in the search request, and indicate the latest retrieval date in the answer.\n* Language requirement: answer in the user\u2019s preferred language\n",
  46. "temperature": "0.1",
  47. "temperatureEnabled": true,
  48. "tools": [
  49. {
  50. "component_name": "Retrieval",
  51. "name": "Retrieval",
  52. "params": {
  53. "cross_languages": [],
  54. "description": "",
  55. "empty_response": "",
  56. "kb_ids": [],
  57. "keywords_similarity_weight": 0.7,
  58. "outputs": {
  59. "formalized_content": {
  60. "type": "string",
  61. "value": ""
  62. }
  63. },
  64. "rerank_id": "",
  65. "similarity_threshold": 0.2,
  66. "top_k": 1024,
  67. "top_n": 8,
  68. "use_kg": false
  69. }
  70. }
  71. ],
  72. "topPEnabled": false,
  73. "top_p": 0.75,
  74. "user_prompt": "",
  75. "visual_files_var": ""
  76. }
  77. },
  78. "upstream": [
  79. "begin"
  80. ]
  81. },
  82. "Message:OrangeYearsShine": {
  83. "downstream": [],
  84. "obj": {
  85. "component_name": "Message",
  86. "params": {
  87. "content": [
  88. "{Agent:NewPumasLick@content}"
  89. ]
  90. }
  91. },
  92. "upstream": [
  93. "Agent:NewPumasLick"
  94. ]
  95. },
  96. "begin": {
  97. "downstream": [
  98. "Agent:NewPumasLick"
  99. ],
  100. "obj": {
  101. "component_name": "Begin",
  102. "params": {
  103. "enablePrologue": true,
  104. "inputs": {},
  105. "mode": "conversational",
  106. "prologue": "\u4f60\u597d\uff01 \u6211\u662f\u4f60\u7684\u52a9\u7406\uff0c\u6709\u4ec0\u4e48\u53ef\u4ee5\u5e2e\u5230\u4f60\u7684\u5417\uff1f"
  107. }
  108. },
  109. "upstream": []
  110. }
  111. },
  112. "globals": {
  113. "sys.conversation_turns": 0,
  114. "sys.files": [],
  115. "sys.query": "",
  116. "sys.user_id": ""
  117. },
  118. "graph": {
  119. "edges": [
  120. {
  121. "data": {
  122. "isHovered": false
  123. },
  124. "id": "xy-edge__beginstart-Agent:NewPumasLickend",
  125. "source": "begin",
  126. "sourceHandle": "start",
  127. "target": "Agent:NewPumasLick",
  128. "targetHandle": "end"
  129. },
  130. {
  131. "data": {
  132. "isHovered": false
  133. },
  134. "id": "xy-edge__Agent:NewPumasLickstart-Message:OrangeYearsShineend",
  135. "markerEnd": "logo",
  136. "source": "Agent:NewPumasLick",
  137. "sourceHandle": "start",
  138. "style": {
  139. "stroke": "rgba(91, 93, 106, 1)",
  140. "strokeWidth": 1
  141. },
  142. "target": "Message:OrangeYearsShine",
  143. "targetHandle": "end",
  144. "type": "buttonEdge",
  145. "zIndex": 1001
  146. },
  147. {
  148. "data": {
  149. "isHovered": false
  150. },
  151. "id": "xy-edge__Agent:NewPumasLicktool-Tool:AllBirdsNailend",
  152. "selected": false,
  153. "source": "Agent:NewPumasLick",
  154. "sourceHandle": "tool",
  155. "target": "Tool:AllBirdsNail",
  156. "targetHandle": "end"
  157. }
  158. ],
  159. "nodes": [
  160. {
  161. "data": {
  162. "form": {
  163. "enablePrologue": true,
  164. "inputs": {},
  165. "mode": "conversational",
  166. "prologue": "\u4f60\u597d\uff01 \u6211\u662f\u4f60\u7684\u52a9\u7406\uff0c\u6709\u4ec0\u4e48\u53ef\u4ee5\u5e2e\u5230\u4f60\u7684\u5417\uff1f"
  167. },
  168. "label": "Begin",
  169. "name": "begin"
  170. },
  171. "dragging": false,
  172. "id": "begin",
  173. "measured": {
  174. "height": 48,
  175. "width": 200
  176. },
  177. "position": {
  178. "x": -9.569875358221438,
  179. "y": 205.84018385864917
  180. },
  181. "selected": false,
  182. "sourcePosition": "left",
  183. "targetPosition": "right",
  184. "type": "beginNode"
  185. },
  186. {
  187. "data": {
  188. "form": {
  189. "content": [
  190. "{Agent:NewPumasLick@content}"
  191. ]
  192. },
  193. "label": "Message",
  194. "name": "Response"
  195. },
  196. "dragging": false,
  197. "id": "Message:OrangeYearsShine",
  198. "measured": {
  199. "height": 56,
  200. "width": 200
  201. },
  202. "position": {
  203. "x": 734.4061285881053,
  204. "y": 199.9706031723009
  205. },
  206. "selected": false,
  207. "sourcePosition": "right",
  208. "targetPosition": "left",
  209. "type": "messageNode"
  210. },
  211. {
  212. "data": {
  213. "form": {
  214. "delay_after_error": 1,
  215. "description": "",
  216. "exception_comment": "",
  217. "exception_default_value": "",
  218. "exception_goto": [],
  219. "exception_method": null,
  220. "frequencyPenaltyEnabled": false,
  221. "frequency_penalty": 0.5,
  222. "llm_id": "qwen3-235b-a22b-instruct-2507@Tongyi-Qianwen",
  223. "maxTokensEnabled": true,
  224. "max_retries": 3,
  225. "max_rounds": 3,
  226. "max_tokens": 128000,
  227. "mcp": [],
  228. "message_history_window_size": 12,
  229. "outputs": {
  230. "content": {
  231. "type": "string",
  232. "value": ""
  233. }
  234. },
  235. "parameter": "Precise",
  236. "presencePenaltyEnabled": false,
  237. "presence_penalty": 0.5,
  238. "prompts": [
  239. {
  240. "content": "# User Query\n {sys.query}",
  241. "role": "user"
  242. }
  243. ],
  244. "sys_prompt": "## Role & Task\nYou are a **\u201cKnowledge Base Retrieval Q\\&A Agent\u201d** whose goal is to break down the user\u2019s question into retrievable subtasks, and then produce a multi-source-verified, structured, and actionable research report using the internal knowledge base.\n## Execution Framework (Detailed Steps & Key Points)\n1. **Assessment & Decomposition**\n * Actions:\n * Automatically extract: main topic, subtopics, entities (people/organizations/products/technologies), time window, geographic/business scope.\n * Output as a list: N facts/data points that must be collected (*N* ranges from 5\u201320 depending on question complexity).\n2. **Query Type Determination (Rule-Based)**\n * Example rules:\n * If the question involves a single issue but requests \u201cmethod comparison/multiple explanations\u201d \u2192 use **depth-first**.\n * If the question can naturally be split into \u22653 independent sub-questions \u2192 use **breadth-first**.\n * If the question can be answered by a single fact/specification/definition \u2192 use **simple query**.\n3. **Research Plan Formulation**\n * Depth-first: define 3\u20135 perspectives (methodology/stakeholders/time dimension/technical route, etc.), assign search keywords, target document types, and output format for each perspective.\n * Breadth-first: list subtasks, prioritize them, and assign search terms.\n * Simple query: directly provide the search sentence and required fields.\n4. **Retrieval Execution**\n * After retrieval: perform coverage check (does it contain the key facts?) and quality check (source diversity, authority, latest update time).\n * If standards are not met, automatically loop: rewrite queries (synonyms/cross-domain terms) and retry \u22643 times, or flag as requiring external search.\n5. **Integration & Reasoning**\n * Build the answer using a **fact\u2013evidence\u2013reasoning** chain. For each conclusion, attach 1\u20132 strongest pieces of evidence.\n---\n## Quality Gate Checklist (Verify at Each Stage)\n* **Stage 1 (Decomposition)**:\n * [ ] Key concepts and expected outputs identified\n * [ ] Required facts/data points listed\n* **Stage 2 (Retrieval)**:\n * [ ] Meets quality standards (see above)\n * [ ] If not met: execute query iteration\n* **Stage 3 (Generation)**:\n * [ ] Each conclusion has at least one direct evidence source\n * [ ] State assumptions/uncertainties\n * [ ] Provide next-step suggestions or experiment/retrieval plans\n * [ ] Final length and depth match user expectations (comply with word count/format if specified)\n---\n## Core Principles\n1. **Strict reliance on the knowledge base**: answers must be **fully bounded** by the content retrieved from the knowledge base.\n2. **No fabrication**: do not generate, infer, or create information that is not explicitly present in the knowledge base.\n3. **Accuracy first**: prefer incompleteness over inaccurate content.\n4. **Output format**:\n * Hierarchically clear modular structure\n * Logical grouping according to the MECE principle\n * Professionally presented formatting\n * Step-by-step cognitive guidance\n * Reasonable use of headings and dividers for clarity\n * *Italicize* key parameters\n * **Bold** critical information\n5. **LaTeX formula requirements**:\n * Inline formulas: start and end with `$`\n * Block formulas: start and end with `$$`, each `$$` on its own line\n * Block formula content must comply with LaTeX math syntax\n * Verify formula correctness\n---\n## Additional Notes (Interaction & Failure Strategy)\n* If the knowledge base does not cover critical facts: explicitly inform the user (with sample wording)\n* For time-sensitive issues: enforce time filtering in the search request, and indicate the latest retrieval date in the answer.\n* Language requirement: answer in the user\u2019s preferred language\n",
  245. "temperature": "0.1",
  246. "temperatureEnabled": true,
  247. "tools": [
  248. {
  249. "component_name": "Retrieval",
  250. "name": "Retrieval",
  251. "params": {
  252. "cross_languages": [],
  253. "description": "",
  254. "empty_response": "",
  255. "kb_ids": [],
  256. "keywords_similarity_weight": 0.7,
  257. "outputs": {
  258. "formalized_content": {
  259. "type": "string",
  260. "value": ""
  261. }
  262. },
  263. "rerank_id": "",
  264. "similarity_threshold": 0.2,
  265. "top_k": 1024,
  266. "top_n": 8,
  267. "use_kg": false
  268. }
  269. }
  270. ],
  271. "topPEnabled": false,
  272. "top_p": 0.75,
  273. "user_prompt": "",
  274. "visual_files_var": ""
  275. },
  276. "label": "Agent",
  277. "name": "Knowledge Base Agent"
  278. },
  279. "dragging": false,
  280. "id": "Agent:NewPumasLick",
  281. "measured": {
  282. "height": 84,
  283. "width": 200
  284. },
  285. "position": {
  286. "x": 347.00048227952215,
  287. "y": 186.49109364794631
  288. },
  289. "selected": false,
  290. "sourcePosition": "right",
  291. "targetPosition": "left",
  292. "type": "agentNode"
  293. },
  294. {
  295. "data": {
  296. "form": {
  297. "description": "This is an agent for a specific task.",
  298. "user_prompt": "This is the order you need to send to the agent."
  299. },
  300. "label": "Tool",
  301. "name": "flow.tool_10"
  302. },
  303. "dragging": false,
  304. "id": "Tool:AllBirdsNail",
  305. "measured": {
  306. "height": 48,
  307. "width": 200
  308. },
  309. "position": {
  310. "x": 220.24819746977118,
  311. "y": 403.31576836482583
  312. },
  313. "selected": false,
  314. "sourcePosition": "right",
  315. "targetPosition": "left",
  316. "type": "toolNode"
  317. }
  318. ]
  319. },
  320. "history": [],
  321. "memory": [],
  322. "messages": [],
  323. "path": [],
  324. "retrieval": []
  325. },
  326. "avatar": "data:image/png;base64,iVBORw0KGgoAAA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