Skip to content

Allow configurable external rerank endpoints #1081

Description

@ErikBPF

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions