Skip to main content

select_relevant

Function select_relevant 

Source
pub fn select_relevant(
    headers: &[MemoryHeader],
    recent_text: &str,
    already_surfaced: &HashSet<PathBuf>,
) -> Vec<PathBuf>
Expand description

Select the most relevant memories for a given conversation context.

Uses keyword matching on memory descriptions against the user’s recent messages. Returns up to MAX_RELEVANT_PER_TURN file paths.