pub struct HybridOptions<'a> {
pub mmr_lambda: Option<f32>,
pub reranker: Option<&'a dyn Reranker>,
pub relevance_first: bool,
pub record_access: bool,
}Expand description
Per call options for MenteDb::recall_hybrid_scoped_with.
Fields§
§mmr_lambda: Option<f32>MMR diversity weight for this call, overriding
CognitiveConfig::mmr_lambda. 1.0 disables the pass.
reranker: Option<&'a dyn Reranker>Reranker for this call, overriding any installed one. Applied only when the call carries query text.
relevance_first: boolChoose the top k on relevance alone, then blend in decayed salience to order just those. By default the blend is applied before the cut, so a faded but relevant memory can lose its place to a fresher, weaker one.
record_access: boolCount the hits as accesses when CognitiveConfig::refresh_access_on_search
is on. Set by callers serving a user’s search; internal recalls leave it
off.
Trait Implementations§
Source§impl<'a> Clone for HybridOptions<'a>
impl<'a> Clone for HybridOptions<'a>
impl<'a> Copy for HybridOptions<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for HybridOptions<'a>
impl<'a> !UnwindSafe for HybridOptions<'a>
impl<'a> Freeze for HybridOptions<'a>
impl<'a> Send for HybridOptions<'a>
impl<'a> Sync for HybridOptions<'a>
impl<'a> Unpin for HybridOptions<'a>
impl<'a> UnsafeUnpin for HybridOptions<'a>
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