Problem
Reranking is fixed to the bundled local Xenova model. Deployments using centralized or multilingual rerankers must patch the worker.
Expected behavior
- Optionally call a Cohere-compatible
/rerank endpoint.
- Configure endpoint, model, timeout, and optional API key through environment variables.
- Preserve the existing local reranker as fallback.
- Fail open on network, HTTP, or malformed-provider failures.
- Validate provider indices before applying scores.
Problem
Reranking is fixed to the bundled local Xenova model. Deployments using centralized or multilingual rerankers must patch the worker.
Expected behavior
/rerankendpoint.