pub fn create_embedding_model(
config: &EmbeddingModelConfig,
) -> OrbokResult<Box<dyn EmbeddingModel>>Expand description
Construct an embedding model from configuration.
Mockbackend: always works, no model file required.OnnxRuntime: requires--features tractand the model file.CandleCpu/CandleCuda: requires--features candleand weights.
Returns OrbokError::Cache with a human-readable message when the
requested backend is not compiled in, so callers can degrade to
keyword-only mode.