Skip to main content

detect_eureka

Function detect_eureka 

Source
pub fn detect_eureka(
    config: &Config,
    reader: &MicroscopeReader,
    query: &str,
    emotion: Option<&[f32; 21]>,
    results: &[(f32, usize, bool)],
) -> Vec<EurekaEvent>
Expand description

Detect eureka moments from recall results. For each result that is spatially distant from the query but emotionally similar, compute an insight score. Events above threshold get recorded and stored as an insight memory.