pub struct MultimodalChunkConfig {
pub text_chunk_chars: Option<usize>,
pub common_metadata: HashMap<String, Value>,
}Expand description
Configuration for MultimodalChunker.
Fields§
§text_chunk_chars: Option<usize>Maximum characters per text chunk. None keeps each text block as a
single document. Splitting is UTF-8 boundary-safe (no mid-char cuts).
common_metadata: HashMap<String, Value>Metadata inherited by every emitted document (source, page, …). The
mm_* keys are reserved and overwrite inherited values.
Implementations§
Source§impl MultimodalChunkConfig
impl MultimodalChunkConfig
Sourcepub fn with_chunk_chars(self, chunk_chars: usize) -> Self
pub fn with_chunk_chars(self, chunk_chars: usize) -> Self
Creates config with a fixed maximum text-chunk length.
Trait Implementations§
Source§impl Clone for MultimodalChunkConfig
impl Clone for MultimodalChunkConfig
Source§fn clone(&self) -> MultimodalChunkConfig
fn clone(&self) -> MultimodalChunkConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MultimodalChunkConfig
impl Debug for MultimodalChunkConfig
Source§impl Default for MultimodalChunkConfig
impl Default for MultimodalChunkConfig
Source§fn default() -> MultimodalChunkConfig
fn default() -> MultimodalChunkConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultimodalChunkConfig
impl RefUnwindSafe for MultimodalChunkConfig
impl Send for MultimodalChunkConfig
impl Sync for MultimodalChunkConfig
impl Unpin for MultimodalChunkConfig
impl UnsafeUnpin for MultimodalChunkConfig
impl UnwindSafe for MultimodalChunkConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more