pub struct BrainProfileHint {
pub profile_id: String,
pub boost: f64,
pub threshold: f64,
}Expand description
Hint for brain-profile-guided score boosting during recall (issue #484).
When a brain_profile hint is present in RecallConfig, the recall handler
will apply boost as a rank-score multiplier to results whose associated
entity posterior mean in the named brain profile exceeds threshold.
This ties the memory pack’s retrieval scoring to the brain pack’s Bayesian entity posteriors, allowing frequently-recalled or explicitly-marked-useful entities to surface more prominently.
§Wire shape
"brain_profile": {"profile_id": "balanced-recall-v1", "boost": 1.3, "threshold": 0.6}§Integration status (issue #484)
The configuration field is live; the runtime lookup requires a cross-pack
call to brain.profile which is not yet wired at the handler level.
TODO(#484): wire brain pack handle lookup into recall scoring loop.
Fields§
§profile_id: StringProfile ID to resolve. Passed to brain.resolve / brain.profile.
boost: f64Score multiplier applied to matching results. Default 1.3×.
threshold: f64Minimum Beta posterior mean required for a result to receive the boost. Posterior mean = alpha / (alpha + beta). Default 0.6 (slightly above the uniform prior mean of 0.5).
Trait Implementations§
Source§impl Clone for BrainProfileHint
impl Clone for BrainProfileHint
Source§fn clone(&self) -> BrainProfileHint
fn clone(&self) -> BrainProfileHint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BrainProfileHint
impl Debug for BrainProfileHint
Source§impl<'de> Deserialize<'de> for BrainProfileHint
impl<'de> Deserialize<'de> for BrainProfileHint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for BrainProfileHint
impl RefUnwindSafe for BrainProfileHint
impl Send for BrainProfileHint
impl Sync for BrainProfileHint
impl Unpin for BrainProfileHint
impl UnsafeUnpin for BrainProfileHint
impl UnwindSafe for BrainProfileHint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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