Skip to main content

Module lifecycle

Module lifecycle 

Source
Expand description

Node lifecycle: access tracking, importance decay, stale tagging, and stats.

Functions§

compute_stats
Compute aggregate statistics about the knowledge graph.
decay_importance
Gradually decay importance for nodes not accessed in days.
tag_stale_nodes
Tag nodes not updated within days as stale by appending “stale” to tags.
touch_node
Record an access event: increment access_count and update accessed_at.
touch_nodes
Batch-touch multiple nodes.