20260514:增加新内容
This commit is contained in:
34
concepts/context-blue-clique.md
Normal file
34
concepts/context-blue-clique.md
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
title: "Context Blue Clique(上下文蓝色团)"
|
||||
created: 2026-05-11
|
||||
updated: 2026-05-11
|
||||
type: concept
|
||||
tags: [context-design, graph-theory, ramsey-theory]
|
||||
sources: [[ramsey-context-construction]]
|
||||
---
|
||||
|
||||
# Context Blue Clique(上下文蓝色团)
|
||||
|
||||
## 定义
|
||||
|
||||
上下文蓝色团是 [[ramsey-context-graph|拉姆齐上下文图]] 中的一个**全蓝色完全子图**——其内部任意两个节点之间都是蓝边(完全兼容),可以直接作为 Agent 的无冲突上下文骨架。
|
||||
|
||||
## 拉姆齐保证
|
||||
|
||||
根据 [[ramsey-theory|拉姆齐理论]],当总节点数 N ≥ R(t, m) 时,下面两者必居其一:
|
||||
1. **存在大小为 t 的蓝色团** — 可直接使用的优质上下文
|
||||
2. **存在大小为 m 的红色独立集** — 冲突严重,需清理
|
||||
|
||||
工程实践中让系统永远处于状态 1。
|
||||
|
||||
## 工程角色
|
||||
|
||||
- **作为常驻上下文骨架**:如 `[tool_A, skill_B, prompt_C]` 构成最小可用三元组
|
||||
- **作为模板缓存**:蓝色团天然是稳定前缀 → 复用提高 [[cache-hit-ratio|KV cache 命中率]]
|
||||
- **团大小动态调整**:长对话时下调 t 值,牺牲部分功能换取记忆清晰度
|
||||
|
||||
## 相关概念
|
||||
|
||||
- [[ramsey-context-graph|拉姆齐上下文图]]
|
||||
- [[greedy-context-screening|贪心上下文筛选]]
|
||||
- [[ramsey-context-template|拉姆齐上下文模板]]
|
||||
Reference in New Issue
Block a user