dify/api/core/workflow
Jyong 57d03faa98 fix(workflow): let the KnowledgeFS retrieval node run on text or image alone
The KnowledgeFS retrieval node treated the query text as mandatory even though
a query image is a complete input on its own. Text and image are now
alternatives: the node needs at least one of them, never both.

- web: drop the required mark from the query text field; the checklist fails
  only when neither variable is bound (new i18n message in every locale).
- api: make `query_variable_selector` optional with a model-level rule that
  one of the two selectors must be set, and only map the query variable when
  it is bound. At runtime an empty text without images is a configuration
  error; an image-only query retrieves with an empty text, merges spaces on
  their own scores instead of a text reranker, skips automatic metadata
  extraction, and skips the text-based failed-query capture.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015zw5G5SX3HmVfnZof6YWAc
2026-09-03 01:52:19 -04:00
..
generator chore: remove unnecessary type conversions (#41454) 2026-08-29 07:04:18 +00:00
nodes fix(workflow): let the KnowledgeFS retrieval node run on text or image alone 2026-09-03 01:52:19 -04:00
__init__.py refactor(api): move workflow knowledge nodes and trigger nodes (#33445) 2026-03-15 15:24:59 +08:00
file_reference.py feat(dify-agent): sync shell and back proxy updates (#37159) 2026-06-10 03:04:32 +00:00
graph_topology.py feat: agent slash menu backend (#37268) 2026-06-10 10:40:03 +00:00
human_input_adapter.py feat(workflow): support human input in loop and iteration (#39243) 2026-08-03 02:24:18 +00:00
human_input_forms.py fix(hitl): stop confusing 404 when resuming forms via CLI (#37556) 2026-06-22 06:11:27 +00:00
human_input_policy.py chore(api): upgrade graphon to v0.6.0, migrate HITL logic back to Dify (#38247) 2026-07-03 03:45:21 +00:00
llm_environment_variable.py feat(workflow): support LLM environment variables (#39125) 2026-08-04 06:17:13 +00:00
llm_node.py fix: meter hosted LLM invocations (#40589) 2026-08-12 12:33:21 +00:00
node_execution_process_data.py refactor: introduce agent working environment architecture (#39480) 2026-07-28 13:16:05 +00:00
node_factory.py feat(knowledge-fs): add automatic metadata filtering to retrieval node 2026-09-02 02:55:12 -04:00
node_runtime.py Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-08-27 10:06:48 +08:00
snippet_start.py feat: snippet (#37046) 2026-06-05 09:38:42 +00:00
system_variables.py chore(api): upgrade graphon to v0.3.0 (#35469) 2026-05-09 07:30:03 +00:00
template_rendering.py ci: add flag for linter (#37018) 2026-06-08 04:53:12 +00:00
variable_pool_initializer.py feat: snippet (#37046) 2026-06-05 09:38:42 +00:00
variable_prefixes.py refactor(api): continue decoupling dify_graph from API concerns (#33580) 2026-03-25 20:32:24 +08:00
workflow_entry.py feat(api): track credit usage contexts (#41181) 2026-08-25 10:21:32 +00:00
workflow_run_outputs.py refactor(api): rename dify_graph to graphon (#34095) 2026-03-25 21:58:56 +08:00