dify icon indicating copy to clipboard operation
dify copied to clipboard

how to retry the llm node when the generated response is not ok

Open mboo2005 opened this issue 7 months ago • 0 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] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [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? Tell me about your story.

Sometimes the results provided by large models are not ideal, containing errors or being too short. I need an "if" judgment node to determine if the content is appropriate. If it's not suitable, I want to regenerate the content and retry up to three times. How can I implement this scenario?

2. Additional context or comments

No response

3. Can you help us with this feature?

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

mboo2005 avatar Jul 11 '24 01:07 mboo2005