pub trait SparseEmbeddingModel:
    Send
    + Sync
    + Debug
    + DynClone {
    // Required method
    fn sparse_embed<'life0, 'async_trait>(
        &'life0 self,
        input: Vec<String>,
    ) -> Pin<Box<dyn Future<Output = Result<SparseEmbeddings>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    // Provided method
    fn name(&self) -> &'static str { ... }
}Expand description
Embeds a list of strings and returns its embeddings. Assumes the strings will be moved.