pub struct StaticFileChunkingStrategy {
pub chunk_overlap_tokens: i64,
pub max_chunk_size_tokens: i64,
}Fields§
§chunk_overlap_tokens: i64The number of tokens that overlap between chunks. The default value is 400.
max_chunk_size_tokens: i64The maximum number of tokens in each chunk.
Trait Implementations§
Source§impl Clone for StaticFileChunkingStrategy
impl Clone for StaticFileChunkingStrategy
Source§fn clone(&self) -> StaticFileChunkingStrategy
fn clone(&self) -> StaticFileChunkingStrategy
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 StaticFileChunkingStrategy
impl Debug for StaticFileChunkingStrategy
Source§impl<'de> Deserialize<'de> for StaticFileChunkingStrategy
impl<'de> Deserialize<'de> for StaticFileChunkingStrategy
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 StaticFileChunkingStrategy
impl RefUnwindSafe for StaticFileChunkingStrategy
impl Send for StaticFileChunkingStrategy
impl Sync for StaticFileChunkingStrategy
impl Unpin for StaticFileChunkingStrategy
impl UnsafeUnpin for StaticFileChunkingStrategy
impl UnwindSafe for StaticFileChunkingStrategy
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