pub struct ChunkingConfig {
pub enabled: bool,
pub max_chunk_size: usize,
pub min_chunk_size: usize,
pub auto_compact: bool,
pub max_retained_chunks_per_file: usize,
pub min_chunk_score_threshold: f64,
pub max_retained_symbols_per_file: usize,
pub min_symbol_score_threshold: f64,
}Expand description
CST-aware code chunking configuration.
Fields§
§enabled: boolWhether chunking is enabled during indexing.
max_chunk_size: usizeMaximum chunk size in non-whitespace characters.
min_chunk_size: usizeMinimum chunk size in non-whitespace characters.
auto_compact: boolWhether to auto-compact the graph after indexing.
max_retained_chunks_per_file: usizeMaximum number of retained chunk graph-nodes per file after compaction.
min_chunk_score_threshold: f64Minimum chunk score (0.0–1.0) to survive compaction.
max_retained_symbols_per_file: usizeMaximum number of retained symbol graph-nodes per file after compaction.
min_symbol_score_threshold: f64Minimum symbol score (0.0–1.0) to survive compaction.
Trait Implementations§
Source§impl Clone for ChunkingConfig
impl Clone for ChunkingConfig
Source§fn clone(&self) -> ChunkingConfig
fn clone(&self) -> ChunkingConfig
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 moreSource§impl Debug for ChunkingConfig
impl Debug for ChunkingConfig
Source§impl Default for ChunkingConfig
impl Default for ChunkingConfig
Source§impl<'de> Deserialize<'de> for ChunkingConfigwhere
ChunkingConfig: Default,
impl<'de> Deserialize<'de> for ChunkingConfigwhere
ChunkingConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChunkingConfig
impl RefUnwindSafe for ChunkingConfig
impl Send for ChunkingConfig
impl Sync for ChunkingConfig
impl Unpin for ChunkingConfig
impl UnsafeUnpin for ChunkingConfig
impl UnwindSafe for ChunkingConfig
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