Skip to main content

embed_passages_parallel_local

Function embed_passages_parallel_local 

Source
pub fn embed_passages_parallel_local(
    models_dir: &Path,
    texts: &[String],
    parallelism: usize,
    batch_size: usize,
) -> Result<Vec<Vec<f32>>, AppError>
Expand description

G42/S3: embeds texts through the bounded parallel fan-out and returns vectors in input order.