dify/web/app/components/workflow/nodes/knowledge-retrieval-v2
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
..
__tests__ fix(workflow): let the KnowledgeFS retrieval node run on text or image alone 2026-09-03 01:52:19 -04:00
components fix(workflow): allow KnowledgeFS top n up to 100 2026-09-01 20:22:56 +08:00
config-helpers.ts Implement the requested changes across the application 2026-08-09 22:40:48 -04:00
constants.ts fix(workflow): allow KnowledgeFS top n up to 100 2026-09-01 20:22:56 +08:00
default.ts fix(workflow): let the KnowledgeFS retrieval node run on text or image alone 2026-09-03 01:52:19 -04:00
error-message.ts fix(workflow): stabilize KnowledgeFS retrieval access 2026-08-11 11:51:17 -04:00
metadata-filtering.ts feat(knowledge-fs): add automatic metadata filtering to retrieval node 2026-09-02 02:55:12 -04:00
node.tsx Implement the requested changes across the application 2026-08-09 22:40:48 -04:00
panel.tsx fix(workflow): let the KnowledgeFS retrieval node run on text or image alone 2026-09-03 01:52:19 -04:00
types.ts feat(knowledge-fs): add automatic metadata filtering to retrieval node 2026-09-02 02:55:12 -04:00
use-config.ts feat(knowledge-fs): add automatic metadata filtering to retrieval node 2026-09-02 02:55:12 -04:00
use-single-run-form-params.ts feat(knowledge-fs): add profile-driven multimodal retrieval 2026-09-02 01:01:57 -04:00