MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / separators

Method separators

python/src/text_splitter/splitter.rs:385–392  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.80
configMethod · 0.45

Tested by

no test coverage detected