ChunkingConfiguration
Rust struct goodmem::models::ChunkingConfiguration: declaration, fields or variants, and implementations.
Struct ChunkingConfiguration
goodmem::models::ChunkingConfiguration
Configuration for text chunking strategy used when processing content. Exactly one of none, recursive, or sentence must be provided.
pub struct ChunkingConfiguration {
pub none: Option<Box<NoChunkingConfiguration>>,
pub recursive: Option<Box<RecursiveChunkingConfiguration>>,
pub sentence: Option<Box<SentenceChunkingConfiguration>>,
}Referenced types: NoChunkingConfiguration, RecursiveChunkingConfiguration, SentenceChunkingConfiguration.
Fields
none
pub none: Option<Box<NoChunkingConfiguration>>
No chunking strategy - preserve original content as single unit
Wire name: none.
recursive
pub recursive: Option<Box<RecursiveChunkingConfiguration>>
Recursive hierarchical chunking strategy with configurable separators
Wire name: recursive.
sentence
pub sentence: Option<Box<SentenceChunkingConfiguration>>
Sentence-based chunking strategy with language detection
Wire name: sentence.
Implementations
validate
pub fn validate(&self) -> crate::Result<()>
Validate the request before sending, without making an HTTP call.
Trait implementations
Clone(derived)Default(derived)PartialEq(derived)Serialize(derived)impl<'de> Deserialize<'de> for ChunkingConfigurationimpl std::fmt::Debug for ChunkingConfiguration