Commit Graph

182 Commits

Author SHA1 Message Date
-LAN-
b6c3010f02
refactor(api/core/workflow/nodes/base_node.py): Update extract_variable_selector_to_variable_mapping method signature. (#6733)
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-07-27 14:43:25 +08:00
takatost
63addf8c94 add parallel branch events 2024-07-26 20:27:17 +08:00
takatost
beea1e1663 fix lint 2024-07-26 19:47:12 +08:00
takatost
38f8c45755 add events in interation node 2024-07-26 19:47:02 +08:00
-LAN-
c6996a48a4
refactor(api/core/app/segments): Support more kinds of Segments. (#6706)
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-07-26 15:03:56 +08:00
takatost
a31feacf28 fix iteration 2024-07-26 02:43:40 +08:00
takatost
ae351bd40e add iteration support 2024-07-25 23:07:27 +08:00
takatost
df133168dd fix lint 2024-07-25 21:06:23 +08:00
takatost
7c67ba8991 remove threadpool 2024-07-25 21:05:53 +08:00
takatost
4097f7c069 add parallel branch output 2024-07-25 19:39:06 +08:00
majian
a876baf0a9
Resolve variable type parameter error (#6646) 2024-07-25 11:15:54 +08:00
Jyong
91fd8521c3
fix reranking model field error (#6654) 2024-07-25 10:07:55 +08:00
takatost
f4eb7cd037 add end stream output test 2024-07-25 04:03:53 +08:00
-LAN-
4ec9a87e46
fix(api/core/workflow/nodes/iteration/iteration_node.py): Extend output in iteration if output is a array. (#6647)
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-07-25 00:32:39 +08:00
takatost
833584ba76 Merge branch 'refs/heads/main' into feat/workflow-parallel-support
# Conflicts:
#	api/core/workflow/workflow_entry.py
2024-07-24 23:43:14 +08:00
-LAN-
31efe10c75
refactor(api/core/workflow/workflow_engine_manager.py): Remove (#6630)
Signed-off-by: -LAN- <laipz8200@outlook.com>
2024-07-24 19:35:40 +08:00
Jyong
e4bb943fe5
Feat/delete single dataset retrival (#6570) 2024-07-24 12:50:11 +08:00
takatost
ec7760795f save 2024-07-24 00:24:24 +08:00
takatost
e9bfedab9b Merge branch 'refs/heads/main' into feat/workflow-parallel-support
# Conflicts:
#	api/core/workflow/entities/variable_pool.py
2024-07-23 17:28:57 +08:00
-LAN-
ad7552ea8d
fix(api/core/workflow/nodes/llm/llm_node.py): Fix LLM Node error. (#6576) 2024-07-23 17:09:16 +08:00
-LAN-
f019bc4bd7
feat(variables): Support to_object. (#6572) 2024-07-23 16:22:06 +08:00
takatost
7303b53af1 fix bug 2024-07-23 16:18:52 +08:00
takatost
0fe516568a Merge branch 'refs/heads/main' into feat/workflow-parallel-support
# Conflicts:
#	api/core/workflow/nodes/code/code_node.py
#	api/core/workflow/nodes/end/end_node.py
#	api/core/workflow/nodes/knowledge_retrieval/knowledge_retrieval_node.py
#	api/core/workflow/nodes/parameter_extractor/parameter_extractor_node.py
#	api/core/workflow/nodes/variable_aggregator/variable_aggregator_node.py
2024-07-23 16:18:34 +08:00
-LAN-
cfc408095c
fix(api/nodes): Fallback to get_any in some nodes that use object or array. (#6566) 2024-07-23 15:51:07 +08:00
takatost
6b5fac3004
fix: fetch context error in llm node (#6562) 2024-07-23 15:04:51 +08:00
takatost
2c695ded79 fix bugs 2024-07-23 00:10:23 +08:00
takatost
a603e01f5e fix bug 2024-07-22 19:57:32 +08:00
-LAN-
5e6fc58db3
Feat/environment variables in workflow (#6515)
Co-authored-by: JzoNg <jzongcode@gmail.com>
2024-07-22 15:29:39 +08:00
takatost
beaac5033a fix bug 2024-07-20 00:57:41 +08:00
takatost
dad1a967ee finished answer stream output 2024-07-20 00:49:46 +08:00
Poorandy
8a80af39c9
refactor(models&tools): switch to dify_config in models and tools. (#6394)
Co-authored-by: Poorandy <andymonicamua1@gmail.com>
2024-07-17 22:26:18 +08:00
takatost
f67a88f44d fix test 2024-07-17 21:17:04 +08:00
takatost
90e518b05b fix bugs 2024-07-17 16:54:49 +08:00
-LAN-
fc37887a21
refactor(api/core/workflow/nodes/http_request): Remove mask_authorization_header because its alwary true. (#6379) 2024-07-17 16:52:14 +08:00
takatost
cc96acdae3 fix bugs 2024-07-17 11:26:33 +08:00
takatost
16e2d00157 optimize 2024-07-17 01:07:23 +08:00
takatost
4ef3d4e65c optimize 2024-07-17 01:02:40 +08:00
Jyong
0de224b153
fix wrong using of RetrievalMethod Enum (#6345) 2024-07-16 19:09:04 +08:00
takatost
775e52db4d merge 2024-07-16 17:46:20 +08:00
takatost
00ec36d47c add graph engine test 2024-07-16 16:37:37 +08:00
takatost
00fb23d0c9 graph engine implement 2024-07-15 23:40:02 +08:00
takatost
821e09b259 add run logics 2024-07-12 19:33:47 +08:00
JasonVV
0e82072323
Fix if_else node compatibility with historical workflows. (#6186) 2024-07-11 17:13:16 +08:00
takatost
d77b689a99 completed parallel tests 2024-07-10 21:21:06 +08:00
Joe
5a3e09518c
feat: add if elif (#6094) 2024-07-10 18:22:51 +08:00
takatost
0e885a3cae refactor runtime 2024-07-08 16:29:13 +08:00
75py
610da4f662
Fix authorization header validation to handle bearer types correctly - "authorization config header is required" error (#6040) 2024-07-08 00:09:59 +08:00
takatost
1adaf42f9d refactor graph 2024-07-07 23:08:45 +08:00
takatost
fed068ac2e Merge branch 'refs/heads/main' into feat/workflow-parallel-support 2024-07-07 16:57:21 +08:00
Yeuoly
a877d4831d
Fix/incorrect parameter extractor memory (#6038) 2024-07-07 12:17:34 +08:00
-LAN-
4d105d7bd7
feat(*): Swtich to dify_config. (#6025) 2024-07-06 12:05:13 +08:00
takatost
03f56a05eb refactor graph 2024-07-06 03:18:02 +08:00
-LAN-
02982df0d4
fix: Fix some type error in http executor. (#5915) 2024-07-04 19:34:37 +08:00
takatost
1b6cd975f3 completed graph init test 2024-07-04 15:40:20 +08:00
takatost
0f19b2a986 optimize graph 2024-07-02 21:53:41 +08:00
Yeuoly
f101fcd0e7
fix: missing process data in parameter extractor (#5755) 2024-06-29 23:29:43 +08:00
takatost
8375517ccd save 2024-06-29 15:44:52 +08:00
Joe
e8b8f6c6dd
Feat/fix ops trace (#5672)
Co-authored-by: takatost <takatost@gmail.com>
2024-06-28 00:24:37 +08:00
非法操作
92c56fdf2b
fix: HTTP request header is overwritten when user set Content-Type (#5628) 2024-06-27 12:31:37 +08:00
Bowen Liang
dcb72e0067
chore: apply flake8-comprehensions Ruff rules to improve collection comprehensions (#5652)
Co-authored-by: -LAN- <laipz8200@outlook.com>
2024-06-27 11:21:31 +08:00
takatost
1d8ecac093 save 2024-06-27 05:30:38 +08:00
takatost
aaa98c76d5 optimize 2024-06-26 23:56:30 +08:00
Joe
4e2de638af
feat: add ops trace (#5483)
Co-authored-by: takatost <takatost@gmail.com>
2024-06-26 17:33:29 +08:00
非法操作
b8926ea267
fix: DuckDuckGo image search tool error (#5606) 2024-06-26 13:21:40 +08:00
takatost
216910a4a1 add runtime state of graph 2024-06-25 17:43:13 +08:00
takatost
fe27c97fd9 add runtime graph 2024-06-25 14:41:14 +08:00
takatost
8217c46116 add new graph structure 2024-06-24 23:34:42 +08:00
非法操作
f7900f298f
chore: refactor the http executor node (#5212) 2024-06-24 16:14:59 +08:00
非法操作
1e28a8c033
chore: add create_json_message api for tools (#5440) 2024-06-24 15:46:16 +08:00
takatost
a88aa20824
fix: optional parameter missing default value None in http request node (#5413) 2024-06-20 11:07:01 +08:00
Bowen Liang
c923684edd
chore: extract retrival method literal values into enum (#5060) 2024-06-19 16:05:27 +08:00
sino
d7213b12cc
fix: extract params by function calling for models supporting tool call (#5334) 2024-06-17 23:25:29 +08:00
-LAN-
54756cd3b2
chore(core/workflow/utils/variable_template_parser): Refactor VariableTemplateParser class for better readability and maintainability. (#5328) 2024-06-17 21:18:56 +08:00
-LAN-
5a99aeb864
fix(core): Reorder field_validator and classmethod to fit Pydantic V2. (#5257) 2024-06-17 10:04:28 +08:00
rerorero
3a423e8ce7
fix: visioin model always with low quality (#5253) 2024-06-16 09:46:17 +08:00
th3n00b13
cdb6c801c1
Fix: http_request delete method not working (#4975) 2024-06-14 20:07:22 +08:00
Bowen Liang
f976740b57
improve: mordernizing validation by migrating pydantic from 1.x to 2.x (#4592) 2024-06-14 01:05:37 +08:00
smoky
742b08e1d5
chore: update question classifier prompt (#5137)
Signed-off-by: 0xff-dev <stevenshuang521@gmail.com>
2024-06-13 13:04:51 +08:00
Yeuoly
73dee84cab
fix: add handling for non-string type in variable template parser (#4996) 2024-06-06 16:38:13 +08:00
JasonVV
7749b71fff
Optimize knowledge retrieval performance by batching dataset quries. (#4917) 2024-06-05 13:30:32 +08:00
takatost
21ac2afb3a
fix: question classifier instruction npe (#4931) 2024-06-05 01:27:58 +08:00
takatost
d1dbbc1e33
feat: backend model load balancing support (#4927) 2024-06-05 00:13:04 +08:00
Jyong
c7bddb637b
support instruction in classifier node (#4913) 2024-06-04 20:07:54 +08:00
zxhlyh
4b91383efc
feat: workflow variable aggregator support group (#4811)
Co-authored-by: Yeuoly <admin@srmxy.cn>
2024-05-30 18:54:58 +08:00
Yeuoly
d4cd6149ac
fix: incorrect workflow max call depth (#4759) 2024-05-29 14:52:28 +08:00
majian
72a90074bc
Add WORKFLOW_CALL_MAX_DEPTH env var. (#4713) 2024-05-29 13:39:11 +08:00
Yeuoly
e852a21634
Feat/workflow phase2 (#4687) 2024-05-27 22:01:11 +08:00
kronus-ho
f56b984d97
Fix Unnecessary Newline Characters in Extracted Tool Response Text (#4646)
Co-authored-by: kronus <kronus@istarshine.com>
2024-05-25 15:24:59 +08:00
10YearsDiary
109aabc6f2
fix: incorrect handling when http header value contain multiple colons. (#4574) 2024-05-25 13:20:06 +08:00
majian
8c2ca60c8b
feat: Add WORKFLOW_MAX_EXECUTION_TIME env var (#4632) 2024-05-24 15:27:12 +08:00
Jyong
233c4150d1
support images and tables extract from docx (#4619) 2024-05-23 18:05:23 +08:00
Bowen Liang
e8e213ad1e
chore: apply and fix flake8-bugbear lint rules (#4496) 2024-05-20 16:34:13 +08:00
Bowen Liang
04ad46dd31
chore: skip unnecessary key checks prior to accessing a dictionary (#4497) 2024-05-19 18:30:45 +08:00
Bowen Liang
083ef2e6fc
improve: exract Code Node provider for each supported scripting language (#4164) 2024-05-17 11:58:12 +08:00
Han Fangyuan
3df47b7b59
fix: wrong category name in examples of question classifier completion prompt (#4421) 2024-05-16 13:04:57 +08:00
VoidIsVoid
a76ae2d756
chore: remove useless code in knowledge_retrieval_node (#4412) 2024-05-15 15:24:40 +08:00
非法操作
1d0f88264f
Fix HTTP REQUEST NODE is always waiting but endpoint have responsed (#4395) 2024-05-15 11:05:46 +08:00
非法操作
3271e3e803
improve the code readability of http_executor node (#4360) 2024-05-14 16:11:12 +08:00
Yeuoly
16d47923c3
fix: requests timeout (#4370) 2024-05-14 16:01:23 +08:00
Yeuoly
bbef964eb5
improve: code upgrade (#4231) 2024-05-13 14:39:14 +08:00