1.3 KiB
1.3 KiB
title, created, updated, type, tags, sources
| title | created | updated | type | tags | sources | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| Per-Index Time Decay | 2026-06-24 | 2026-06-24 | concept |
|
|
Per-Index Time Decay
Per-Index Time Decay 是 Atlas 记忆系统中每个索引使用独立衰减策略的设计:episodic 按 timestamp 衰减,semantic 按 last_used_at 衰减并受 use_count boost,procedural 豁免衰减(1.0)。
衰减函数
Gauss 衰减 + offset 平坦区 + use_count boost:
decay = exp(-pow(max(days - offset, 0) / scale, 2) * log(sqrt(2)))
// semantic 额外: decay *= 1 + log10(1 + use_count) * use_count_boost
// procedural: decay = 1.0
关键参数
| 参数 | 默认值 | 含义 |
|---|---|---|
| DECAY_SCALE | 1825d (~5年) | 衰减半衰期,客服应收紧至 60-180d |
| DECAY_OFFSET | 180d | 平坦区,offset 内 doc 乘数 1.0 |
| USE_COUNT_BOOST | 0.2 | use_count=10 → ~1.21x, =100 → ~1.40x |
设计原则
信息的衰减驱动力是它有多频繁被需要,不是它有多旧。
- semantic 用 last_used_at 而非 timestamp:一个三年前的稳定偏好如果一直在被用到,不应衰减
- procedural 豁免衰减:操作流程不因时间失效