use chunkr::chunker::{base::BaseChunker, char::CharacterChunker}; use std::env; fn main() { let char_chunker = CharacterChunker::new(); let args: Vec = env::args().collect(); let chunk_size = args[1].parse().unwrap(); let overlap = args[2].parse().unwrap(); let input_text = &args[3]; let chunks = char_chunker .chunk_text(input_text, chunk_size, overlap) .unwrap(); // get content from documents let mut result: Vec = Vec::new(); for chunk in chunks { result.push(chunk.content.to_string()); } print!("{:?}", result) }