pub async fn create_embedding_service(
config: &Config,
) -> Option<Arc<dyn EmbeddingService>>Expand description
Create an embedding service when config.embedding.enabled is true.
Returns None when embeddings are disabled or the service fails to
initialise — this preserves graceful degradation throughout the
cognition pipeline.