ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Question]: Is there any way to limit the amount of text generated by the assistant (no more than a certain number of characters)?

Open YustasDev opened this issue 6 months ago • 1 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] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • [x] Please do not modify this template :) and fill in all the required fields.

Describe your problem

Is there any way to limit the amount of text generated by the assistant (no more than a certain number of characters)? No model can meet the requirements for generating a response with a certain amount (no more than ... characters) no matter what wording is used in the system prompt.

YustasDev avatar Jun 10 '25 09:06 YustasDev

We're gona enable the max token field.

KevinHuSh avatar Jun 12 '25 06:06 KevinHuSh