Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support File Type Variables in LLM Node Prompt Editor with Automatic Format Conversion #10681

Closed
laipz8200 opened this issue Nov 14, 2024 · 0 comments · Fixed by #10679
Closed
Assignees
Labels
💪 enhancement New feature or request

Comments

@laipz8200
Copy link
Member

laipz8200 commented Nov 14, 2024

Currently, Dify's LLM Node prompt editor does not support using File type variables directly. This enhancement would allow users to include File type variables directly in the prompt editor, where Dify automatically converts the file content into the correct format for the chosen model (e.g., text extraction for text-based models).

If a file type is unsupported by the model, Dify should raise an error. This feature would improve the flexibility of prompt creation and streamline workflows involving file data.

Acceptance Criteria

  1. Users can include File type variables in the LLM Node prompt editor.
  2. Dify should convert the file content to the appropriate format for the selected model.
  3. If the file type is unsupported by the model, it should be ignored without causing errors.
@laipz8200 laipz8200 self-assigned this Nov 14, 2024
@dosubot dosubot bot added the 💪 enhancement New feature or request label Nov 14, 2024
@laipz8200 laipz8200 changed the title Support File Type Variables in LLM Node Prompt Editor with Automatic Format Conversion Step 1 Nov 18, 2024
@laipz8200 laipz8200 changed the title Step 1 Support File Type Variables in LLM Node Prompt Editor with Automatic Format Conversion Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
1 participant