(&self)
| 134 | /// Get the chunk size |
| 135 | #[getter] |
| 136 | fn chunk_size(&self) -> usize { |
| 137 | match &self.inner.config().strategy { |
| 138 | graphbit_core::text_splitter::SplitterStrategy::Character { chunk_size, .. } => { |
| 139 | *chunk_size |
| 140 | } |
| 141 | _ => 0, |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | /// Get the chunk overlap |
| 146 | #[getter] |