Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 500 Bytes

File metadata and controls

21 lines (15 loc) · 500 Bytes

上下文预算

分配建议(示意)

区块 占比(可调)
System + Rules 10–20%
User + 附件 20–40%
历史 / 摘要 20–30%
RAG / 工具结果 20–40%
生成预留 按 max_output 留足

压缩触发

  • 窗口使用率 > 70% 时对早期 turn 摘要
  • 重复工具输出只保留最后一次 + 差异

质量检查

  • 「lost in the middle」:关键约束放首尾
  • 压缩后跑 smoke evaluation 防回归