dify/api/core/workflow/nodes
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
..
agent fix: preserve Agent tool-generated file outputs (#40917) 2026-08-18 05:59:43 +00:00
agent_v2 Merge remote-tracking branch 'origin/main' into deploy/konwledge 2026-09-02 10:31:10 +08:00
datasource ci: add flag for linter (#37018) 2026-06-08 04:53:12 +00:00
human_input fix(human-input): align backend timeout handle with frontend DSL (#40746) 2026-08-26 06:47:14 +00:00
knowledge_index feat(api): track credit usage contexts (#41181) 2026-08-25 10:21:32 +00:00
knowledge_retrieval feat(knowledge-fs): add automatic metadata filtering to retrieval node 2026-09-02 02:55:12 -04:00
knowledge_retrieval_v2 fix(workflow): let the KnowledgeFS retrieval node run on text or image alone 2026-09-03 01:52:19 -04:00
trigger_plugin ci: add flag for linter (#37018) 2026-06-08 04:53:12 +00:00
trigger_schedule ci: add flag for linter (#37018) 2026-06-08 04:53:12 +00:00
trigger_webhook ci: add flag for linter (#37018) 2026-06-08 04:53:12 +00:00
__init__.py refactor(api): move workflow knowledge nodes and trigger nodes (#33445) 2026-03-15 15:24:59 +08:00