pub async fn embed_component(
store: &dyn DesignSystemStore,
backend: &Arc<dyn EmbeddingBackend>,
fallback: Option<&Arc<dyn EmbeddingBackend>>,
component_id: &str,
) -> Result<(), EmbedError>Expand description
Embed a single component and persist the result via the store’s
set_component_embedding. If fallback is provided and the primary
backend fails with BackendUnavailable, retries with fallback.
§Errors
Returns EmbedError::ComponentNotFound if component_id does not
exist, or EmbedError::Backend if both the primary and (if provided)
fallback embedding backends fail.