Trait LoadSource

Source
pub trait LoadSource {
    type ErrorType: Error;

    // Required method
    fn load(&self) -> Result<Vec<String>, Self::ErrorType>;
}
Expand description

§LoadSource

Trait that allows reading the raw text for an external source

Required Associated Types§

Required Methods§

Source

fn load(&self) -> Result<Vec<String>, Self::ErrorType>

Called an returns a vector of raw text to generate embeddings for

Implementors§