Documentation
¶
Overview ¶
Package boundary implements semantic boundary detection for memory consolidation. Based on GAM (arxiv:2604.12285): consolidate only at semantic boundaries, not arbitrary session ends, to prevent transient noise contaminating long-term memory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Detector ¶
type Detector struct {
// contains filtered or unexported fields
}
Detector detects semantic topic shifts in a stream of memory content.
func New ¶
New creates a boundary detector. threshold: 0.0-1.0, higher = more sensitive to topic shifts (default 0.3)
func (*Detector) Add ¶
Add adds content to the buffer and returns true if a semantic boundary is detected. A boundary means: consolidate the current buffer into a topic node.
Click to show internal directories.
Click to hide internal directories.