(&self)
| 383 | /// Get the separators |
| 384 | #[getter] |
| 385 | fn separators(&self) -> Vec<String> { |
| 386 | match &self.inner.config().strategy { |
| 387 | graphbit_core::text_splitter::SplitterStrategy::Recursive { separators, .. } => { |
| 388 | separators.clone().unwrap_or_default() |
| 389 | } |
| 390 | _ => Vec::new(), |
| 391 | } |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | /// Generic text splitter that can use any strategy |