Skip to main content

Module activation

Module activation 

Source
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_threshold stop receiving activation)
  • Per-hop pruning to enforce max_activated_nodes bound (SA-INV-04)
  • MAGMA edge type filtering via edge_types parameter

Structsยง

ActivatedFact
A graph edge traversed during spreading activation, with its activation score.
ActivatedNode
A graph node that was activated during spreading activation.
SpreadingActivation
Spreading activation engine parameterized from SpreadingActivationParams.
SpreadingActivationParams
Parameters for spreading activation. Mirrors SpreadingActivationConfig but lives in zeph-memory so the crate does not depend on zeph-config.