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.

update-conversation-variable-in-iteration.yml 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. app:
  2. description: 'This chatflow receives a sys.query, writes it into the `answer` variable,
  3. and then outputs the `answer` variable.
  4. `answer` is a conversation variable with a blank default value; it will be updated
  5. in an iteration node.
  6. if this chatflow works correctly, it will output the `sys.query` as the same.'
  7. icon: 🤖
  8. icon_background: '#FFEAD5'
  9. mode: advanced-chat
  10. name: update-conversation-variable-in-iteration
  11. use_icon_as_answer_icon: false
  12. dependencies: []
  13. kind: app
  14. version: 0.4.0
  15. workflow:
  16. conversation_variables:
  17. - description: ''
  18. id: c30af82d-b2ec-417d-a861-4dd78584faa4
  19. name: answer
  20. selector:
  21. - conversation
  22. - answer
  23. value: ''
  24. value_type: string
  25. environment_variables: []
  26. features:
  27. file_upload:
  28. allowed_file_extensions:
  29. - .JPG
  30. - .JPEG
  31. - .PNG
  32. - .GIF
  33. - .WEBP
  34. - .SVG
  35. allowed_file_types:
  36. - image
  37. allowed_file_upload_methods:
  38. - local_file
  39. - remote_url
  40. enabled: false
  41. fileUploadConfig:
  42. audio_file_size_limit: 50
  43. batch_count_limit: 5
  44. file_size_limit: 15
  45. image_file_size_limit: 10
  46. video_file_size_limit: 100
  47. workflow_file_upload_limit: 10
  48. image:
  49. enabled: false
  50. number_limits: 3
  51. transfer_methods:
  52. - local_file
  53. - remote_url
  54. number_limits: 3
  55. opening_statement: ''
  56. retriever_resource:
  57. enabled: true
  58. sensitive_word_avoidance:
  59. enabled: false
  60. speech_to_text:
  61. enabled: false
  62. suggested_questions: []
  63. suggested_questions_after_answer:
  64. enabled: false
  65. text_to_speech:
  66. enabled: false
  67. language: ''
  68. voice: ''
  69. graph:
  70. edges:
  71. - data:
  72. isInIteration: false
  73. isInLoop: false
  74. sourceType: start
  75. targetType: code
  76. id: 1759032354471-source-1759032363865-target
  77. source: '1759032354471'
  78. sourceHandle: source
  79. target: '1759032363865'
  80. targetHandle: target
  81. type: custom
  82. zIndex: 0
  83. - data:
  84. isInIteration: false
  85. isInLoop: false
  86. sourceType: code
  87. targetType: iteration
  88. id: 1759032363865-source-1759032379989-target
  89. source: '1759032363865'
  90. sourceHandle: source
  91. target: '1759032379989'
  92. targetHandle: target
  93. type: custom
  94. zIndex: 0
  95. - data:
  96. isInIteration: true
  97. isInLoop: false
  98. iteration_id: '1759032379989'
  99. sourceType: iteration-start
  100. targetType: assigner
  101. id: 1759032379989start-source-1759032394460-target
  102. source: 1759032379989start
  103. sourceHandle: source
  104. target: '1759032394460'
  105. targetHandle: target
  106. type: custom
  107. zIndex: 1002
  108. - data:
  109. isInIteration: false
  110. isInLoop: false
  111. sourceType: iteration
  112. targetType: answer
  113. id: 1759032379989-source-1759032410331-target
  114. source: '1759032379989'
  115. sourceHandle: source
  116. target: '1759032410331'
  117. targetHandle: target
  118. type: custom
  119. zIndex: 0
  120. - data:
  121. isInIteration: true
  122. isInLoop: false
  123. iteration_id: '1759032379989'
  124. sourceType: assigner
  125. targetType: code
  126. id: 1759032394460-source-1759032476318-target
  127. source: '1759032394460'
  128. sourceHandle: source
  129. target: '1759032476318'
  130. targetHandle: target
  131. type: custom
  132. zIndex: 1002
  133. nodes:
  134. - data:
  135. selected: false
  136. title: Start
  137. type: start
  138. variables: []
  139. height: 52
  140. id: '1759032354471'
  141. position:
  142. x: 30
  143. y: 302
  144. positionAbsolute:
  145. x: 30
  146. y: 302
  147. selected: false
  148. sourcePosition: right
  149. targetPosition: left
  150. type: custom
  151. width: 242
  152. - data:
  153. code: "\ndef main():\n return {\n \"result\": [1],\n }\n"
  154. code_language: python3
  155. outputs:
  156. result:
  157. children: null
  158. type: array[number]
  159. selected: false
  160. title: Code
  161. type: code
  162. variables: []
  163. height: 52
  164. id: '1759032363865'
  165. position:
  166. x: 332
  167. y: 302
  168. positionAbsolute:
  169. x: 332
  170. y: 302
  171. sourcePosition: right
  172. targetPosition: left
  173. type: custom
  174. width: 242
  175. - data:
  176. error_handle_mode: terminated
  177. height: 204
  178. is_parallel: false
  179. iterator_input_type: array[number]
  180. iterator_selector:
  181. - '1759032363865'
  182. - result
  183. output_selector:
  184. - '1759032476318'
  185. - result
  186. output_type: array[string]
  187. parallel_nums: 10
  188. selected: false
  189. start_node_id: 1759032379989start
  190. title: Iteration
  191. type: iteration
  192. width: 808
  193. height: 204
  194. id: '1759032379989'
  195. position:
  196. x: 634
  197. y: 302
  198. positionAbsolute:
  199. x: 634
  200. y: 302
  201. selected: true
  202. sourcePosition: right
  203. targetPosition: left
  204. type: custom
  205. width: 808
  206. zIndex: 1
  207. - data:
  208. desc: ''
  209. isInIteration: true
  210. selected: false
  211. title: ''
  212. type: iteration-start
  213. draggable: false
  214. height: 48
  215. id: 1759032379989start
  216. parentId: '1759032379989'
  217. position:
  218. x: 60
  219. y: 78
  220. positionAbsolute:
  221. x: 694
  222. y: 380
  223. selectable: false
  224. sourcePosition: right
  225. targetPosition: left
  226. type: custom-iteration-start
  227. width: 44
  228. zIndex: 1002
  229. - data:
  230. isInIteration: true
  231. isInLoop: false
  232. items:
  233. - input_type: variable
  234. operation: over-write
  235. value:
  236. - sys
  237. - query
  238. variable_selector:
  239. - conversation
  240. - answer
  241. write_mode: over-write
  242. iteration_id: '1759032379989'
  243. selected: false
  244. title: Variable Assigner
  245. type: assigner
  246. version: '2'
  247. height: 84
  248. id: '1759032394460'
  249. parentId: '1759032379989'
  250. position:
  251. x: 204
  252. y: 60
  253. positionAbsolute:
  254. x: 838
  255. y: 362
  256. sourcePosition: right
  257. targetPosition: left
  258. type: custom
  259. width: 242
  260. zIndex: 1002
  261. - data:
  262. answer: '{{#conversation.answer#}}'
  263. selected: false
  264. title: Answer
  265. type: answer
  266. variables: []
  267. height: 104
  268. id: '1759032410331'
  269. position:
  270. x: 1502
  271. y: 302
  272. positionAbsolute:
  273. x: 1502
  274. y: 302
  275. selected: false
  276. sourcePosition: right
  277. targetPosition: left
  278. type: custom
  279. width: 242
  280. - data:
  281. code: "\ndef main():\n return {\n \"result\": '',\n }\n"
  282. code_language: python3
  283. isInIteration: true
  284. isInLoop: false
  285. iteration_id: '1759032379989'
  286. outputs:
  287. result:
  288. children: null
  289. type: string
  290. selected: false
  291. title: Code 2
  292. type: code
  293. variables: []
  294. height: 52
  295. id: '1759032476318'
  296. parentId: '1759032379989'
  297. position:
  298. x: 506
  299. y: 76
  300. positionAbsolute:
  301. x: 1140
  302. y: 378
  303. sourcePosition: right
  304. targetPosition: left
  305. type: custom
  306. width: 242
  307. zIndex: 1002
  308. viewport:
  309. x: 120.39999999999998
  310. y: 85.20000000000005
  311. zoom: 0.7
  312. rag_pipeline_variables: []