pub fn embed_passage_or_skip(
models_dir: &Path,
text: &str,
choice: Option<LlmBackendChoice>,
) -> Result<Option<Vec<f32>>, AppError>Expand description
v1.0.89 (BUG-SKIP-EMBED + GAP-EMBED-PROPAGATION): embed a passage
honouring both --llm-backend and --skip-embedding-on-failure.
On success returns Ok(Some(vec)). On failure:
- if
--skip-embedding-on-failureis active, logs a warning and returnsOk(None) - otherwise propagates the error (exit 11)