Expand description
SYNAPSE spreading activation retrieval over the entity graph.
Implements the spreading activation algorithm from arXiv 2601.02744, adapted for the zeph-memory graph schema. Seeds are matched via fuzzy entity search; activation propagates hop-by-hop with:
- Exponential decay per hop (
decay_lambda) - Edge confidence weighting
- Temporal recency weighting (reuses
GraphConfig.temporal_decay_rate) - Lateral inhibition (nodes above
inhibition_thresholdstop receiving activation) - Per-hop pruning to enforce
max_activated_nodesbound (SA-INV-04) - MAGMA edge type filtering via
edge_typesparameter
Structs§
- Activated
Fact - A graph edge traversed during spreading activation, with its activation score.
- Activated
Node - A graph node that was activated during spreading activation.
- Hela
Fact - A graph edge surfaced by HL-F5 spreading activation (#3346), scored by
path_weight × max(cosine_query_to_endpoint, 0.0). - Hela
Spread Params - Parameters for HL-F5 spreading activation retrieval.
- Spreading
Activation - Spreading activation engine parameterized from
SpreadingActivationParams. - Spreading
Activation Params - Parameters for spreading activation. Mirrors
SpreadingActivationConfigbut lives inzeph-memoryso the crate does not depend onzeph-config.
Functions§
- hela_
spreading_ recall - HL-F5 BFS spreading activation from the top-1 ANN anchor node (#3346).