Trait text_splitter::ChunkValidator
source · pub trait ChunkValidator {
// Required method
fn validate_chunk(&self, chunk: &str, chunk_size: usize) -> bool;
}Expand description
Determines if a given piece of text is still a valid chunk.
Required Methods§
sourcefn validate_chunk(&self, chunk: &str, chunk_size: usize) -> bool
fn validate_chunk(&self, chunk: &str, chunk_size: usize) -> bool
Determine if the given chunk still fits within the specified max chunk size.