Skip to main content

try_embed_query_with_embedding_choice

Function try_embed_query_with_embedding_choice 

Source
pub fn try_embed_query_with_embedding_choice(
    models_dir: &Path,
    text: &str,
    embedding_backend: EmbeddingBackendChoice,
    llm_backend: LlmBackendChoice,
) -> Result<(Vec<f32>, LlmBackendKind), FallbackReason>
Expand description

v1.0.93 (GAP-OR-INGEST): query embedding with EmbeddingBackendChoice awareness. Mirrors try_embed_query_with_choice but routes through embed_passage_with_embedding_choice so OpenRouter API is used when configured.