pub struct RecursiveChunkConfig {
pub chunk_size: usize,
pub min_chunk_size: Option<usize>,
pub chunk_overlap: Option<usize>,
pub language: Option<String>,
}Expand description
Configuration for a single chunking operation.
Fields§
§chunk_size: usizeTarget chunk size in bytes.
min_chunk_size: Option<usize>Minimum chunk size in bytes. Defaults to chunk_size / 2.
chunk_overlap: Option<usize>Overlap between consecutive chunks in bytes.
language: Option<String>Language name or file extension for syntax-aware splitting.
Trait Implementations§
Source§impl Clone for RecursiveChunkConfig
impl Clone for RecursiveChunkConfig
Source§fn clone(&self) -> RecursiveChunkConfig
fn clone(&self) -> RecursiveChunkConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RecursiveChunkConfig
impl RefUnwindSafe for RecursiveChunkConfig
impl Send for RecursiveChunkConfig
impl Sync for RecursiveChunkConfig
impl Unpin for RecursiveChunkConfig
impl UnwindSafe for RecursiveChunkConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more