pub fn try_embed_query_with_deterministic_fallback(
models_dir: &Path,
query: &str,
choice: Option<LlmBackendChoice>,
) -> Result<(Vec<f32>, LlmBackendKind), FallbackReason>Expand description
G58 / ADR-0043 (v1.0.85): deterministic fallback for recall and
hybrid-search.
- On
OAuthQuota { backend }, retry once with the alternative backend (codex ↔ claude) before giving up. - On
SlotExhausted, sleep 750ms and retry once (gives the slot semaphore time to release a permit from a sibling subprocess). - On any other
FallbackReason, return immediately (deterministic).