//! Defines the interface for an embedding model that can embed text input.
useasync_trait::async_trait;usecrate::error::AnchorChainError;/// Defines the interface for an embedding model that can embed text input.
#[async_trait]pubtraitEmbeddingModel{/// Embeds the given input text and returns the resulting vector.
async fnembed(&self, input: String)->Result<Vec<f32>, AnchorChainError>;fndimensions(&self)->usize;}