Add request limit settings #4499

Closed
opened 2026-02-21 18:06:47 -05:00 by yindo · 0 comments
Owner

Originally created by @ifsheldon on GitHub (Jul 8, 2024).

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • 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.

I was trying to add a lot of long files to a knowledge base, which generates a lot of chunks to be embedded. However, due to RPM limit enforced by the embedding provider, a lot of embedding tasks often failed. I have to restart embedding tasks myself manually.

It'd great to set RPM, RPS, TPS, TPM limits for basically all outbound requests to LLM providers and throttle requests based on these limits to avoid failures.

A good first step would be adding limits and throttles to embedding workloads, which are likely to explode if files are too large or too many.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @ifsheldon on GitHub (Jul 8, 2024). ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [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. I was trying to add a lot of long files to a knowledge base, which generates a lot of chunks to be embedded. However, due to RPM limit enforced by the embedding provider, a lot of embedding tasks often failed. I have to restart embedding tasks myself manually. It'd great to set RPM, RPS, TPS, TPM limits for basically all outbound requests to LLM providers and throttle requests based on these limits to avoid failures. A good first step would be adding limits and throttles to embedding workloads, which are likely to explode if files are too large or too many. ### 2. Additional context or comments _No response_ ### 3. Can you help us with this feature? - [ ] I am interested in contributing to this feature.
yindo added the 💪 enhancement label 2026-02-21 18:06:47 -05:00
yindo closed this issue 2026-02-21 18:06:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4499