Skip to main content

embed_passage_with_embedding_choice

Function embed_passage_with_embedding_choice 

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

v1.0.93: embedding with EmbeddingBackendChoice awareness. When the embedding backend is Openrouter or Auto with a live client, the chain prepends OpenRouter before the LLM subprocess backends.