pub struct RecallParams<'a> {
pub query: &'a str,
pub budget: usize,
pub trace: bool,
pub include_sparks: bool,
pub top: Option<usize>,
pub source: &'a str,
pub expand_deps: &'a str,
pub allow_trim: bool,
pub refine_mode: &'a str,
pub min_score: Option<f64>,
pub session_only: bool,
pub rerank: bool,
}Expand description
Parameters for KnowledgeBase::recall.
Borrowed, Default-able: construct with RecallParams { query, budget, source, ..Default::default() }.
Empty-string defaults are normalized inside recall: expand_deps empty → "false",
refine_mode empty → "off".
Fields§
§query: &'a str§budget: usize§trace: bool§include_sparks: bool§top: Option<usize>§source: &'a str§expand_deps: &'a str§allow_trim: bool§refine_mode: &'a str§min_score: Option<f64>Relevance gate: drop candidates whose fused score is below this value
before packing/trace, so the trace only records knowledge that was
actually surfaced. None disables the gate. Used by always-on hooks
(UserPromptSubmit / SessionStart) to stay high-frequency without noise.
session_only: boolSession trace mode: open an episodic log for later record-correlation but
write no per-chunk retrieved/selected usage events. Used by the
daemon, which recalls only to obtain a trace_id and discards the
knowledge without ever placing it in a model context. selected must
strictly mean “entered the model context”, so a caller that does not
inject the result must set this. Defaults to false (full injection).
rerank: boolPart (d) — opt-in offline LLM rerank of the candidate shortlist. Off by default so the hot hook path stays no-LLM; only set it in latency-tolerant callers (“deep recall”). No-op unless a reranker was injected (LLM configured), and non-fatal: a reranker error falls back to the fused order.
Trait Implementations§
Source§impl<'a> Clone for RecallParams<'a>
impl<'a> Clone for RecallParams<'a>
Source§fn clone(&self) -> RecallParams<'a>
fn clone(&self) -> RecallParams<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more