pub trait DocumentLoader: Send + Sync {
// Required method
fn load(&self) -> BoxFuture<'_, Result<Vec<Document>, SynwireError>>;
}Expand description
Trait for document loaders.
A loader reads documents from an external source (file, URL, database, etc.)
and returns them as a Vec<Document>.