langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
49.01k stars 7.01k forks source link

Whether to consider allowing sys.files uploaded by users at the start node to be passed to other nodes in the workflow #9405

Open lem1272536013 opened 1 week ago

lem1272536013 commented 1 week ago

Self Checks

1. Is this request related to a challenge you're experiencing? Tell me about your story.

Now I have a problem, when I create an application, I want to add the large model node that is called later based on whether sys.files is null or not, when sys.files is null, call the non-visual model, and when sys.files is not empty, call the visual model, I think this can be done with more flexibility. But the current dify can't implement this feature, so I'd like to ask if you consider opening the sys.files variable to other nodes in the future, such as if conditional nodes. Or is there another way to implement this idea of mine now? thanks

a188c90a147a371f0cf04a76eed9639

2. Additional context or comments

No response

3. Can you help us with this feature?

crazywoola commented 1 week ago

From v0.10.0 we will support interacting with the files, however please read things below. Current is https://github.com/langgenius/dify/releases/tag/0.10.0-beta3

Original Node Enhancement

New Node Support

tounh commented 2 days ago

直接使用{{#sys.files#}}粘帖到对应的输入框即可。