fix: lower default reranker_max_candidates from 300 to 50 - #2619
Conversation
The default of 300 causes 30-45s recall latency with local reranker (jina-reranker-v3). Lowering to 50 reduces latency to 13-19s with no measurable quality degradation, as documented in vectorize-io#2554. Users can still override via HINDSIGHT_API_RERANKER_MAX_CANDIDATES. Closes vectorize-io#2554
|
thanks @handnewb — the latency point is real and worth addressing, but i want to hold this one for @nicoloboschi to call rather than merge it directly. it's a change to a global recall-quality default, not a bug fix, so it's a product tradeoff rather than a correctness question. two things worth surfacing for that decision:
also, if we do change it, the documented default ( net: not blocking the direction — 300 is arguably high — just don't want to move a core-quality default on anecdote. nicolo, your call on the value (50 vs 100 vs warn-only), and i can get benchmark numbers first if useful. |
|
just change your server value. 300 is for production environments and it's fine as default, thanks. |
Summary
DEFAULT_RERANKER_MAX_CANDIDATESwas 300, causing 30-45s recall latency with local reranker (e.g. jina-reranker-v3). Changed to 50, reducing latency to 13-19s with no measurable quality degradation.Impact
Users can still override via
HINDSIGHT_API_RERANKER_MAX_CANDIDATES.Change
1 line in
config.py:Closes #2554