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.
- 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.