Files
myWiki/concepts/per-index-time-decay.md

42 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Per-Index Time Decay"
created: 2026-06-24
updated: 2026-06-24
type: concept
tags: ["information-retrieval", "agent-memory", "decay", "elasticsearch"]
sources:
- "[[atlas-agent-memory-architecture-2026]]"
---
# Per-Index Time Decay
Per-Index Time Decay 是 Atlas 记忆系统中每个索引使用独立衰减策略的设计episodic 按 timestamp 衰减semantic 按 last_used_at 衰减并受 use_count boostprocedural 豁免衰减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 豁免衰减:操作流程不因时间失效
## 参考
- [[atlas-agent-memory-architecture-2026]]
- [[agent-memory-taxonomy]]