pub struct MmrConfig {
pub diversity: f64,
pub candidates: u64,
}Expand description
Maximal marginal relevance settings (MMR … DIVERSITY … CANDIDATES …).
Fields§
§diversity: f64Relevance-to-diversity trade-off in [0, 1].
candidates: u64Size of the candidate pool considered by the MMR pass.
Trait Implementations§
impl StructuralPartialEq for MmrConfig
Auto Trait Implementations§
impl Freeze for MmrConfig
impl RefUnwindSafe for MmrConfig
impl Send for MmrConfig
impl Sync for MmrConfig
impl Unpin for MmrConfig
impl UnsafeUnpin for MmrConfig
impl UnwindSafe for MmrConfig
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