Skip to main content

create_embedding_service

Function create_embedding_service 

Source
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.