pub struct ChunkParams {
pub model: String,
pub max_tokens: u32,
pub overlap: u32,
}Expand description
Chunking parameters
Fields§
§model: StringThe name of the model the chunk is intended to be used for. This must be a known model.
max_tokens: u32The maximum number of tokens that should be returned per chunk.
overlap: u32The amount of allowed overlap between chunks. overlap must be less than max-tokens.
Implementations§
Trait Implementations§
Source§impl Clone for ChunkParams
impl Clone for ChunkParams
Source§fn clone(&self) -> ChunkParams
fn clone(&self) -> ChunkParams
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 ChunkParams
impl Debug for ChunkParams
Auto Trait Implementations§
impl Freeze for ChunkParams
impl RefUnwindSafe for ChunkParams
impl Send for ChunkParams
impl Sync for ChunkParams
impl Unpin for ChunkParams
impl UnwindSafe for ChunkParams
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