Commit Graph

448 Commits (bb33335dd414f7419f9e1e2af4dd4713234be11c)

Author SHA1 Message Date
-LAN- 0dcacdf83d
feat: add a flask_context_manager. (#21061)
Signed-off-by: -LAN- <laipz8200@outlook.com>
9 months ago
yihong 909259da37
fix: delete some dead code using vulture (#20999)
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
9 months ago
-LAN- 1e03c97663
fix(llm_node): missing parameters for structure outputs (#20915)
Signed-off-by: -LAN- <laipz8200@outlook.com>
9 months ago
Jyong 21a50e22d2
fix auto metadata filter (#20845) 10 months ago
QuantumGhost c439e82038
refactor(api): Decouple `ParameterExtractorNode` from `LLMNode` (#20843)
- Extract methods used by `ParameterExtractorNode` from `LLMNode` into a separate file.
- Convert `ParameterExtractorNode` into a subclass of `BaseNode`.
- Refactor code referencing the extracted methods to ensure functionality and clarity.
- Fixes the issue that `ParameterExtractorNode` returns error when executed.
- Fix relevant test cases.

Closes #20840.
10 months ago
QuantumGhost a97ff587d2
fix(api): Resolve error encountered when executing `QuestionClassifieNode` (#20829)
The `QuestionClassifierNode` class extends `LLMNode`, meaning that, per the Liskov Substitution Principle, `QuestionClassifierNodeData` **SHOULD** be compatible in contexts where `LLMNodeData` is expected.

However, the absence of the `structured_output_enabled` attribute violates this principle, causing `QuestionClassifierNode` to fail during execution.

This commit implements a quick and temporary workaround. A proper resolution would involve refactoring to decouple `QuestionClassifierNode` from `LLMNode` to address the underlying design issue.

Fixes #20725.
10 months ago
Bowen Liang c1a13fa553
chore: replace pseudo-random generators with secrets module (#20616) 10 months ago
HaiyangP 3fb9b41fe5
A more concise and effective extractor for excel and csv files (#20625)
Co-authored-by: haiyangpengai <xxxx>
10 months ago
Arcaner ad2f25875e
fix(llm_node): update file variable mapping to use vision configs (#20417) 10 months ago
-LAN- 5ccfb1f4ba
refactor: Improve model status handling and structured output (#20586)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
-LAN- 275e86a26c
refactor: Removes tenant ID check from rate limit logic (#20585)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
非法操作 ca0b268ae5
fix: variable aggregator with group and file raise exception (#20581) 10 months ago
-LAN- 36f1b4b222
fix: Ensure model config integrity in retrieval processes (#20576)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
-LAN- 72fdafc180
refactor: Replaces direct DB session usage with context managers (#20569)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
Contrail a145c2a8fe
fix: ensure proper conversation role alternation for vLLM (#18837) 10 months ago
-LAN- a6ea15e63c
Refactor/message cycle manage and knowledge retrieval (#20460)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
yihong 5a991295e0
fix: drop some type fixme (#20344) 10 months ago
-LAN- db488bef51
refactor(api/core/workflow/enums): Rename WORKFLOW_RUN_ID to WORKFLOW_EXECUTION_ID (#20459)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
-LAN- f7fb10635f
refactor(workflow): Rename workflow node execution models (#20458)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
-LAN- 32e779eef3
refactor(workflow): Rename NodeRunMetadataKey to WorkflowNodeExecutionMetadataKey (#20457)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
-LAN- 482e50aae9
Refactor/remove db from cycle manager (#20455)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
Yeuoly d4408e0f54
fix: handle values in output arrays for CodeNode transformation (#20437) 10 months ago
-LAN- f59fb94dae
feat(agent_node): ensure that the enum-checking syntax is compatible with Python 3.11. (#20373)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
teawoong Kim 400ae664bb
fix(http): force multipart/form-data even without files(#20322) (#20323) 10 months ago
-LAN- f233a64eb5
fix(workflow): fetch user failed when workflow run in parallel mode (#20321)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
-LAN- 9c9d3d7bd0
feat: document extractor chardet encoding (#20269)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
-LAN- 55503ce771
fix: persist workflow execution status on partial success and failure (#20264)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
Heyang Wang b9b5d43dc6
fix: add 'floatfmt' when extract number from excel ( #20153 ) (#20193)
Co-authored-by: wangheyang <wangheyang@corp.netease.com>
Co-authored-by: crazywoola <427733928@qq.com>
10 months ago
-LAN- 6b3666f826
feat: Split WorkflowCycleManager (#20071)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
-LAN- d31235ca13
feat: Introduce WorkflowExecution Domain Entity and Repository, Replace WorkflowRun Direct Usage, and Unify Stream Response Logic (#20067)
Signed-off-by: -LAN- <laipz8200@outlook.com>
10 months ago
-LAN- 4977bb21ec
feat(workflow): domain model for workflow node execution (#19430)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
10 months ago
satohk 1b4fea1794
fix: Referencing Metadata in the response of the External Knowledge A… (#19637) (#19644)
Co-authored-by: satou.kazuhiro <satou.kazuhiro@fanuc.co.jp>
10 months ago
jiangbo721 fabfc7d4d8
fix: remove error message $ symbol (#19587)
Co-authored-by: 刘江波 <jiangbo721@163.com>
Co-authored-by: crazywoola <427733928@qq.com>
10 months ago
SSebo 57b3912227
fix: common prerequisite node workflow remove reachable node that failed to streaming llm… (#19552)
Co-authored-by: zhangshibo <zhangshibo@didiglobal.com>
10 months ago
非法操作 b00f94df64
fix: replace all dataset.Model.query to db.session.query(Model) (#19509) 10 months ago
LeanDeR c720e0dd04
refactor(workflow): revamp logging module for loop & iteration nodes (#19484) 10 months ago
Bowen Liang cbc8ebd8f5
chore: bump pydantic to 2.11 and pydantic-settings to 2.9 (#15049) 11 months ago
Will 58d9d35515
fix: inconsistent metadata definitions (#19343) 11 months ago
Will bfa652f2d0
fix: metadata filtering condition variable unassigned; fix External K… (#19208) 11 months ago
-LAN- f23cf98317
refactor: Remove RepositoryFactory (#19176)
Signed-off-by: -LAN- <laipz8200@outlook.com>
11 months ago
Novice 0cfc82d731
fix(structured-output): reasoning model's json format parsing (#19261) 11 months ago
kenwoodjw c5568f756f
fix basic auth if not base64 encode (#19242)
Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
11 months ago
Hao Cheng 9bcf837f17
fix: use only supported operators in metadata filter system prompts (#19195) 11 months ago
Will a212a63e6a
fix: time type metadata filtering error (#19192) 11 months ago
QuantumGhost 349c3cf7b8
feat(api): Add image multimodal support for LLMNode (#17372)
Enhance `LLMNode` with multimodal capability, introducing support for
image outputs.

This implementation extracts base64-encoded images from LLM responses,
saves them to the storage service, and records the file metadata in the
`ToolFile` table. In conversations, these images are rendered as
markdown-based inline images.
Additionally, the images are included in the LLMNode's output as
file variables, enabling subsequent nodes in the workflow to utilize them.

To integrate file outputs into workflows, adjustments to the frontend code
are necessary.

For multimodal output functionality, updates to related model configurations
are required. Currently, this capability has been applied exclusively to
Google's Gemini models.

Close #15814.

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
11 months ago
-LAN- bcc95e520b
feat: support remove first and remove last in variable assigner (#19144)
Signed-off-by: -LAN- <laipz8200@outlook.com>
11 months ago
Will 69b43a955f
fix: inconsistent case expression in _process_metadata_filter_func (#19146) 11 months ago
QuantumGhost bd1bbfee4b
Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 11 months ago
feiyang_deepnova 226afd4550
Fix: the issue of getting empty environment variables. (#19085) 11 months ago
Jyong b8bb45b106
remove unstructured api key check (#18989) 11 months ago
quicksand 5de01c1444
feat (document_extractor): support .properties file (#18969) 11 months ago
crazywoola 2c2af1d117
feat: add VTT data transform to Document extractor (#18936) 11 months ago
-LAN- d9aa2b155a
refactor: Refactors repository imports structure (#18901)
Signed-off-by: -LAN- <laipz8200@outlook.com>
11 months ago
Yeuoly abafa68647
refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876) 11 months ago
非法操作 c1559a7c8e
fix: LLMResultChunk cause concatenate str and list exception (#18852) 11 months ago
Jyong e2cb7006c4
check metadata_filtering_conditions could be None in auto mode (#18548) 11 months ago
ZalterCitty a1158cc946
fix: Update prompt message content types to use Literal and add union type for content (#17136)
Co-authored-by: 朱庆超 <zhuqingchao@xiaomi.com>
Co-authored-by: crazywoola <427733928@qq.com>
11 months ago
Novice da9269ca97
feat: structured output (#17877) 11 months ago
Novice c91045a9d0
fix(fail-branch): prevent streaming output in exception branches (#17153) 11 months ago
呆萌闷油瓶 8cc37f3115
fix:the extraction function of the list operation node received 0 that should not be received (#18170) 11 months ago
Ganondorf b006b9ac0c
Http requests node add ssl verify (#18125)
Co-authored-by: lizb <lizb@sugon.com>
11 months ago
kenwoodjw dfc123819e
fix basic auth encoding (#18047)
Signed-off-by: kenwoodjw <blackxin55+@gmail.com>
11 months ago
Novice cd7fd100a7
fix(langfuse): qusetion classify node can't see cost in langfuse (#17982) 11 months ago
Yongtao Huang 5d72003ebb
Remove dead code (#17899) 12 months ago
briqt 91cfa90503
Fix external knowledge Issues: (#17685) (#17843) 12 months ago
Xu Song 1e1d457548
fix: make prompt consistent with few-show examples (#11538) 12 months ago
zxfishhack 5541a1f80e
robust for json parser (#17687) 12 months ago
-LAN- ec29bcf013
feat(graph_engine): yield control to other threads before node run. (#17689)
Signed-off-by: -LAN- <laipz8200@outlook.com>
12 months ago
Yongtao Huang e1304dc0c3
Chore: fix some wrong annotations (#17413) 12 months ago
Novice dcdec98c8e
feat: agent node add memory (#15976) 12 months ago
Good Wood b3f4e90862
feat: remove file and file[] restriction in code node (#17382) 12 months ago
Dongyu Li 8c77f2dc03
Feat/loop node (#17273) 12 months ago
非法操作 44f911a0a8
chore: docstring not match the function parameter (#17162) 12 months ago
Arcaner becd03a4aa
fix: enhance file extension condition check for if-else node (#17060) 12 months ago
Jyong 30792a1e1a
install pandoc (#16825) 1 year ago
Jyong 6a857e01f6
fix multiple metadata filter's confusing setting (#16771) 1 year ago
Jyong 86a1859d02
Metadata variable value fix (#16665) 1 year ago
Ron bf682302ee
fix error with literal_eval (#16297)
Co-authored-by: Novice <novice12185727@gmail.com>
1 year ago
Novice 437dcbdd68
fix: exclude additional unreachable nodes (#16329) 1 year ago
Jyong b8ef3149ef
metadata expect value check error (#16210) 1 year ago
cyflhn 1789437cc5
reopen PR for #14411 (#16148) 1 year ago
Jyong fa9b767bf2
fix chatflow metadata field name (#16130) 1 year ago
Jyong abeaea4f79
Support knowledge metadata filter (#15982) 1 year ago
kurokobo 86d3fff666
fix: respect resolution settings for vision for basic chatbot, text generator, and parameter extractor node (#16041) 1 year ago
Gen Sato 475b8d731e
Fix HTTP Request node to give priority to file extension of content-disposition (#12653) 1 year ago
Novice fe0d932f50
fix: fail-branch stream output error (#13401)
Co-authored-by: Novice Lee <novicelee@NoviPro.local>
1 year ago
Bowen Liang 9e782d4c1e
chore: bump ruff to 0.11.0 and fix linting violations (#15953) 1 year ago
QuantumGhost 2b4d1cf1db
fix(api): fix fail branch functionality for `WorkflowTool` (#15966) 1 year ago
QuantumGhost 23ed3a520b
chore(api): improve type hints for BaseNode and its subclasses (#15826) 1 year ago
jiangbo721 5646442931
fix: iteration total tokens calculate error (#15813)
Co-authored-by: 刘江波 <jiangbo721@163.com>
1 year ago
RookieAgent 8165d0b469
fix: http_request node form-data support array[file] (#15731) 1 year ago
Arcaner 12fa517297
fix: if-else-node handles missing optional file variables (#15693) 1 year ago
Novice b817036343
fix: nesting of conditional branches causing streaming output error (#14065) 1 year ago
heyszt a58b990855
fix agent_execution_metadata (#15444) 1 year ago
Jacky Wu ed5596a8f4
fix: avoid llm node result var not init issue while do retry. (#14286) 1 year ago
Jyong 9b2a9260ef
Feat/new saas billing (#14996) 1 year ago
非法操作 99dc8c7871
fix: http node request detect text/xml as file (#15174) 1 year ago
Novice 778861f461
fix: agent node can't use in parallel (#15047) 1 year ago
Wood 2c17bb2c36
Feature/newnew workflow loop node (#14863)
Co-authored-by: arkunzz <4873204@qq.com>
1 year ago
LeanDeR 4f6a4f244c
fix(llm/nodes.py): Ensure that the output returns without any exceptions (#14880) 1 year ago