Skip to main content

Module memory_consolidation

Module memory_consolidation 

Source
Expand description

Sleep-inspired consolidation for in-memory knowledge entries (NREM merge, REM prune, replay boost).

Structs§

KnowledgeEntry
Knowledge unit subject to consolidation.

Functions§

consolidate
NREM: merge highly similar entries (keep highest-access body). REM: drop stale + low-importance. Replay: boost importance of pairwise related entries that are often accessed together (proxy).
token_jaccard
Jaccard similarity over whitespace-split tokens (case-folded).