Skip to content

[Feature]: Bounded retry policy for transient rerank connection resets #1026

Open

Description

@igs-rogenlo

Summary

Offer a bounded optional retry for transient rerank connection resets while preserving the existing cosine fallback and a shared deadline.

Problem to solve

The current retriever correctly falls back when its rerank request loses a connection. For an intermittently resetting rerank endpoint, a single safe retry can recover the requested cross-encoder result. This is a resilience-policy proposal, not a claim that the current fallback violates an existing promise.

Proposed solution

Allow at most a configured small number of retries for genuine connection failures within one total deadline. Do not retry authentication/validation responses, exhausted deadlines or cancellation. Preserve the original candidate set and deterministic fallback. Let the HTTP owner decide safe connection reuse rather than globally changing networking defaults.

Evidence and limits

Four actual-retriever cases use a loopback HTTP server and synthetic store/embedder. On a first-request reset, official master sends one request and returns cosine score 1; the downstream variant sends two requests and receives the server's rerank score 0.99. A 401 receives one request and fallback in both versions. The reset is deliberately injected; no natural production keep-alive failure, provider latency improvement or full timeout-budget acceptance is claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions