memory: add spreading activation tool
Add `poc-memory graph spread` command that takes multiple seed node keys, runs spreading activation through the graph, and returns nodes ranked by total activation — nodes that bridge multiple seed concepts score highest. Expose spreading_activation() as pub from the query engine. Add memory_spread and memory_search_content tool definitions for MCP. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
c5b5051772
commit
6f2e0938f0
3 changed files with 49 additions and 1 deletions
|
|
@ -1377,7 +1377,7 @@ fn run_manifold(
|
|||
/// sum at each node, and the combined activation map propagates on
|
||||
/// the next hop. This creates interference patterns — nodes where
|
||||
/// multiple wavefronts overlap get reinforced and radiate stronger.
|
||||
fn spreading_activation(
|
||||
pub fn spreading_activation(
|
||||
seeds: &[(String, f64)],
|
||||
graph: &Graph,
|
||||
store: &impl StoreView,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue