langchain_rs 0.0.2

Rust version of Langchain
Documentation
1
2
3
4
5
6
7
8
9
use anyhow::Result;

use super::document_path::DocumentPath;
use super::documents::Documents;

#[async_trait::async_trait]
pub trait DocumentLoader: Send + Sync {
    async fn load(&self, path: DocumentPath) -> Result<Documents>;
}