pub enum ChunkingStrategy {
FixedSize,
Sentence,
Paragraph,
Adaptive,
Semantic,
}
Expand description
Different strategies for chunking text
Variants§
FixedSize
👎Deprecated: Use Semantic chunking for better results
Fixed character-based chunking (DEPRECATED: Use Semantic instead)
Sentence
👎Deprecated: Use Semantic chunking for better results
Split at sentence boundaries (DEPRECATED: Use Semantic instead)
Paragraph
👎Deprecated: Use Semantic chunking for better results
Split at paragraph boundaries (DEPRECATED: Use Semantic instead)
Adaptive
Adaptive chunking based on content structure (now uses Semantic)
Semantic
Semantic chunking using embeddings and content understanding (RECOMMENDED)
Trait Implementations§
Source§impl Clone for ChunkingStrategy
impl Clone for ChunkingStrategy
Source§fn clone(&self) -> ChunkingStrategy
fn clone(&self) -> ChunkingStrategy
Returns a duplicate of the value. Read more
1.0.0 · 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 ChunkingStrategy
impl Debug for ChunkingStrategy
Source§impl PartialEq for ChunkingStrategy
impl PartialEq for ChunkingStrategy
impl Copy for ChunkingStrategy
impl Eq for ChunkingStrategy
impl StructuralPartialEq for ChunkingStrategy
Auto Trait Implementations§
impl Freeze for ChunkingStrategy
impl RefUnwindSafe for ChunkingStrategy
impl Send for ChunkingStrategy
impl Sync for ChunkingStrategy
impl Unpin for ChunkingStrategy
impl UnwindSafe for ChunkingStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.