Skip to main content

EmbeddingProvider

Trait EmbeddingProvider 

Source
pub trait EmbeddingProvider {
    // Required method
    fn embed(&self, records: &[InputRecord]) -> PopsamResult<Vec<EmbeddedText>>;
}
Expand description

Trait implemented by embedding backends that can turn raw texts into vectors.

Required Methods§

Source

fn embed(&self, records: &[InputRecord]) -> PopsamResult<Vec<EmbeddedText>>

Embeds a batch of records and returns the corresponding vectors.

Implementors§