You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Bounded retry policy for transient rerank connection resets #1026
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.
Activity