Rate Limits
Request rate limits for each RAG API endpoint and how to handle throttling.
Each endpoint has a request rate limit to protect service stability. Knowledge Base management and Data Import endpoints are limited by QPS (requests per second). Knowledge Search and Chat endpoints are limited by the concurrency of the knowledge bases bound to the service instance. When you go over, the endpoint returns HTTP 429 Too Many Requests.
Knowledge Base management endpoints
| Endpoint | Path | QPS limit |
|---|---|---|
| Retrieve | /rag/index/retrieve | 2,000 |
| Get Job Status | /rag/index_job/status | 20 |
| List Documents | /rag/index/files | 15 |
| Document Details | /rag/list/index/file/details | 10 |
| Create Knowledge Base and Import | /rag/index/create_v2 | 10 |
| Submit Import Job | /rag/index/job/create | 10 |
| List Knowledge Bases | /rag/index/list | 10 |
| Update Knowledge Base | /rag/index/update | 10 |
| Delete Knowledge Base | /rag/index/delete | 10 |
| Delete Document | /rag/index/delete_file | 10 |
| List Chunks | /pipeline/{id}/chunklist | 10 |
| Update Chunk | /rag/index/chunk/update | 10 |
| Delete Chunks | /rag/index/chunk/delete | 10 |
| Monitoring | /rag/index/monitor | 1 |
Data Import endpoints
| Endpoint | Path | QPS limit |
|---|---|---|
| Describe File | /describeFile | 10 |
| Delete File | /deleteFile | 10 |
| Request Upload Lease | /applyFileUploadLease | 10 |
| Register File | /addFile | 10 |
| List Categories | /listCategory | 5 |
| Create Category | /addCategory | 5 |
| Delete Category | /deleteCategory | 5 |
| List Files | /listFile | 5 |
| Get Dataset | /getConnector | 5 |
| Batch Update Tags | /batchUpdateFileTag | 5 |
| Create Dataset | /addConnector | 2 |
| Import from OSS | /addFilesFromAuthorizedOss | 5 |
Knowledge Search and Chat
Knowledge Search and Chat endpoints are rate-limited per knowledge base (pipeline) bound to the service instance. If an instance is bound to multiple knowledge bases, the lowest concurrency among them applies. When throttled, the API returns HTTP 429 with error code THROTTLING.pipelineQPSLimit, and the message identifies the knowledge base ID that reached the limit.
| Endpoint | Path | Rate limit rule |
|---|---|---|
| Knowledge Search | /knowledge/search | Lowest concurrency among the knowledge bases bound to the instance |
| Knowledge Chat | /knowledge/chat | Lowest concurrency among the knowledge bases bound to the instance |
Knowledge base concurrency:
| Knowledge base edition | Concurrency | Description |
|---|---|---|
| Standard Edition | 1 QPS (fixed) | Appears as a maximum of 10 requests per 10 seconds |
| Enterprise Edition | 1 RCU = 50 QPS | Calculated from the RCU configured for the knowledge base; more RCU means higher concurrency |
Examples:
- An instance bound only to a Standard Edition knowledge base: maximum 10 requests per 10 seconds.
- An instance bound to both Standard Edition and Enterprise Edition knowledge bases: limited by the Standard Edition, that is, maximum 10 requests per 10 seconds.
- An instance bound to Enterprise Edition knowledge bases with 1 RCU and 2 RCU: limited by 1 RCU, that is, 50 QPS.
Handling rate limits
When you hit a rate limit, the endpoint returns:
{
"code": "Throttling",
"status_code": 429,
"message": "Requests rate limit exceeded, please try again later.",
"request_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
Recommendations:
- On a 429, back off exponentially before retrying — for example, 1s → 2s → 4s.
- Cap concurrency on batch operations so you don't burst past the limit.
- Cache results client-side for low-QPS endpoints like Monitoring to cut down on calls.
ImportantIf the default quota isn't enough for your workload, submit a ticket to request a higher limit.