Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

web_search_assistant.json 30KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  1. {
  2. "id": 16,
  3. "title": "WebSearch Assistant",
  4. "description": "A chat assistant template that integrates information extracted from a knowledge base and web searches to respond to queries. Let's start by setting up your knowledge base in 'Retrieval'!",
  5. "canvas_type": "Other",
  6. "dsl": {
  7. "components": {
  8. "Agent:SmartSchoolsCross": {
  9. "downstream": [
  10. "Message:ShaggyRingsCrash"
  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.7,
  23. "llm_id": "deepseek-chat@DeepSeek",
  24. "maxTokensEnabled": false,
  25. "max_retries": 3,
  26. "max_rounds": 1,
  27. "max_tokens": 256,
  28. "mcp": [],
  29. "message_history_window_size": 12,
  30. "outputs": {
  31. "content": {
  32. "type": "string",
  33. "value": ""
  34. }
  35. },
  36. "presencePenaltyEnabled": false,
  37. "presence_penalty": 0.4,
  38. "prompts": [
  39. {
  40. "content": "User's query:\n{sys.query}\n\nRefined question:\n{Agent:ThreePathsDecide@content}\n\nWeb search result:\n{Agent:WildGoatsRule@content}\n\nRetrieval result:\n{Agent:WildGoatsRule@content}",
  41. "role": "user"
  42. }
  43. ],
  44. "sys_prompt": "Role: You are an Answer Organizer.\nTask: Generate the answer based on the provided content from: User's query, Refined question, Web search result, Retrieval result.\n\nRequirements:\n - Answer should be in markdown format.\n - Answer should include all \n - Do not make thing up when there's no relevant information to user's question. \n",
  45. "temperature": 0.1,
  46. "temperatureEnabled": true,
  47. "tools": [],
  48. "topPEnabled": false,
  49. "top_p": 0.3,
  50. "user_prompt": "",
  51. "visual_files_var": ""
  52. }
  53. },
  54. "upstream": [
  55. "Agent:WildGoatsRule",
  56. "Retrieval:WarmTimesRun"
  57. ]
  58. },
  59. "Agent:ThreePathsDecide": {
  60. "downstream": [
  61. "Agent:WildGoatsRule",
  62. "Retrieval:WarmTimesRun"
  63. ],
  64. "obj": {
  65. "component_name": "Agent",
  66. "params": {
  67. "delay_after_error": 1,
  68. "description": "",
  69. "exception_comment": "",
  70. "exception_default_value": "",
  71. "exception_goto": [],
  72. "exception_method": null,
  73. "frequencyPenaltyEnabled": false,
  74. "frequency_penalty": 0.7,
  75. "llm_id": "deepseek-chat@DeepSeek",
  76. "maxTokensEnabled": false,
  77. "max_retries": 3,
  78. "max_rounds": 1,
  79. "max_tokens": 256,
  80. "mcp": [],
  81. "message_history_window_size": 12,
  82. "outputs": {
  83. "content": {
  84. "type": "string",
  85. "value": ""
  86. }
  87. },
  88. "presencePenaltyEnabled": false,
  89. "presence_penalty": 0.4,
  90. "prompts": [
  91. {
  92. "content": "{sys.query}",
  93. "role": "user"
  94. }
  95. ],
  96. "sys_prompt": "Role: You are a Question Refinement Agent. Rewrite ambiguous or incomplete user questions to align with knowledge base terminology using conversation history.\n\nExample:\n\nUser: What's RAGFlow?\nAssistant: RAGFlow is xxx.\n\nUser: How to deloy it?\nRefine it: How to deploy RAGFlow?",
  97. "temperature": 0.1,
  98. "temperatureEnabled": true,
  99. "tools": [],
  100. "topPEnabled": false,
  101. "top_p": 0.3,
  102. "user_prompt": "",
  103. "visual_files_var": ""
  104. }
  105. },
  106. "upstream": [
  107. "begin"
  108. ]
  109. },
  110. "Agent:WildGoatsRule": {
  111. "downstream": [
  112. "Agent:SmartSchoolsCross"
  113. ],
  114. "obj": {
  115. "component_name": "Agent",
  116. "params": {
  117. "delay_after_error": 1,
  118. "description": "",
  119. "exception_comment": "",
  120. "exception_default_value": "",
  121. "exception_goto": [],
  122. "exception_method": null,
  123. "frequencyPenaltyEnabled": false,
  124. "frequency_penalty": 0.7,
  125. "llm_id": "deepseek-chat@DeepSeek",
  126. "maxTokensEnabled": false,
  127. "max_retries": 3,
  128. "max_rounds": 2,
  129. "max_tokens": 256,
  130. "mcp": [],
  131. "message_history_window_size": 12,
  132. "outputs": {
  133. "content": {
  134. "type": "string",
  135. "value": ""
  136. }
  137. },
  138. "presencePenaltyEnabled": false,
  139. "presence_penalty": 0.4,
  140. "prompts": [
  141. {
  142. "content": "User's query:\n{sys.query}\n\nRefined question:\n{Agent:ThreePathsDecide@content}",
  143. "role": "user"
  144. }
  145. ],
  146. "sys_prompt": "Role: You are a Search-Driven Information Agent that answers questions using web search results.\n\nWorkflow:\nKeyword Extraction:\nExtract exactly 3 keywords from the user's question.\n\nKeywords must be:\n✅ Most specific nouns/proper nouns (e.g., \"iPhone 15 Pro\" not \"phone\")\n✅ Core concepts (e.g., \"quantum entanglement\" not \"science thing\")\n✅ Unbiased (no added opinions)\nNever output keywords to users\n\nSearch & Answer:\nUse search tools (TavilySearch, TavilyExtract, Google, Bing, DuckDuckGo, Wikipedia) with the 3 keywords to retrieve results.\nAnswer solely based on search findings, citing sources.\nIf results conflict, prioritize recent (.gov/.edu > forums)\n\nOutput Rules:\n✖️ Never show keywords in final answers\n✖️ Never guess if search yields no results\n✅ Always cite sources using [Source #] notation",
  147. "temperature": 0.1,
  148. "temperatureEnabled": true,
  149. "tools": [
  150. {
  151. "component_name": "TavilySearch",
  152. "name": "TavilySearch",
  153. "params": {
  154. "api_key": "",
  155. "days": 7,
  156. "exclude_domains": [],
  157. "include_answer": false,
  158. "include_domains": [],
  159. "include_image_descriptions": false,
  160. "include_images": false,
  161. "include_raw_content": true,
  162. "max_results": 5,
  163. "outputs": {
  164. "formalized_content": {
  165. "type": "string",
  166. "value": ""
  167. },
  168. "json": {
  169. "type": "Array<Object>",
  170. "value": []
  171. }
  172. },
  173. "query": "sys.query",
  174. "search_depth": "basic",
  175. "topic": "general"
  176. }
  177. },
  178. {
  179. "component_name": "TavilyExtract",
  180. "name": "TavilyExtract",
  181. "params": {
  182. "api_key": ""
  183. }
  184. },
  185. {
  186. "component_name": "Google",
  187. "name": "Google",
  188. "params": {
  189. "api_key": "",
  190. "country": "us",
  191. "language": "en"
  192. }
  193. },
  194. {
  195. "component_name": "Bing",
  196. "name": "Bing",
  197. "params": {
  198. "api_key": "YOUR_API_KEY (obtained from https://www.microsoft.com/en-us/bing/apis/bing-web-search-api)",
  199. "channel": "Webpages",
  200. "country": "CH",
  201. "language": "en",
  202. "top_n": 10
  203. }
  204. },
  205. {
  206. "component_name": "DuckDuckGo",
  207. "name": "DuckDuckGo",
  208. "params": {
  209. "channel": "text",
  210. "top_n": 10
  211. }
  212. },
  213. {
  214. "component_name": "Wikipedia",
  215. "name": "Wikipedia",
  216. "params": {
  217. "language": "en",
  218. "top_n": 10
  219. }
  220. }
  221. ],
  222. "topPEnabled": false,
  223. "top_p": 0.3,
  224. "user_prompt": "",
  225. "visual_files_var": ""
  226. }
  227. },
  228. "upstream": [
  229. "Agent:ThreePathsDecide"
  230. ]
  231. },
  232. "Message:ShaggyRingsCrash": {
  233. "downstream": [],
  234. "obj": {
  235. "component_name": "Message",
  236. "params": {
  237. "content": [
  238. "{Agent:SmartSchoolsCross@content}"
  239. ]
  240. }
  241. },
  242. "upstream": [
  243. "Agent:SmartSchoolsCross"
  244. ]
  245. },
  246. "Retrieval:WarmTimesRun": {
  247. "downstream": [
  248. "Agent:SmartSchoolsCross"
  249. ],
  250. "obj": {
  251. "component_name": "Retrieval",
  252. "params": {
  253. "cross_languages": [],
  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. "query": "Agent:ThreePathsDecide@content",
  264. "rerank_id": "",
  265. "similarity_threshold": 0.2,
  266. "top_k": 1024,
  267. "top_n": 8,
  268. "use_kg": false
  269. }
  270. },
  271. "upstream": [
  272. "Agent:ThreePathsDecide"
  273. ]
  274. },
  275. "begin": {
  276. "downstream": [
  277. "Agent:ThreePathsDecide"
  278. ],
  279. "obj": {
  280. "component_name": "Begin",
  281. "params": {
  282. "enablePrologue": true,
  283. "inputs": {},
  284. "mode": "conversational",
  285. "prologue": "Hi! I'm your web search assistant. What do you want to search today?"
  286. }
  287. },
  288. "upstream": []
  289. }
  290. },
  291. "globals": {
  292. "sys.conversation_turns": 1,
  293. "sys.files": [],
  294. "sys.query": "你好",
  295. "sys.user_id": "d6d98fd652f911f0a8fb047c16ec874f"
  296. },
  297. "graph": {
  298. "edges": [
  299. {
  300. "data": {
  301. "isHovered": false
  302. },
  303. "id": "xy-edge__beginstart-Agent:ThreePathsDecideend",
  304. "source": "begin",
  305. "sourceHandle": "start",
  306. "target": "Agent:ThreePathsDecide",
  307. "targetHandle": "end"
  308. },
  309. {
  310. "data": {
  311. "isHovered": false
  312. },
  313. "id": "xy-edge__Agent:ThreePathsDecidestart-Agent:WildGoatsRuleend",
  314. "source": "Agent:ThreePathsDecide",
  315. "sourceHandle": "start",
  316. "target": "Agent:WildGoatsRule",
  317. "targetHandle": "end"
  318. },
  319. {
  320. "data": {
  321. "isHovered": false
  322. },
  323. "id": "xy-edge__Agent:ThreePathsDecidestart-Retrieval:WarmTimesRunend",
  324. "source": "Agent:ThreePathsDecide",
  325. "sourceHandle": "start",
  326. "target": "Retrieval:WarmTimesRun",
  327. "targetHandle": "end"
  328. },
  329. {
  330. "data": {
  331. "isHovered": false
  332. },
  333. "id": "xy-edge__Agent:WildGoatsRulestart-Agent:SmartSchoolsCrossend",
  334. "source": "Agent:WildGoatsRule",
  335. "sourceHandle": "start",
  336. "target": "Agent:SmartSchoolsCross",
  337. "targetHandle": "end"
  338. },
  339. {
  340. "data": {
  341. "isHovered": false
  342. },
  343. "id": "xy-edge__Agent:SmartSchoolsCrossstart-Message:ShaggyRingsCrashend",
  344. "source": "Agent:SmartSchoolsCross",
  345. "sourceHandle": "start",
  346. "target": "Message:ShaggyRingsCrash",
  347. "targetHandle": "end"
  348. },
  349. {
  350. "data": {
  351. "isHovered": false
  352. },
  353. "id": "xy-edge__Retrieval:WarmTimesRunstart-Agent:SmartSchoolsCrossend",
  354. "markerEnd": "logo",
  355. "source": "Retrieval:WarmTimesRun",
  356. "sourceHandle": "start",
  357. "style": {
  358. "stroke": "rgba(91, 93, 106, 1)",
  359. "strokeWidth": 1
  360. },
  361. "target": "Agent:SmartSchoolsCross",
  362. "targetHandle": "end",
  363. "type": "buttonEdge",
  364. "zIndex": 1001
  365. },
  366. {
  367. "data": {
  368. "isHovered": false
  369. },
  370. "id": "xy-edge__Agent:WildGoatsRuletool-Tool:TrueCrewsTakeend",
  371. "source": "Agent:WildGoatsRule",
  372. "sourceHandle": "tool",
  373. "target": "Tool:TrueCrewsTake",
  374. "targetHandle": "end"
  375. }
  376. ],
  377. "nodes": [
  378. {
  379. "data": {
  380. "form": {
  381. "enablePrologue": true,
  382. "inputs": {},
  383. "mode": "conversational",
  384. "prologue": "Hi! I'm your web search assistant. What do you want to search today?"
  385. },
  386. "label": "Begin",
  387. "name": "begin"
  388. },
  389. "dragging": false,
  390. "id": "begin",
  391. "measured": {
  392. "height": 48,
  393. "width": 200
  394. },
  395. "position": {
  396. "x": 32.79251060693639,
  397. "y": 209.67921278359827
  398. },
  399. "selected": false,
  400. "sourcePosition": "left",
  401. "targetPosition": "right",
  402. "type": "beginNode"
  403. },
  404. {
  405. "data": {
  406. "form": {
  407. "delay_after_error": 1,
  408. "description": "",
  409. "exception_comment": "",
  410. "exception_default_value": "",
  411. "exception_goto": [],
  412. "exception_method": null,
  413. "frequencyPenaltyEnabled": false,
  414. "frequency_penalty": 0.7,
  415. "llm_id": "deepseek-chat@DeepSeek",
  416. "maxTokensEnabled": false,
  417. "max_retries": 3,
  418. "max_rounds": 1,
  419. "max_tokens": 256,
  420. "mcp": [],
  421. "message_history_window_size": 12,
  422. "outputs": {
  423. "content": {
  424. "type": "string",
  425. "value": ""
  426. }
  427. },
  428. "presencePenaltyEnabled": false,
  429. "presence_penalty": 0.4,
  430. "prompts": [
  431. {
  432. "content": "{sys.query}",
  433. "role": "user"
  434. }
  435. ],
  436. "sys_prompt": "Role: You are a Question Refinement Agent. Rewrite ambiguous or incomplete user questions to align with knowledge base terminology using conversation history.\n\nExample:\n\nUser: What's RAGFlow?\nAssistant: RAGFlow is xxx.\n\nUser: How to deloy it?\nRefine it: How to deploy RAGFlow?",
  437. "temperature": 0.1,
  438. "temperatureEnabled": true,
  439. "tools": [],
  440. "topPEnabled": false,
  441. "top_p": 0.3,
  442. "user_prompt": "",
  443. "visual_files_var": ""
  444. },
  445. "label": "Agent",
  446. "name": "Refine Question"
  447. },
  448. "dragging": false,
  449. "id": "Agent:ThreePathsDecide",
  450. "measured": {
  451. "height": 84,
  452. "width": 200
  453. },
  454. "position": {
  455. "x": 309.1322126914739,
  456. "y": 188.16985104226876
  457. },
  458. "selected": false,
  459. "sourcePosition": "right",
  460. "targetPosition": "left",
  461. "type": "agentNode"
  462. },
  463. {
  464. "data": {
  465. "form": {
  466. "delay_after_error": 1,
  467. "description": "",
  468. "exception_comment": "",
  469. "exception_default_value": "",
  470. "exception_goto": [],
  471. "exception_method": null,
  472. "frequencyPenaltyEnabled": false,
  473. "frequency_penalty": 0.7,
  474. "llm_id": "deepseek-chat@DeepSeek",
  475. "maxTokensEnabled": false,
  476. "max_retries": 3,
  477. "max_rounds": 2,
  478. "max_tokens": 256,
  479. "mcp": [],
  480. "message_history_window_size": 12,
  481. "outputs": {
  482. "content": {
  483. "type": "string",
  484. "value": ""
  485. }
  486. },
  487. "presencePenaltyEnabled": false,
  488. "presence_penalty": 0.4,
  489. "prompts": [
  490. {
  491. "content": "User's query:\n{sys.query}\n\nRefined question:\n{Agent:ThreePathsDecide@content}",
  492. "role": "user"
  493. }
  494. ],
  495. "sys_prompt": "Role: You are a Search-Driven Information Agent that answers questions using web search results.\n\nWorkflow:\nKeyword Extraction:\nExtract exactly 3 keywords from the user's question.\n\nKeywords must be:\n✅ Most specific nouns/proper nouns (e.g., \"iPhone 15 Pro\" not \"phone\")\n✅ Core concepts (e.g., \"quantum entanglement\" not \"science thing\")\n✅ Unbiased (no added opinions)\nNever output keywords to users\n\nSearch & Answer:\nUse search tools (TavilySearch, TavilyExtract, Google, Bing, DuckDuckGo, Wikipedia) with the 3 keywords to retrieve results.\nAnswer solely based on search findings, citing sources.\nIf results conflict, prioritize recent (.gov/.edu > forums)\n\nOutput Rules:\n✖️ Never show keywords in final answers\n✖️ Never guess if search yields no results\n✅ Always cite sources using [Source #] notation",
  496. "temperature": 0.1,
  497. "temperatureEnabled": true,
  498. "tools": [
  499. {
  500. "component_name": "TavilySearch",
  501. "name": "TavilySearch",
  502. "params": {
  503. "api_key": "",
  504. "days": 7,
  505. "exclude_domains": [],
  506. "include_answer": false,
  507. "include_domains": [],
  508. "include_image_descriptions": false,
  509. "include_images": false,
  510. "include_raw_content": true,
  511. "max_results": 5,
  512. "outputs": {
  513. "formalized_content": {
  514. "type": "string",
  515. "value": ""
  516. },
  517. "json": {
  518. "type": "Array<Object>",
  519. "value": []
  520. }
  521. },
  522. "query": "sys.query",
  523. "search_depth": "basic",
  524. "topic": "general"
  525. }
  526. },
  527. {
  528. "component_name": "TavilyExtract",
  529. "name": "TavilyExtract",
  530. "params": {
  531. "api_key": ""
  532. }
  533. },
  534. {
  535. "component_name": "Google",
  536. "name": "Google",
  537. "params": {
  538. "api_key": "",
  539. "country": "us",
  540. "language": "en"
  541. }
  542. },
  543. {
  544. "component_name": "Bing",
  545. "name": "Bing",
  546. "params": {
  547. "api_key": "YOUR_API_KEY (obtained from https://www.microsoft.com/en-us/bing/apis/bing-web-search-api)",
  548. "channel": "Webpages",
  549. "country": "CH",
  550. "language": "en",
  551. "top_n": 10
  552. }
  553. },
  554. {
  555. "component_name": "DuckDuckGo",
  556. "name": "DuckDuckGo",
  557. "params": {
  558. "channel": "text",
  559. "top_n": 10
  560. }
  561. },
  562. {
  563. "component_name": "Wikipedia",
  564. "name": "Wikipedia",
  565. "params": {
  566. "language": "en",
  567. "top_n": 10
  568. }
  569. }
  570. ],
  571. "topPEnabled": false,
  572. "top_p": 0.3,
  573. "user_prompt": "",
  574. "visual_files_var": ""
  575. },
  576. "label": "Agent",
  577. "name": "Search Agent"
  578. },
  579. "dragging": false,
  580. "id": "Agent:WildGoatsRule",
  581. "measured": {
  582. "height": 84,
  583. "width": 200
  584. },
  585. "position": {
  586. "x": 678.5892767651895,
  587. "y": 2.074237779456759
  588. },
  589. "selected": false,
  590. "sourcePosition": "right",
  591. "targetPosition": "left",
  592. "type": "agentNode"
  593. },
  594. {
  595. "data": {
  596. "form": {
  597. "cross_languages": [],
  598. "empty_response": "",
  599. "kb_ids": [],
  600. "keywords_similarity_weight": 0.7,
  601. "outputs": {
  602. "formalized_content": {
  603. "type": "string",
  604. "value": ""
  605. }
  606. },
  607. "query": "Agent:ThreePathsDecide@content",
  608. "rerank_id": "",
  609. "similarity_threshold": 0.2,
  610. "top_k": 1024,
  611. "top_n": 8,
  612. "use_kg": false
  613. },
  614. "label": "Retrieval",
  615. "name": "Retrieval from knowledge bases "
  616. },
  617. "dragging": false,
  618. "id": "Retrieval:WarmTimesRun",
  619. "measured": {
  620. "height": 56,
  621. "width": 200
  622. },
  623. "position": {
  624. "x": 689.0595178434597,
  625. "y": 499.2340890704343
  626. },
  627. "selected": false,
  628. "sourcePosition": "right",
  629. "targetPosition": "left",
  630. "type": "retrievalNode"
  631. },
  632. {
  633. "data": {
  634. "form": {
  635. "delay_after_error": 1,
  636. "description": "",
  637. "exception_comment": "",
  638. "exception_default_value": "",
  639. "exception_goto": [],
  640. "exception_method": null,
  641. "frequencyPenaltyEnabled": false,
  642. "frequency_penalty": 0.7,
  643. "llm_id": "deepseek-chat@DeepSeek",
  644. "maxTokensEnabled": false,
  645. "max_retries": 3,
  646. "max_rounds": 1,
  647. "max_tokens": 256,
  648. "mcp": [],
  649. "message_history_window_size": 12,
  650. "outputs": {
  651. "content": {
  652. "type": "string",
  653. "value": ""
  654. }
  655. },
  656. "presencePenaltyEnabled": false,
  657. "presence_penalty": 0.4,
  658. "prompts": [
  659. {
  660. "content": "User's query:\n{sys.query}\n\nRefined question:\n{Agent:ThreePathsDecide@content}\n\nWeb search result:\n{Agent:WildGoatsRule@content}\n\nRetrieval result:\n{Agent:WildGoatsRule@content}",
  661. "role": "user"
  662. }
  663. ],
  664. "sys_prompt": "Role: You are an Answer Organizer.\nTask: Generate the answer based on the provided content from: User's query, Refined question, Web search result, Retrieval result.\n\nRequirements:\n - Answer should be in markdown format.\n - Answer should include all \n - Do not make thing up when there's no relevant information to user's question. \n",
  665. "temperature": 0.1,
  666. "temperatureEnabled": true,
  667. "tools": [],
  668. "topPEnabled": false,
  669. "top_p": 0.3,
  670. "user_prompt": "",
  671. "visual_files_var": ""
  672. },
  673. "label": "Agent",
  674. "name": "Answer Organizer"
  675. },
  676. "dragging": false,
  677. "id": "Agent:SmartSchoolsCross",
  678. "measured": {
  679. "height": 84,
  680. "width": 200
  681. },
  682. "position": {
  683. "x": 1134.5321493898284,
  684. "y": 221.46972754101765
  685. },
  686. "selected": false,
  687. "sourcePosition": "right",
  688. "targetPosition": "left",
  689. "type": "agentNode"
  690. },
  691. {
  692. "data": {
  693. "form": {
  694. "content": [
  695. "{Agent:SmartSchoolsCross@content}"
  696. ]
  697. },
  698. "label": "Message",
  699. "name": "Answer"
  700. },
  701. "dragging": false,
  702. "id": "Message:ShaggyRingsCrash",
  703. "measured": {
  704. "height": 56,
  705. "width": 200
  706. },
  707. "position": {
  708. "x": 1437.758553651028,
  709. "y": 235.45081267288185
  710. },
  711. "selected": false,
  712. "sourcePosition": "right",
  713. "targetPosition": "left",
  714. "type": "messageNode"
  715. },
  716. {
  717. "data": {
  718. "form": {
  719. "text": "This Agent rewrites your question for better search & retrieval results."
  720. },
  721. "label": "Note",
  722. "name": "Note: Refine Question"
  723. },
  724. "dragHandle": ".note-drag-handle",
  725. "id": "Note:BetterCupsBow",
  726. "measured": {
  727. "height": 136,
  728. "width": 244
  729. },
  730. "position": {
  731. "x": 270,
  732. "y": 390
  733. },
  734. "selected": false,
  735. "sourcePosition": "right",
  736. "targetPosition": "left",
  737. "type": "noteNode"
  738. },
  739. {
  740. "data": {
  741. "form": {
  742. "text": "This Agent answers questions using web search results."
  743. },
  744. "label": "Note",
  745. "name": "Note: Search Agent"
  746. },
  747. "dragHandle": ".note-drag-handle",
  748. "dragging": false,
  749. "id": "Note:OddGoatsBeg",
  750. "measured": {
  751. "height": 136,
  752. "width": 244
  753. },
  754. "position": {
  755. "x": 689.3401860180043,
  756. "y": -204.46057070562227
  757. },
  758. "selected": false,
  759. "sourcePosition": "right",
  760. "targetPosition": "left",
  761. "type": "noteNode"
  762. },
  763. {
  764. "data": {
  765. "form": {
  766. "text": "This Agents generates the answer based on the provided content from: User's query, Refined question, Web search result, Retrieval result."
  767. },
  768. "label": "Note",
  769. "name": "Note: Answer Organizer"
  770. },
  771. "dragHandle": ".note-drag-handle",
  772. "dragging": false,
  773. "height": 188,
  774. "id": "Note:SlowBottlesHope",
  775. "measured": {
  776. "height": 188,
  777. "width": 251
  778. },
  779. "position": {
  780. "x": 1152.1929528629184,
  781. "y": 375.08305219772546
  782. },
  783. "resizing": false,
  784. "selected": false,
  785. "sourcePosition": "right",
  786. "targetPosition": "left",
  787. "type": "noteNode",
  788. "width": 251
  789. },
  790. {
  791. "data": {
  792. "form": {
  793. "description": "This is an agent for a specific task.",
  794. "user_prompt": "This is the order you need to send to the agent."
  795. },
  796. "label": "Tool",
  797. "name": "flow.tool_0"
  798. },
  799. "dragging": false,
  800. "id": "Tool:TrueCrewsTake",
  801. "measured": {
  802. "height": 228,
  803. "width": 200
  804. },
  805. "position": {
  806. "x": 642.9703031510875,
  807. "y": 144.80253344921545
  808. },
  809. "selected": false,
  810. "sourcePosition": "right",
  811. "targetPosition": "left",
  812. "type": "toolNode"
  813. },
  814. {
  815. "data": {
  816. "form": {
  817. "text": "This is a chat assistant template that integrates information extracted from a knowledge base and web searches to respond to queries. Let's start by setting up your knowledge base in 'Retrieval'!"
  818. },
  819. "label": "Note",
  820. "name": "Workflow Overall Description"
  821. },
  822. "dragHandle": ".note-drag-handle",
  823. "dragging": false,
  824. "height": 163,
  825. "id": "Note:BumpySteaksPump",
  826. "measured": {
  827. "height": 163,
  828. "width": 389
  829. },
  830. "position": {
  831. "x": -36.59148337976953,
  832. "y": 1.488564577528809
  833. },
  834. "resizing": false,
  835. "selected": false,
  836. "sourcePosition": "right",
  837. "targetPosition": "left",
  838. "type": "noteNode",
  839. "width": 389
  840. }
  841. ]
  842. },
  843. "history": [
  844. [
  845. "user",
  846. "你好"
  847. ]
  848. ],
  849. "memory": [],
  850. "messages": [],
  851. "path": [
  852. "begin",
  853. "Agent:ThreePathsDecide"
  854. ],
  855. "retrieval": [
  856. {
  857. "chunks": [],
  858. "doc_aggs": []
  859. },
  860. {
  861. "chunks": {},
  862. "doc_aggs": {}
  863. }
  864. ],
  865. "task_id": "183442fc6dd811f091b1047c16ec874f"
  866. },
  867. "avatar": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABN3SURBVHgBrVlrkBzVdf5ud8/s7My+tdKu9iFp9dYipNUDgQwSTwECC9kYV4HBECeuSnA5BhMIVCgHEWMT25BAUnYqiSEQp0iCQ2ESngYiYkACgcRKCPRC0koIvVZa7XtmZ7r75jv3ds/MChL8ww2reXXfPvec73znO6cVTjt+uUdfEOpwrdLqS1CYprXG7/5wIMsqBfyWy3fTlm6dxL3Xdaie8h9U/Obp/bouX8A90OGtn7+ew78weuW/SqzRCMPPu8Ye5UbLJnxfvtBwXWe8UdERKnu36PyHKhO498sdqr94rjVer+fKXfjcQ27mmhfPC5FMKAznaLwPVKXtirmcvDqfMrZkcMhXFf2uuY5TXDoMNHxHLlfGOLle68hZ/MLjrRMeuvlyoWzCk+t8H/fwty792xgevU2mQhw7CfzHKyEOHYbxfm1G4fJzgaVnOsjmrLHxEQShNdRs3DFel98d/pMPtdm5SnCdRORu/mkTUsW7KiQrAyBP5zAcWz5AV9px7uGP31X0/rRCQe8vmvkpUJYZHh3i+b5BBz9+xEdLs4PLV2hUplz8ZpuP1zcAN39VoWsWDQucoteJX2jPrqZoiM6FYjK9zW8cB7KHdN8epLM7kHczGKhdDsWQJmh3fzbAz/4txJcvcvHkyyEGRjQuP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