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

1.3 KiB
Raw Blame History

title, created, updated, type, tags, sources
title created updated type tags sources
Per-Index Time Decay 2026-06-24 2026-06-24 concept
information-retrieval
agent-memory
decay
elasticsearch
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 豁免衰减:操作流程不因时间失效

参考