Trait Embed

Source
pub trait Embed: HasCapability {
    // Provided method
    fn embed_data<'life0, 'async_trait>(
        &'life0 self,
        texts: Vec<String>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<f32>>>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}

Provided Methods§

Source

fn embed_data<'life0, 'async_trait>( &'life0 self, texts: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<f32>>>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl Embed for OpenAI

Source§

impl<P, C> Embed for Model<P, C>
where P: Provider + Embed, C: Embed + ?Sized + Send + Sync,