Skip to main content

embed_passages_controlled

Function embed_passages_controlled 

Source
pub fn embed_passages_controlled(
    embedder: &Mutex<LlmEmbedding>,
    texts: &[&str],
    _token_counts: &[usize],
) -> Result<Vec<Vec<f32>>, AppError>
Expand description

Embeds a batch of passages with token-count-aware batching.

Kept for API compatibility; since v1.0.79 it routes through the bounded parallel fan-out with conservative defaults.