Skip to main content

embed_via_backend

Function embed_via_backend 

Source
pub fn embed_via_backend(
    models_dir: &Path,
    text: &str,
    backend: &LlmBackendKind,
) -> Result<Vec<f32>, AppError>
Expand description

Embeds a single text via the given backend. Used by embed_with_fallback and exposed to allow direct one-shot selection without a chain.