dify icon indicating copy to clipboard operation
dify copied to clipboard

Increase the maximum length of the "paragraph" variable of the workflow input field.

Open nne998 opened this issue 1 year ago • 2 comments

Self Checks

  • [X] I have searched for existing issues search for existing issues, including closed ones.
  • [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [X] Please do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing?

I need to input a very long article.

image

2. Describe the feature you'd like to see

Increase the maximum length of the "paragraph" variable in the workflow.

3. How will this feature improve your workflow or experience?

maximum length of the "paragraph" variable in the workflow.

4. Additional context or comments

No response

5. Can you help us with this feature?

  • [ ] I am interested in contributing to this feature.

nne998 avatar May 29 '24 09:05 nne998

Change this value is easy, but how long do you need.

crazywoola avatar May 29 '24 10:05 crazywoola

I think, it can have a default value, but it can be set to unlimited if needed.

nne998 avatar May 29 '24 17:05 nne998

I encountered the definition PARAGRAPH_MAX_LENGTH = 1032 * 32 in the code, and I'm puzzled by the rationale behind this specific value. It might be more meaningful to align this with the token capacity of GPT-4, which is 128K tokens. 1 token ~= 4 chars in English, It would be PARAGRAPH_MAX_LENGTH = 128000 * 4

hjlarry avatar May 31 '24 07:05 hjlarry

I am using Gemini 1.5 Pro in Japanese. This model can handle up to 2 million tokens, but I am not certain of the maximum length in characters. Therefore, it would be beneficial if PARAGRAPH_MAX_LENGTH could be unlimited or adjustable at dify startup.

kawataki-yoshika avatar Jun 11 '24 01:06 kawataki-yoshika

I think, it can have a default value, but it can be set to unlimited if needed.

yes, I agree. We need the larger maximum length of the "paragraph" variable and 'text' variable of the workflow input field.

Sakura4036 avatar Jun 18 '24 02:06 Sakura4036

Since a workflow can be published as a tool, we need a larger input field maximum length. I think this config should be customizable by admin user via Settings web UI or environment variable of deployment.

rainchen avatar Jun 22 '24 09:06 rainchen

We desperately need this feature, as soon as possible.

Since a workflow can be published as a tool, we need a larger input field maximum length. I think this config should be customizable by admin user via Settings web UI or environment variable of deployment.

Sakura4036 avatar Jun 24 '24 06:06 Sakura4036