pub struct StaticChunkingStrategy {
pub chunk_overlap_tokens: i32,
pub max_chunk_size_tokens: i32,
}
Fields§
§chunk_overlap_tokens: i32
The number of tokens that overlap between chunks. The default value is 400
. Note that the overlap must not exceed half of max_chunk_size_tokens
.
max_chunk_size_tokens: i32
The maximum number of tokens in each chunk. The default value is 800
. The minimum value is 100
and the maximum value is 4096
.
Trait Implementations§
Source§impl Debug for StaticChunkingStrategy
impl Debug for StaticChunkingStrategy
Source§impl<'de> Deserialize<'de> for StaticChunkingStrategy
impl<'de> Deserialize<'de> for StaticChunkingStrategy
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
Auto Trait Implementations§
impl Freeze for StaticChunkingStrategy
impl RefUnwindSafe for StaticChunkingStrategy
impl Send for StaticChunkingStrategy
impl Sync for StaticChunkingStrategy
impl Unpin for StaticChunkingStrategy
impl UnwindSafe for StaticChunkingStrategy
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