pub struct StaticChunkingStrategy {
pub max_chunk_size_tokens: i64,
pub chunk_overlap_tokens: i64,
}
Fields§
§max_chunk_size_tokens: i64
The maximum number of tokens in each chunk.
chunk_overlap_tokens: i64
The number of tokens that overlap between chunks.
Trait Implementations§
Source§impl Clone for StaticChunkingStrategy
impl Clone for StaticChunkingStrategy
Source§fn clone(&self) -> StaticChunkingStrategy
fn clone(&self) -> StaticChunkingStrategy
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 StaticChunkingStrategy
impl Debug for StaticChunkingStrategy
Source§impl Default for StaticChunkingStrategy
impl Default for StaticChunkingStrategy
Source§fn default() -> StaticChunkingStrategy
fn default() -> StaticChunkingStrategy
Returns the “default value” for a type. 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