langchain_rs 0.0.2

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

use super::documents::Documents;

pub trait DocumentSplitter {
    fn separators(&self) -> Vec<String>;
    fn split_documents(&self, documents: &Documents) -> Result<Documents>;
}