Files
nexus/wiki/concepts/淘汰制-Knock-out.md
2026-04-18 12:03:16 +08:00

38 lines
1.4 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: "淘汰制 (Knock-out)"
type: concept
tags: [agent-architecture, multi-agent, reliability]
sources: [raw/AI/Multi-Agent System Reliability.md]
last_updated: 2026-04-18
---
## Definition
淘汰制是一种多智能体架构模式,模仿遗传算法中的"适者生存"机制。多个 Agent 执行同一任务,通过验证器评估并淘汰表现最差的,保留最优者或生成新候选。
## Implementation
### 1. Give Task to N Agents
将任务分配给 N 个 Agent
### 2. Validator Decides Elimination
使用验证器决定哪些 Agent 被淘汰
### 3. [Optional] Replace Dead Agent
可选:用具有获胜者特征的新 Agent 替换被淘汰的 Agent
## SRE Analogy
在 SRE 中,我们把服务器视为"牲畜"cattle可替换而不是"宠物"pets独一无二且备受珍视。LLM Agent 就像是牲畜:不要给它起名字就指望它能做得很好,启动它,检查它的运行情况,如果失败就将其淘汰。
## Nuances
- 需要快速验证输出的方法(如单元测试)
- 如果需要人工检查所有分支,速度太慢且容易出错
- 更高级的设置可能尝试通过组合通过验证的 Agent 的提示词来创建新 Agent
## Best For
迭代式智能体工程,通常用于开发或调试现有多智能体系统,而非生产环境和真实用户负载。
## Related Concepts
- [[多智能体系统可靠性]]
- [[遗传算法]]
- [[适应度函数]]
- [[SRE]]