pub fn embed_passages_serial<'a, I>(
embedder: &Mutex<TextEmbedding>,
texts: I,
) -> Result<Vec<Vec<f32>>, AppError>where
I: IntoIterator<Item = &'a str>,Expand description
Embed multiple passages serially.
This path intentionally avoids ONNX batch inference for robustness when real-world Markdown chunks trigger pathological runtime behavior.