pub fn select_embedding_provider(
llm_config: Option<LlmEmbeddingConfig>,
) -> Box<dyn EmbeddingProvider>Expand description
Select the best available embedding provider based on configuration.
Priority order:
- ONNX local model if
onnx_model_pathpoints to a valid.onnxfile - LLM API if llm_embedding config is present
- Mock (fallback, for testing or when no backend available)