#[non_exhaustive]pub struct FixedLengthChunking {
pub chunk_size: i32,
pub chunk_overlap: i32,
/* private fields */
}Available on crate feature
vertex-rag-data-service only.Expand description
Specifies the fixed length chunking config.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.chunk_size: i32The size of the chunks.
chunk_overlap: i32The overlap between chunks.
Implementations§
Source§impl FixedLengthChunking
impl FixedLengthChunking
pub fn new() -> Self
Sourcepub fn set_chunk_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_chunk_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_chunk_overlap<T: Into<i32>>(self, v: T) -> Self
pub fn set_chunk_overlap<T: Into<i32>>(self, v: T) -> Self
Sets the value of chunk_overlap.
§Example
ⓘ
let x = FixedLengthChunking::new().set_chunk_overlap(42);Trait Implementations§
Source§impl Clone for FixedLengthChunking
impl Clone for FixedLengthChunking
Source§fn clone(&self) -> FixedLengthChunking
fn clone(&self) -> FixedLengthChunking
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 FixedLengthChunking
impl Debug for FixedLengthChunking
Source§impl Default for FixedLengthChunking
impl Default for FixedLengthChunking
Source§fn default() -> FixedLengthChunking
fn default() -> FixedLengthChunking
Returns the “default value” for a type. Read more
Source§impl Message for FixedLengthChunking
impl Message for FixedLengthChunking
Source§impl PartialEq for FixedLengthChunking
impl PartialEq for FixedLengthChunking
impl StructuralPartialEq for FixedLengthChunking
Auto Trait Implementations§
impl Freeze for FixedLengthChunking
impl RefUnwindSafe for FixedLengthChunking
impl Send for FixedLengthChunking
impl Sync for FixedLengthChunking
impl Unpin for FixedLengthChunking
impl UnwindSafe for FixedLengthChunking
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