pub struct ContextAssemblerConfig {
pub max_tokens: usize,
pub dedup_threshold: f32,
pub group_by_document: bool,
pub max_chunks_per_document: usize,
}Fields§
§max_tokens: usizeApproximate token budget (4 chars ≈ 1 token)
dedup_threshold: f32Cosine distance below which two chunks are considered duplicates
group_by_document: bool§max_chunks_per_document: usizeTrait Implementations§
Source§impl Clone for ContextAssemblerConfig
impl Clone for ContextAssemblerConfig
Source§fn clone(&self) -> ContextAssemblerConfig
fn clone(&self) -> ContextAssemblerConfig
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 ContextAssemblerConfig
impl Debug for ContextAssemblerConfig
Auto Trait Implementations§
impl Freeze for ContextAssemblerConfig
impl RefUnwindSafe for ContextAssemblerConfig
impl Send for ContextAssemblerConfig
impl Sync for ContextAssemblerConfig
impl Unpin for ContextAssemblerConfig
impl UnsafeUnpin for ContextAssemblerConfig
impl UnwindSafe for ContextAssemblerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more