[BUG] Rerank operation fails with InvalidParameter error when document index exceeds 300000
Describe the bug
2025-07-09 07:10:39,420 - ERROR - Rerank operation failed: Alibaba Cloud rerank API returned 400: {"request_id":"2e5de67c-bbfe-9680-b8e2-9697ecd74c40","code":"InvalidParameter","message":"<400> InternalError.Algo.InvalidParameter: Value error, document index:0 is invalid, it should not be larger than 300000: input.documents"} (Details: {'provider': 'alibabacloud', 'model': 'gte-rerank-v2', 'status_code': 400})
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
This issue has been marked as stale because it has been open for 30 days with no activity