pub struct GraphRecallParams<'a> {
pub limit: usize,
pub view: RecallView,
pub zoom_out_neighbor_cap: usize,
pub max_hops: u32,
pub temporal_decay_rate: f64,
pub edge_types: &'a [EdgeType],
pub spreading_activation: Option<SpreadingActivationParams>,
}Expand description
Parameters for a graph-view recall call, used by ContextMemoryBackend::recall_graph_facts.
Fields§
§limit: usizeMaximum number of graph facts to return.
view: RecallViewEnrichment view (head, zoom-in, zoom-out).
zoom_out_neighbor_cap: usizeCap on ZoomOut neighbor expansion.
max_hops: u32Maximum BFS hops during graph traversal.
temporal_decay_rate: f64Rate at which older facts are downweighted.
edge_types: &'a [EdgeType]Edge type filters for subgraph-scoped BFS.
spreading_activation: Option<SpreadingActivationParams>Spreading activation parameters. None disables spreading activation.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GraphRecallParams<'a>
impl<'a> RefUnwindSafe for GraphRecallParams<'a>
impl<'a> Send for GraphRecallParams<'a>
impl<'a> Sync for GraphRecallParams<'a>
impl<'a> Unpin for GraphRecallParams<'a>
impl<'a> UnsafeUnpin for GraphRecallParams<'a>
impl<'a> UnwindSafe for GraphRecallParams<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more