Skip to main content

synwire_index/
config.rs

1//! Configuration for the semantic index pipeline.
2
3use std::path::PathBuf;
4
5/// Configuration for the semantic indexing pipeline.
6#[derive(Debug, Clone)]
7pub struct IndexConfig {
8    /// Override for the OS cache base directory.  Defaults to the platform default.
9    pub cache_base: Option<PathBuf>,
10    /// Target chunk size in characters.  Default: 1500.
11    pub chunk_size: usize,
12    /// Overlap between consecutive text chunks in characters.  Default: 200.
13    pub chunk_overlap: usize,
14}
15
16impl Default for IndexConfig {
17    fn default() -> Self {
18        Self {
19            cache_base: None,
20            chunk_size: 1500,
21            chunk_overlap: 200,
22        }
23    }
24}