pub struct RecallRequest {
pub query: Vec<f32>,
pub top_k: usize,
pub memory_types: Option<Vec<MemoryType>>,
pub agent_id: Option<String>,
pub metric: Metric,
pub weights: ScoreWeights,
pub n_probe: Option<usize>,
pub n_rerank: Option<usize>,
pub track_access: bool,
}Expand description
A retrieval request for Mnemo::recall.
Fields§
§query: Vec<f32>Query embedding.
top_k: usizeMaximum results to return.
memory_types: Option<Vec<MemoryType>>Restrict to these memory types (None = all types).
agent_id: Option<String>Restrict to a single agent’s view: its own memories plus shared ones.
metric: MetricSimilarity metric.
weights: ScoreWeightsMulti-signal score weights.
n_probe: Option<usize>Index override: partitions to probe (None = index default). Ignored
when no ANN index is present.
n_rerank: Option<usize>Index override: candidates to rerank (None = index default). Ignored
when no ANN index is present.
track_access: boolWhether to update each result’s accessed_at and access_count in
the catalog. Defaults to true, matching pre-v5 behavior.
Set to false for fully read-only recall — useful for batch
scoring, dry-run scoring, or recalls run by introspection tooling
(e.g. mnemo about consumers) where you don’t want the score’s own
observation to perturb the database. With false, recall does not
dirty the catalog and the next flush is a no-op.
Implementations§
Source§impl RecallRequest
impl RecallRequest
Sourcepub fn types(self, t: Vec<MemoryType>) -> Self
pub fn types(self, t: Vec<MemoryType>) -> Self
Restrict to specific memory types.
Sourcepub fn weights(self, weights: ScoreWeights) -> Self
pub fn weights(self, weights: ScoreWeights) -> Self
Replace the multi-signal score weights.
Sourcepub fn n_probe(self, n: usize) -> Self
pub fn n_probe(self, n: usize) -> Self
Override the number of IVF partitions probed (accuracy/speed dial).
Sourcepub fn n_rerank(self, n: usize) -> Self
pub fn n_rerank(self, n: usize) -> Self
Override the number of candidates reranked exactly (accuracy dial).
Sourcepub fn track_access(self, track: bool) -> Self
pub fn track_access(self, track: bool) -> Self
Toggle whether recall updates accessed_at / access_count on
the returned memories’ catalog entries (default true). Pass
false for a fully read-only recall — see the field doc.
Trait Implementations§
Source§impl Clone for RecallRequest
impl Clone for RecallRequest
Source§fn clone(&self) -> RecallRequest
fn clone(&self) -> RecallRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more