Trait swiftide_core::indexing_traits::EmbeddingModel
source · pub trait EmbeddingModel:
Send
+ Sync
+ Debug {
// Required method
fn embed<'life0, 'async_trait>(
&'life0 self,
input: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Embeddings>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Embeds a list of strings and returns its embeddings. Assumes the strings will be moved.