MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / validate_config

Method validate_config

core/src/text_splitter.rs:312–320  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

310 }
311
312 fn validate_config(&self) -> GraphBitResult<()> {
313 if self.chunk_size == 0 {
314 return Err(GraphBitError::validation(
315 "text_splitter",
316 "Chunk size must be greater than 0",
317 ));
318 }
319 Ok(())
320 }
321}
322
323/// Token-based text splitter

Callers 1

Calls 1

is_emptyMethod · 0.45

Tested by 1