🧠 AI Agent / LLM 应用工程师 · 全景知识图谱

仓库总览思维导图 · 92 题 / 工程四层 / 4 篇翻译 / 83 术语

本图谱串起仓库全部内容。把工程四层、面试题分类、经典翻译、术语速查表四个 lens 交叉刷。

点击每个节点的 ▶ 展开下一层;任何蓝色链接都直接跳到对应的 HTML 章节 / 题目 / 术语条目;术语链接还会弹出浮窗(不离开当前页)。

阅读入口在 门户首页。本页是复习地图,不是门户的替代页。

一、工程四层抽象(核心知识骨架)

提示词 → 上下文 → Agent → Harness 是四层递进抽象,每层独立成科但生产系统四层都需要。

🎯 Layer 1 · 提示词工程 Prompt

核心问题:如何让 LLM 在单次调用中产出可控的高质量输出?

Transformer 基础 — Attention / Multi-head / Position encoding
训练栈 — Pretrain → Post-train → SFT → RLHF/DPO/GRPO/RLVR
推理与解码 — Greedy / Top-k / Top-p / Temperature / Beam
经典提示词技术 — CoT / Self-Consistency / ToT / ReAct / Self-Refine / Reflexion / Long CoT
自动化与高级 — DSPy / OPRO / APE / Prompt 版本化
评估与红队 — LLM-as-judge / Prompt Injection / Jailbreak

🧱 Layer 2 · 上下文工程 Context

核心问题:如何在有限的 context window 里塞进最相关的信息?

长上下文物理学 — KV cache / Attention sink / Lost in the Middle / RULER
推理加速 — PagedAttention / FlashAttention / vLLM / continuous batching / prefix caching
RAG 全栈 — Chunking / Embedding / Hybrid Search / Reranker / Vector DB / RAGAS
Memory 系统 — MemGPT / Letta / Mem0 / Zep / 工作 vs 情景 vs 语义
Context 管理策略 — 滑窗 / 摘要 / Sub-agent 隔离 / Compaction
MCP / A2A 协议生态 — Resources / Tools / Prompts / 跨厂商

🤖 Layer 3 · Agent 工程 Agent

核心问题:如何让 LLM 自主决策、调工具、跨多步完成任务?

Anthropic 6 大 Pattern — Augmented LLM / Prompt Chaining / Routing / Parallelization / Orchestrator-Workers / Evaluator-Optimizer
Agent 范式演进 — ReAct → Plan-and-Execute → Reflexion → 长程自治
Agent 框架 — LangChain / LangGraph / LlamaIndex / Haystack / Anthropic SDK
多 Agent 协作 — Supervisor (推荐) / Hierarchical / Swarm (反模式)
Tool Use / Function Calling — Schema 设计 / 粒度 / Deny-first / Error as prompt
Agent 4 大失败模式 + Loop of Death — Anthropic 实证总结
Agent 评测 — 通用 benchmark vs 业务领域

🛡️ Layer 4 · Harness 工程 Harness

核心问题:如何工程化环境,让 agent 物理上无法重复犯错?
"anytime you find an agent makes a mistake, take the time to engineer a solution such that the agent never makes that mistake again." — Hashimoto

命名与定位 — Hashimoto 2026-02 · 与其他三层的边界
两条核心法则 + 四大支柱 — 强约束 / 自愈循环 · 上下文 / 专业化 / 持久化 / 结构化
支撑设施 — MCP / Sandbox / Guardrails
生产栈参考架构 + 成熟度模型 L0-L4 — 8 层完整栈 / 角色矩阵 / 自我诊断
2026 模型横评 + Cost 优化 — 8 个 ROI 杠杆
场景选型清单 — 内部工具 / 客服 / 编码 / 多 agent 业务系统

二、92 道面试题 · 11 大类

分类核心覆盖难度入口
A. LLM 基础 (11)Transformer / RoPE / KV cache / 长上下文 / 推理优化 / Prefill·Decode1⭐ 8⭐⭐ 2⭐⭐⭐→ A
B. 训练 / 微调 (10)SFT / DPO / GRPO / LoRA / R1 涌现1⭐ 7⭐⭐ 2⭐⭐⭐→ B
C. 提示词工程 (9)CoT / Self-Consistency / ReAct / 自动 prompt 优化1⭐ 7⭐⭐ 1⭐⭐⭐→ C
D. RAG (10)Hybrid / Reranker / GraphRAG / Self-RAG / RAGAS1⭐ 7⭐⭐ 2⭐⭐⭐→ D
E. Agent (12) 核心6 patterns / 多 agent / 失败模式 / harness1⭐ 6⭐⭐ 5⭐⭐⭐→ E
F. Memory (8)MemGPT / Letta / Mem0 / progress 文件 / corruption1⭐ 5⭐⭐ 2⭐⭐⭐→ F
G. 系统设计 (8)客服 / coding / 搜索 / 网关 / 高并发 / 成本 / 沙箱 / 闭环0⭐ 1⭐⭐ 7⭐⭐⭐→ G
H. 评估 (6)judge bias / pairwise / benchmark hack / 漂移0⭐ 2⭐⭐ 4⭐⭐⭐→ H
I. 安全 / 护栏 (6)OWASP / Prompt Injection / NeMo / EU AI Act0⭐ 1⭐⭐ 5⭐⭐⭐→ I
J. 行为题 (7)Hashimoto 闭环 / 0-1 落地路线 / debug hallucination0⭐ 2⭐⭐ 5⭐⭐⭐→ J
K. Agent 评测 (5)通用 benchmark / trajectory / tool-use / 生产监控 / 业务领域0⭐ 2⭐⭐ 3⭐⭐⭐→ K

JD 调研:30+ 国内外岗位拆解 → JD Requirements 章节


三、经典文章中文翻译

文章核心观点入口
Building Effective AgentsWorkflow vs Agent / 6 大 pattern / 简单优先Anthropic 2024→ 中文
Effective Harnesses4 大失败模式 + 对策 / progress 文件 / 5 步开机协议Anthropic 2025→ 中文
Multi-Agent Research SystemOrchestrator-Workers / Sub-agent 隔离 / VerifierAnthropic 2025→ 中文
OpenAI Harness EngineeringAgent = Model + Harness / Humans steer, Agents executeOpenAI 2026→ 中文

四、术语速查表(83 条 × 10 主题)

所有 HTML 页面右下角都内嵌完整术语库,点击文中橙色标记词条即弹浮窗,不离开当前位置。下面按主题分组列出(点击直接跳转):

软件工程基础(10)

lint type check CI/CD sandbox canary A/B test HITL SLO/SLI/SLA TTL 业务指标

LLM 基础概念(9)

token embedding context window prefill/decode KV cache autoregressive logit temperature attention sink

Transformer 架构(5)

LayerNorm/RMSNorm RoPE YaRN/NTK GQA/MQA MoE multi-head attention

推理加速(8)

FlashAttention PagedAttention vLLM continuous batching speculative decoding prefix caching TTFT TPOT

量化(4)

FP16/BF16/FP8 INT4/INT8/NF4 AWQ GPTQ

微调与对齐(10)

SFT LoRA QLoRA RLHF RM DPO PPO GRPO RLVR 灾难性遗忘

提示词与推理范式(7)

CoT ToT ReAct Reflexion Self-Refine Self-Consistency few-shot/zero-shot

RAG(9)

RAG chunking BM25 hybrid search reranker vector DB embed models RAG 变体 RAGAS

Agent 工程(11)

harness MCP tool use Computer Use sub-agent AGENTS.md deny-first progress 文件 Loop of Death Memory Corruption LangChain

评估与安全(10)

Eval LLM-as-judge eval benchmarks trace 工具 Lost in the Middle prompt injection hallucination guardrails jailbreak


五、复习路径建议

路径 A · 应届 / 入门(2-4 周)

Week 1:工程基础概念 — L1 §1.1-§1.3 + 术语速查(LLM 基础 + Transformer)+ A1-A11 Week 2:提示词 + RAG 入门 — L1 §1.4 + L2 §2.4 + C1-C9 + D1-D5 Week 3:Agent 概念 — L3 §1-§3 + E1, E2, E3, E5, E8 + 翻译《Building Effective Agents》 Week 4:安全 + 实战 — L1 §1.6 + I1, I2 + J7(0-1 落地路线)

路径 B · 中级(3-6 年,1-2 月)

基础(已具备)→ 重点深化: • 全部 A-F 章节 • L1-L4 完整过一遍 • G/H 部分(系统设计 + 评估) • 翻译 4 篇全读 • 自己项目对应 J 行为题准备

路径 C · 资深 / staff(深度 + 广度)

• 全部 11 类(A-K) • L4 §3.4 生产栈架构 + §3.4.6 成熟度模型自评 • §3.5.6 Cost 优化 8 杠杆 • §3.6 场景选型清单 • 必背:Hashimoto + Anthropic harness 原话 • 必备:1-2 个量化项目案例(GMV / 转化率 / 准确率有数字)

路径 D · 场景驱动(按目标岗位定制)

目标岗位重点章节
LLM SaaS(客服 / 文档 QA)L2 RAG + L3 Agent + G1 (客服) + I 安全 + K5 业务评测
AI Coding 工具L3 + L4 全部 + G2 (Coding Agent) + E7 (harness) + 翻译两篇 harness 文章
多智能体业务系统L3 §6 多 Agent + E4/E10 + K5 业务评测 + G1/G3 + J1 STAR + 项目数据
基础设施 / 推理 / 训练A4-A9 推理加速 + B1-B10 训练栈 + G4/G5 网关与高并发
安全 / Red TeamC7 + I1-I6 + L1 §1.6 + L4 三层防御