pub struct SnipCompactor {
pub per_msg_ratio: f64,
}Expand description
rho > snip_threshold: cap each oversized message at per_msg_tokens.
Fields§
§per_msg_ratio: f64Trait Implementations§
Source§impl Compressor for SnipCompactor
impl Compressor for SnipCompactor
fn compress( &self, partitions: &mut ContextPartitions, _target_tokens: u32, max_tokens: u32, preserve_k: usize, _summarizer: &dyn Summarizer, engine: &ContextTokenEngine, ) -> CompressResult
Auto Trait Implementations§
impl Freeze for SnipCompactor
impl RefUnwindSafe for SnipCompactor
impl Send for SnipCompactor
impl Sync for SnipCompactor
impl Unpin for SnipCompactor
impl UnsafeUnpin for SnipCompactor
impl UnwindSafe for SnipCompactor
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