Skip to main content

Module layout

Module layout 

Source
Expand description

Attention zone layout and scored memory ranking. Attention-aware context layout using U-curve optimization.

LLMs attend best to content at the START and END of context, with degradation in the middle. This module arranges memories to exploit that attention pattern.

Structs§

ContextBlock
A block of memories assigned to a specific attention zone.
ContextLayout
Arranges memories into attention zones following the U-curve pattern.
ScoredMemory
A memory with an associated relevance score.
ZoneThresholds
Thresholds for classifying memories into attention zones.

Enums§

AttentionZone
Attention zones based on U-curve optimization.