Skip to main content

retrieve_context

Function retrieve_context 

Source
pub fn retrieve_context(
    storage: &Path,
    prompt: &str,
    max_snippets: usize,
) -> String
Expand description

Retrieve inforg context relevant to prompt and format it as a prompt block (empty if nothing). Matches the prompt’s explicit tags first (reliable), then a few salient terms (best-effort), over the person’s library. Permission-gated (flagged entries excluded).