pub enum VectorStoreChunkingStrategy {
Auto,
Static(StaticChunkingStrategy),
}
Variants§
Auto
The default strategy. This strategy currently uses a max_chunk_size_tokens
of 800
and chunk_overlap_tokens
of 400
.
Static(StaticChunkingStrategy)
Trait Implementations§
source§impl Clone for VectorStoreChunkingStrategy
impl Clone for VectorStoreChunkingStrategy
source§fn clone(&self) -> VectorStoreChunkingStrategy
fn clone(&self) -> VectorStoreChunkingStrategy
Returns a copy 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 VectorStoreChunkingStrategy
impl Debug for VectorStoreChunkingStrategy
source§impl Default for VectorStoreChunkingStrategy
impl Default for VectorStoreChunkingStrategy
source§fn default() -> VectorStoreChunkingStrategy
fn default() -> VectorStoreChunkingStrategy
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for VectorStoreChunkingStrategy
impl<'de> Deserialize<'de> for VectorStoreChunkingStrategy
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for VectorStoreChunkingStrategy
impl PartialEq for VectorStoreChunkingStrategy
source§fn eq(&self, other: &VectorStoreChunkingStrategy) -> bool
fn eq(&self, other: &VectorStoreChunkingStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VectorStoreChunkingStrategy
Auto Trait Implementations§
impl Freeze for VectorStoreChunkingStrategy
impl RefUnwindSafe for VectorStoreChunkingStrategy
impl Send for VectorStoreChunkingStrategy
impl Sync for VectorStoreChunkingStrategy
impl Unpin for VectorStoreChunkingStrategy
impl UnwindSafe for VectorStoreChunkingStrategy
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)