20260706:新增一些文章
This commit is contained in:
48
concepts/context-failure-modes.md
Normal file
48
concepts/context-failure-modes.md
Normal file
@@ -0,0 +1,48 @@
|
||||
---
|
||||
title: "Context Failure Modes(上下文故障模式)"
|
||||
created: 2026-06-29
|
||||
updated: 2026-06-29
|
||||
type: concept
|
||||
tags: [context-engineering, failure, debugging]
|
||||
sources: [[prompt-to-loop-engineering-2026]]
|
||||
confidence: high
|
||||
---
|
||||
|
||||
# Context Failure Modes
|
||||
|
||||
> 在 [[context-engineering|Context Engineering]] 中,缺乏合理的上下文装配逻辑时易陷入的三种典型故障模式。
|
||||
|
||||
## 三种模式
|
||||
|
||||
### Context Starvation(信息匮乏)
|
||||
|
||||
- **现象**:数据过少 → 模型缺乏依据 → 产生幻觉
|
||||
- **根因**:检索范围过窄、过滤条件过严、上下文截断策略不当
|
||||
- **对策**:扩大检索窗口、使用 [[graphrag|GraphRAG]] 进行语义关联扩展
|
||||
|
||||
### Context Overflow(信息过载)
|
||||
|
||||
- **现象**:灌入大量无关噪音 → 稀释模型注意力 → 关键信息被淹没
|
||||
- **根因**:全量预加载、未做相关性过滤、缺少 [[minimum-viable-context|MVC]] 机制
|
||||
- **对策**:[[just-in-time-retrieval|JIT 检索]]、渐进式披露、压缩(Compaction)
|
||||
|
||||
### Context Rot(上下文腐烂)
|
||||
|
||||
- **现象**:窗口越填越满 → 模型响应质量反向退化
|
||||
- **根因**:已失效的历史信息未被清理、压缩策略缺失
|
||||
- **对策**:定期压缩、移除已完成使命的 Token、利用 [[prompt-caching|Prompt Caching]] 前缀匹配
|
||||
|
||||
## 三者关系
|
||||
|
||||
```
|
||||
Context Starvation ←─ 检索不足 ──→ Context Overflow
|
||||
↑ ↓
|
||||
└──── 退化 ──── Context Rot ←────┘
|
||||
```
|
||||
|
||||
## 相关概念
|
||||
|
||||
- [[context-engineering|Context Engineering]]
|
||||
- [[minimum-viable-context|MVC]]
|
||||
- [[prompt-caching|Prompt Caching]]
|
||||
- [[graphrag|GraphRAG]]
|
||||
Reference in New Issue
Block a user