Skip to main content

process_implicit_feedback_with_semantics

Function process_implicit_feedback_with_semantics 

Source
pub fn process_implicit_feedback_with_semantics(
    pending: &PendingFeedback,
    response_text: &str,
    user_followup: Option<&str>,
    response_embedding: Option<&[f32]>,
) -> Vec<(MemoryId, SignalRecord)>
Expand description

Enhanced feedback processing using both entity overlap and semantic similarity

When response_embedding is provided, combines entity overlap (40%) with semantic similarity (60%) for a more robust feedback signal. This helps detect when a memory was genuinely useful vs just sharing some words.