pub fn try_embed_query_with_choice(
models_dir: &Path,
text: &str,
choice: Option<LlmBackendChoice>,
) -> Result<Vec<f32>, FallbackReason>Expand description
Try to embed a query string using the user-selected backend. On
failure, returns a structured FallbackReason so the caller can
surface vec_degraded instead of a hard exit 11.
None matches the legacy try_embed_query_with_fallback path
(uses the active embedder without an explicit chain).