pub struct ChunkerConfig {
pub target_tokens: usize,
pub min_tokens: usize,
pub max_tokens: usize,
pub overlap_messages: usize,
pub noise_filter_enabled: bool,
}Expand description
Configuration for the chunker.
Fields§
§target_tokens: usizeTarget tokens per chunk (default: 1500)
min_tokens: usizeMinimum tokens — don’t create tiny chunks unless it’s the last window (default: 500)
max_tokens: usizeMaximum tokens — force split if exceeded (default: 2500)
overlap_messages: usizeNumber of messages to overlap between consecutive windows (default: 2)
noise_filter_enabled: boolWhether to strip structural noise (line-numbered grep matches, tool
echoes, stray YAML delimiters) before signal/highlight extraction.
Default: true. Set to false for debugging or when raw upstream
content must be preserved verbatim.
Trait Implementations§
Source§impl Clone for ChunkerConfig
impl Clone for ChunkerConfig
Source§fn clone(&self) -> ChunkerConfig
fn clone(&self) -> ChunkerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChunkerConfig
impl Debug for ChunkerConfig
Auto Trait Implementations§
impl Freeze for ChunkerConfig
impl RefUnwindSafe for ChunkerConfig
impl Send for ChunkerConfig
impl Sync for ChunkerConfig
impl Unpin for ChunkerConfig
impl UnsafeUnpin for ChunkerConfig
impl UnwindSafe for ChunkerConfig
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