feat: 初始化 CS 知识应试强化系统
- 纯 HTML/CSS/JS 单页应用,支持填空题和选择题交互 - 5 个主题共 100 道题(GC/JVM、AI 结构化输出、记忆管理、幻觉、工具链) - 按主题组织、按题型拆分的 JSON 数据结构 - JSON Schema 校验 + 提示词模板 + 题型模板 - 自定义导入功能(粘贴/上传 JSON) - 项目文档(需求 + 架构) Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,188 @@
|
||||
{
|
||||
"topic": "ai-hallucination",
|
||||
"type": "fill_blank",
|
||||
"schema_version": "1.0.0",
|
||||
"generated": "2026-09-02T00:00:00Z",
|
||||
"questions": [
|
||||
{
|
||||
"id": "fb-001",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "在 Critic 架构流程中,执行 Agent 产出结果后,Critic Agent 提供评分和反馈,若未达标则反馈回 Agent 进行______。",
|
||||
"explanation": "Critic 流程中,未达标时反馈返回给 Agent 修改后重新评估。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"修改"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-002",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "Critic 评估维度中,准确性(Accuracy)的权重是______。",
|
||||
"explanation": "准确性(事实正确性)在所有评估维度中权重最高,为 0.3。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"0.3"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-003",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "三层评估体系由自动评估、AI 评估和______评估组成。",
|
||||
"explanation": "三层评估:自动(Schema/测试/Lint)、AI(Critic 评分)、人工(Code Review/验收)。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"人工"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-004",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "评分实现中,加权总分的通过阈值是______。",
|
||||
"explanation": "评分系统要求加权总分 ≥ 0.8 才算通过。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"0.8"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-005",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "当 AI 生成与客观事实不符的内容(如编造不存在的 API),这叫做______幻觉。",
|
||||
"explanation": "事实性幻觉指生成与客观事实不符的内容,如编造不存在的函数或 API。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"事实性"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-006",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "Context Engineering 的核心思想是用精准、充分的上下文来减少模型的______空间。",
|
||||
"explanation": "Context Engineering 旨在通过提供精准上下文来最小化模型的猜测空间。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"猜测"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-007",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "上下文组成包括:System Prompt、Knowledge Base、History 和______。",
|
||||
"explanation": "四大组件:系统提示、知识库、对话历史和检索到的上下文(RAG)。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"Retrieved Context"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-008",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "Sub-agent Adversarial Verify 中使用______投票来决定是否接受输出。",
|
||||
"explanation": "系统使用多数投票:多数验证 Agent 通过则接受,否则重新生成。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"多数"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-009",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "验证提示要求 Agent 对每个声明给出的裁决是:CONFIRMED、REFUTED 或______。",
|
||||
"explanation": "每个声明的裁决为三选一:CONFIRMED(确认)、REFUTED(反驳)、UNCERTAIN(不确定)。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"UNCERTAIN"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-010",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "RAG 的全称是 Retrieval ______ Generation。",
|
||||
"explanation": "RAG 全称 Retrieval Augmented Generation(检索增强生成)。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"Augmented"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"slug": "ai-hallucination",
|
||||
"name": "AI 幻觉 / 目标评价 / 规范",
|
||||
"description": "幻觉分类、Critic 架构、Context Engineering、评估体系",
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic",
|
||||
"context-engineering",
|
||||
"rag"
|
||||
],
|
||||
"difficulty_range": [
|
||||
1,
|
||||
5
|
||||
],
|
||||
"schema_version": "1.0.0",
|
||||
"question_files": [
|
||||
"fill_blank",
|
||||
"single_choice"
|
||||
],
|
||||
"stats": {
|
||||
"total": 20,
|
||||
"by_type": {
|
||||
"fill_blank": 10,
|
||||
"single_choice": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
{
|
||||
"topic": "ai-hallucination",
|
||||
"type": "single_choice",
|
||||
"schema_version": "1.0.0",
|
||||
"generated": "2026-09-02T00:00:00Z",
|
||||
"questions": [
|
||||
{
|
||||
"id": "sc-001",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "Critic 评估维度中,完整性(Completeness)的权重是多少?",
|
||||
"explanation": "完整性的权重是 0.25。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "0.15",
|
||||
"B": "0.2",
|
||||
"C": "0.25",
|
||||
"D": "0.3"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-002",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "以下哪项不属于自动评估层?",
|
||||
"explanation": "Critic Agent 评分属于 AI 评估层,不属于自动评估层。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "Schema 校验",
|
||||
"B": "单测通过率",
|
||||
"C": "Critic Agent 评分",
|
||||
"D": "Lint 零告警"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-003",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "当 AI 生成内容与输入上下文不一致时(如文档说 A,回答说 B),属于哪种幻觉?",
|
||||
"explanation": "忠实性幻觉指生成内容与输入上下文不一致。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "事实性幻觉",
|
||||
"B": "忠实性幻觉",
|
||||
"C": "推理性幻觉",
|
||||
"D": "指令性幻觉"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-004",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "以下哪项不是上下文组成的组成部分?",
|
||||
"explanation": "模型参数不是上下文组成部分。上下文由 System Prompt、Knowledge Base、History 和 Retrieved Context 组成。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "System Prompt",
|
||||
"B": "Knowledge Base",
|
||||
"C": "Model Parameters(模型参数)",
|
||||
"D": "Retrieved Context"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-005",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "Hook 机制中,自动化检查的正确顺序是?",
|
||||
"explanation": "正确顺序:Pre-commit Hook(类型检查)→ Lint Hook → 单测 Hook → 合并。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "Lint → 类型检查 → 单测 → 合并",
|
||||
"B": "类型检查 → Lint → 单测 → 合并",
|
||||
"C": "单测 → 类型检查 → Lint → 合并",
|
||||
"D": "类型检查 → 单测 → Lint → 合并"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-006",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "注入领域知识作为 Skill 的目的是什么?",
|
||||
"explanation": "Skill 在 AI 不了解项目特定技术栈或业务领域时注入领域知识。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "加速模型推理",
|
||||
"B": "减少 token 使用",
|
||||
"C": "帮助不了解项目特定技术栈或业务领域的 AI",
|
||||
"D": "替代人类开发者"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-007",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "RAG 流程中,嵌入和向量检索之后的下一步是什么?",
|
||||
"explanation": "RAG 流程:问题 → 嵌入 → 向量检索 → Top-K 文档 → 上下文组装 → LLM → 回答。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "LLM 生成回答",
|
||||
"B": "Top-K 文档检索",
|
||||
"C": "上下文组装",
|
||||
"D": "基于文档的回答"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-008",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "CLAUDE.md 示例中,接口使用什么前缀命名?",
|
||||
"explanation": "CLAUDE.md 示例规定接口使用 I 前缀命名。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "_interface",
|
||||
"B": "I",
|
||||
"C": "Int",
|
||||
"D": "Interface"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-009",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "统一返回类使用什么格式?",
|
||||
"explanation": "项目规范统一使用 Result<T> 包装:{code, message, data}。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "{status, error, result}",
|
||||
"B": "{success, message, payload}",
|
||||
"C": "{code, message, data}",
|
||||
"D": "{result, description, body}"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-010",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"hallucination",
|
||||
"critic"
|
||||
],
|
||||
"question": "在 AI 辅助的瀑布模型中,进入下一阶段前必须完成什么?",
|
||||
"explanation": "每个阶段需要人工验收后才能进入下一阶段。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "AI 自验证",
|
||||
"B": "自动化测试",
|
||||
"C": "人工验收",
|
||||
"D": "同行评审"
|
||||
},
|
||||
"answer": "C"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
{
|
||||
"topic": "ai-memory",
|
||||
"type": "fill_blank",
|
||||
"schema_version": "1.0.0",
|
||||
"generated": "2026-09-02T00:00:00Z",
|
||||
"questions": [
|
||||
{
|
||||
"id": "fb-001",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "Agent 记忆分层架构的四种记忆类型是:工作记忆、情景记忆、语义记忆和______记忆。",
|
||||
"explanation": "记忆分层由工作记忆(短期)、情景记忆(中期)、语义记忆(长期)和程序性记忆组成。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"程序性"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-002",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "记忆的正确流转顺序是:工作记忆 → 情景记忆 → 语义记忆 → ______记忆。",
|
||||
"explanation": "工作记忆在会话结束后转为情景记忆,提炼为语义记忆,最终指导程序性记忆。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"程序性"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-003",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "LRU 缓存使用什么数据结构组合来实现 O(1) 的访问和淘汰?",
|
||||
"explanation": "LRU 使用双向链表维护顺序,哈希表实现 O(1) 查找。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"双向链表 + 哈希表"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-004",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "混合记忆淘汰策略的评分公式是:score = α × 时间衰减(t) + β × 频率(f) + γ × ______(i)。",
|
||||
"explanation": "混合策略综合考虑时间衰减、访问频率和重要性三个维度。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"重要性"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-005",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "混合策略中,时间衰减通常使用什么数学函数计算?",
|
||||
"explanation": "时间衰减函数如 e^(-λt),其中 t 是距上次访问的时间。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"e^(-λt)"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-006",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "记忆系统中,余弦相似度超过______时触发冲突检测。",
|
||||
"explanation": "语义相似度的余弦值 > 0.8 时,记忆对进入冲突检测。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"0.8"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-007",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "部分记忆冲突消解中,当评分差值小于______时无法自动消解,需要向用户澄清。",
|
||||
"explanation": "当评分差值 < 0.1 时,系统无法自动判定,需主动向用户确认。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"0.1"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-008",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "完全记忆冲突的风险等级分为两类:______(危险)和安全。",
|
||||
"explanation": "Critical 包括医疗、金融、生产环境配置等;Safe 包括代码风格、文档格式等。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"Critical"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-009",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "安全环境的 YAML 配置中,三条优先级规则的权重分别是:时间 0.4、来源 0.4、______ 0.2。",
|
||||
"explanation": "安全环境使用时间(0.4)、来源优先级(0.4)和访问次数(0.2)。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"访问次数"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-010",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "记忆冲突解决中,来源可信度的优先级顺序是:用户明确告知 > 从对话推断 > ______。",
|
||||
"explanation": "用户明确告知的可信度最高,其次是对话推断,最后是自动生成。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"自动生成"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"slug": "ai-memory",
|
||||
"name": "Agent 记忆管理 / 冲突处理",
|
||||
"description": "记忆分层架构、淘汰策略、冲突检测与消解",
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru",
|
||||
"lfu",
|
||||
"conflict-resolution"
|
||||
],
|
||||
"difficulty_range": [
|
||||
1,
|
||||
5
|
||||
],
|
||||
"schema_version": "1.0.0",
|
||||
"question_files": [
|
||||
"fill_blank",
|
||||
"single_choice"
|
||||
],
|
||||
"stats": {
|
||||
"total": 20,
|
||||
"by_type": {
|
||||
"fill_blank": 10,
|
||||
"single_choice": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
{
|
||||
"topic": "ai-memory",
|
||||
"type": "single_choice",
|
||||
"schema_version": "1.0.0",
|
||||
"generated": "2026-09-02T00:00:00Z",
|
||||
"questions": [
|
||||
{
|
||||
"id": "sc-001",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "哪种记忆类型代表历史交互记录?",
|
||||
"explanation": "情景记忆(Episodic Memory)存储过去会话的历史交互记录。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "工作记忆",
|
||||
"B": "情景记忆",
|
||||
"C": "语义记忆",
|
||||
"D": "程序性记忆"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-002",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "LRU 淘汰策略的缺点是什么?",
|
||||
"explanation": "LRU 不考虑访问频率——一次访问就能让条目「续命」。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "实现复杂度高",
|
||||
"B": "不考虑访问频率,一次访问就能「续命」",
|
||||
"C": "历史热点问题",
|
||||
"D": "O(n) 时间复杂度"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-003",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "「历史热点问题」与哪种策略相关?",
|
||||
"explanation": "LFU 有历史热点问题:早期高频但后期不再使用的记忆难以被淘汰。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "LRU 策略",
|
||||
"B": "LFU 策略",
|
||||
"C": "混合策略",
|
||||
"D": "FIFO 策略"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-004",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "当两条记忆因上下文不同(如不同项目)而冲突时,应该使用哪种策略?",
|
||||
"explanation": "上下文化策略:如果上下文不同(不同项目/时期),两条记忆都保留。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "时间衰减",
|
||||
"B": "来源可信度",
|
||||
"C": "上下文化",
|
||||
"D": "置信度加权"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-005",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "安全环境 YAML 配置中,来源优先级的权重是多少?",
|
||||
"explanation": "来源优先级在安全环境配置中的权重是 0.4。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "0.2",
|
||||
"B": "0.3",
|
||||
"C": "0.4",
|
||||
"D": "0.5"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-006",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "在危险环境中,对于 Critical 级别的记忆冲突应该怎么做?",
|
||||
"explanation": "危险环境中,系统停止自动决策,输出冲突记忆并等待人工决策。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "按优先级规则自动采纳",
|
||||
"B": "保留较新的记忆",
|
||||
"C": "停止自动决策,输出两条冲突记忆,等待人工决策",
|
||||
"D": "删除两条冲突记忆"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-007",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "除了余弦相似度,还有什么 NLP 技术用于冲突检测?",
|
||||
"explanation": "NLI 矛盾检测与语义相似度一起用于冲突检测。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "情感分析",
|
||||
"B": "命名实体识别",
|
||||
"C": "自然语言推理(NLI)矛盾检测",
|
||||
"D": "词性标注"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-008",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "哪种记忆来源在冲突解决中可信度最高?",
|
||||
"explanation": "用户明确告知(user_explicit)的可信度最高(importance=1.0)。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "自动生成",
|
||||
"B": "从对话推断",
|
||||
"C": "用户确认过的推断",
|
||||
"D": "用户明确告知"
|
||||
},
|
||||
"answer": "D"
|
||||
},
|
||||
{
|
||||
"id": "sc-009",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "记忆存储结构中,哪个字段记录记忆被访问了多少次?",
|
||||
"explanation": "access_count 字段记录记忆被访问的次数,用于频率计算。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "last_accessed",
|
||||
"B": "confidence",
|
||||
"C": "access_count",
|
||||
"D": "importance"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-010",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"memory",
|
||||
"lru"
|
||||
],
|
||||
"question": "在安全环境中,当优先级规则无法解决冲突时,回退策略是什么?",
|
||||
"explanation": "安全环境中,优先级规则无法判定时的回退策略是 ask_user。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "删除较旧的记忆",
|
||||
"B": "保留两条记忆",
|
||||
"C": "询问用户",
|
||||
"D": "随机选择"
|
||||
},
|
||||
"answer": "C"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
{
|
||||
"topic": "ai-structured-output",
|
||||
"type": "fill_blank",
|
||||
"schema_version": "1.0.0",
|
||||
"generated": "2026-09-02T00:00:00Z",
|
||||
"questions": [
|
||||
{
|
||||
"id": "fb-001",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "JSON Mode 保证模型输出的内容是合法的 ______,但内容本身可能不正确。",
|
||||
"explanation": "JSON Mode 强制输出合法 JSON,可靠性中等——格式正确但内容可能有误。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"JSON 格式"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-002",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "Structured Output 基于什么技术来保证输出符合 Schema?",
|
||||
"explanation": "Structured Output 使用受限解码,在每步 token 生成时屏蔽不合法的 token。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"受限解码(Constrained Decoding)"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-003",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "在受限解码过程中,JSON Schema 首先被转换为有限状态自动机(FSA)或______。",
|
||||
"explanation": "受限解码的第一步是将 JSON Schema 转换为 FSA 或 CFG 来追踪合法 token 状态。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"上下文无关文法(CFG)"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-004",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "Agent 系统的核心循环是:用户输入 → 规划 → 执行 → ______ →(未完成则循环)→ 最终结果。",
|
||||
"explanation": "Agent 核心循环:User Input → Planning → Execution → Observation → 循环 → Final Result。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"观察"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-005",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "哪种 Agent 模式在执行后进行自我反思,失败时调整策略?",
|
||||
"explanation": "Reflexion 模式在执行后自我反思,失败时调整策略,适合需要试错的任务。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"Reflexion"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-006",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "ReAct 模式中,Agent 遵循的步骤序列是:思考 → 行动 → 观察 → 思考 → ... → ______。",
|
||||
"explanation": "ReAct 交替进行推理和行动,直到得出最终回答(Answer)。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"回答"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-007",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "工具链设计中,哪个原则确保相同输入无论调用多少次都产生相同结果?",
|
||||
"explanation": "幂等性(Idempotency)意味着相同输入多次调用产生相同结果。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"幂等性"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-008",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "对于删除、支付等敏感操作,Agent 工具链推荐使用什么机制?",
|
||||
"explanation": "敏感操作应使用人工确认(Human-in-the-Loop)来防止意外的破坏性操作。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"Human-in-the-Loop(HITL)/ 人工确认"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-009",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "哪种结构化输出方法灵活性最高但延迟也最高?",
|
||||
"explanation": "分步生成(先生成骨架再填充)灵活性最高、可靠性高,但延迟最高。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"分步生成"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-010",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "三种低延迟的结构化输出方法是:JSON Mode、Structured Output 和______。",
|
||||
"explanation": "JSON Mode、Structured Output 和 Function Calling 都具有低延迟特性。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"Function Calling"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"slug": "ai-structured-output",
|
||||
"name": "AI 结构化输出 / Agent 架构",
|
||||
"description": "结构化输出方法、Agent 模式、受限解码",
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent",
|
||||
"constrained-decoding",
|
||||
"react",
|
||||
"reflexion"
|
||||
],
|
||||
"difficulty_range": [
|
||||
1,
|
||||
5
|
||||
],
|
||||
"schema_version": "1.0.0",
|
||||
"question_files": [
|
||||
"fill_blank",
|
||||
"single_choice"
|
||||
],
|
||||
"stats": {
|
||||
"total": 20,
|
||||
"by_type": {
|
||||
"fill_blank": 10,
|
||||
"single_choice": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
{
|
||||
"topic": "ai-structured-output",
|
||||
"type": "single_choice",
|
||||
"schema_version": "1.0.0",
|
||||
"generated": "2026-09-02T00:00:00Z",
|
||||
"questions": [
|
||||
{
|
||||
"id": "sc-001",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "哪种结构化输出方法能 100% 保证符合 Schema?",
|
||||
"explanation": "Structured Output 使用受限解码屏蔽非法 token,保证 100% 符合 Schema。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "JSON Mode",
|
||||
"B": "Structured Output(受限解码)",
|
||||
"C": "后处理 + 重试",
|
||||
"D": "分步生成"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-002",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "哪种 Agent 模式最适合需要全局规划后再执行的复杂任务?",
|
||||
"explanation": "Plan-and-Execute 先制定完整计划,再逐步执行,适合需要全局规划的复杂任务。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "ReAct",
|
||||
"B": "Reflexion",
|
||||
"C": "Plan-and-Execute",
|
||||
"D": "Multi-Agent"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-003",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "哪种 Agent 模式最适合步骤不确定的通用任务?",
|
||||
"explanation": "ReAct 交替进行推理和行动,灵活应对步骤不确定的通用任务。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "Plan-and-Execute",
|
||||
"B": "Reflexion",
|
||||
"C": "Critic/Verifier",
|
||||
"D": "ReAct"
|
||||
},
|
||||
"answer": "D"
|
||||
},
|
||||
{
|
||||
"id": "sc-004",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "哪种结构化输出方法可靠性中等、灵活性高?",
|
||||
"explanation": "JSON Mode 可靠性中等(格式对但内容可能错)、灵活性高、延迟低。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "Structured Output",
|
||||
"B": "Function Calling",
|
||||
"C": "JSON Mode",
|
||||
"D": "分步生成"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-005",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "哪种 Agent 模式包含两个独立的 Agent——一个执行、一个审查?",
|
||||
"explanation": "Critic/Verifier 模式使用执行 Agent + 审查 Agent 来实现高可靠性。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "ReAct",
|
||||
"B": "Multi-Agent",
|
||||
"C": "Critic/Verifier",
|
||||
"D": "Reflexion"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-006",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "以下哪些结构化输出方法的可靠性为「高」?",
|
||||
"explanation": "Structured Output、Function Calling 和分步生成可靠性都为「高」。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "JSON Mode 和后处理+重试",
|
||||
"B": "Structured Output、Function Calling 和分步生成",
|
||||
"C": "仅 Structured Output",
|
||||
"D": "所有五种方法"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-007",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "严格的 JSON Schema 应该包含哪些约束?",
|
||||
"explanation": "最佳实践推荐使用 required、enum 约束和 additionalProperties: false。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "additionalProperties: true,无 required 字段",
|
||||
"B": "required、enum 和 additionalProperties: false",
|
||||
"C": "仅 type 定义,无约束",
|
||||
"D": "所有字段使用通配符"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-008",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "后处理+重试方法的可靠性等级是?",
|
||||
"explanation": "后处理+重试可靠性中等——解析失败触发重试,但不能保证正确性,延迟也不确定。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "高",
|
||||
"B": "中",
|
||||
"C": "低",
|
||||
"D": "不确定"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-009",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "哪种 Agent 模式涉及多个 Agent 协作,各司其职?",
|
||||
"explanation": "Multi-Agent 使用多个 Agent 协作,各自承担专门角色,适合复杂系统。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "ReAct",
|
||||
"B": "Reflexion",
|
||||
"C": "Plan-and-Execute",
|
||||
"D": "Multi-Agent"
|
||||
},
|
||||
"answer": "D"
|
||||
},
|
||||
{
|
||||
"id": "sc-010",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"structured-output",
|
||||
"agent"
|
||||
],
|
||||
"question": "受限解码中,每步 token 生成时会发生什么?",
|
||||
"explanation": "每步根据当前状态和 Schema 约束屏蔽非法 token,模型只能从合法 token 中采样。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "模型生成任意 token 然后验证",
|
||||
"B": "根据当前状态和 Schema 约束屏蔽非法 token",
|
||||
"C": "模型输出完整 JSON 后校验",
|
||||
"D": "独立的验证模型对每个 token 打分"
|
||||
},
|
||||
"answer": "B"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
{
|
||||
"topic": "ai-tooling",
|
||||
"type": "fill_blank",
|
||||
"schema_version": "1.0.0",
|
||||
"generated": "2026-09-02T00:00:00Z",
|
||||
"questions": [
|
||||
{
|
||||
"id": "fb-001",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "Claude Code 是一个______ Agent,具有深度代码理解、工具调用和多文件编辑能力。",
|
||||
"explanation": "Claude Code 是 CLI(命令行界面)Agent,专为复杂编码任务设计。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"CLI"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-002",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "Harness 中的______管理器决定哪些操作需要用户确认,哪些可以自动执行。",
|
||||
"explanation": "权限管理器(Permission Manager)控制哪些操作需要用户授权。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"权限(Permission)"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-003",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "可靠性保障体系的三个层次是:预防、检测和______。",
|
||||
"explanation": "可靠性体系由预防(Prevention)、检测(Detection)和纠正(Correction)三层组成。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"纠正"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-004",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "Harness 中的______ Hook 在工具执行前检查参数合理性。",
|
||||
"explanation": "preToolUse Hook 在工具执行前验证参数合理性。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"preToolUse"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-005",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "根据面试笔记,AI 对重复性 CRUD 代码的提效倍数是______。",
|
||||
"explanation": "AI 对 CRUD 代码的效率提升为 6 倍。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"6x"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-006",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "Harness 中的______管理器维护对话历史、工具结果和文件状态。",
|
||||
"explanation": "上下文管理器(Context Manager)维护完整的对话上下文。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"上下文(Context)"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-007",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "工具选择原则中,______性意味着工具应具备良好的权限控制和审计能力。",
|
||||
"explanation": "可控性(Controllability)强调工具应有良好的权限控制和审计能力。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"可控"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-008",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "Harness 中的______ Hook 在代码提交前运行 lint、测试和类型检查。",
|
||||
"explanation": "preCommit Hook 在代码提交前运行自动化检查。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"preCommit"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-009",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "在 Harness 流程中,LLM 处理输入后,下一个组件是______管理器。",
|
||||
"explanation": "流程为:LLM → 工具管理器 → 权限管理器 → 执行。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"工具(Tool)"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-010",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "______工程的核心是为 AI 系统提供精准的上下文。",
|
||||
"explanation": "Context Engineering(上下文工程)专注于为 AI 提供精准上下文以提升表现。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"Context"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"slug": "ai-tooling",
|
||||
"name": "AI 工具 / Harness / 综合",
|
||||
"description": "AI 工具选型、Harness 架构、可靠性保障、提效分析",
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness",
|
||||
"claude-code",
|
||||
"reliability"
|
||||
],
|
||||
"difficulty_range": [
|
||||
1,
|
||||
5
|
||||
],
|
||||
"schema_version": "1.0.0",
|
||||
"question_files": [
|
||||
"fill_blank",
|
||||
"single_choice"
|
||||
],
|
||||
"stats": {
|
||||
"total": 20,
|
||||
"by_type": {
|
||||
"fill_blank": 10,
|
||||
"single_choice": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
{
|
||||
"topic": "ai-tooling",
|
||||
"type": "single_choice",
|
||||
"schema_version": "1.0.0",
|
||||
"generated": "2026-09-02T00:00:00Z",
|
||||
"questions": [
|
||||
{
|
||||
"id": "sc-001",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "哪个 AI 工具最适合复杂编码任务和项目级重构?",
|
||||
"explanation": "Claude Code 专为复杂编码任务设计,具有深度代码理解和多文件编辑能力。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "Cursor",
|
||||
"B": "GitHub Copilot",
|
||||
"C": "Claude Code",
|
||||
"D": "ChatGPT"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-002",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "Harness 中状态管理器(State Manager)的核心功能是什么?",
|
||||
"explanation": "状态管理器负责任务状态管理、进度追踪和错误恢复。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "管理用户权限",
|
||||
"B": "维护对话历史",
|
||||
"C": "追踪任务状态、进度和错误恢复",
|
||||
"D": "执行工具调用"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-003",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "可靠性保障体系的哪一层包含 Sub-agent 交叉验证和 Critic 评分?",
|
||||
"explanation": "检测层包含 Sub-agent 交叉验证、Hook 自动检查和 Critic 评分。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "预防层",
|
||||
"B": "检测层",
|
||||
"C": "纠正层",
|
||||
"D": "监控层"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-004",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "Definition of Done(完成定义)建立的是什么?",
|
||||
"explanation": "Definition of Done 定义任务「完成」的条件,避免主观判断。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "何时终止 AI 系统",
|
||||
"B": "任务开始前必须满足的完成条件",
|
||||
"C": "错误处理流程",
|
||||
"D": "性能基准"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-005",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "以下哪项不是 AI 工具选择的原则?",
|
||||
"explanation": "工具选择原则为:能力匹配、可控性、可组合性、成本效益。速度优化不在其中。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "能力匹配",
|
||||
"B": "速度优化",
|
||||
"C": "可组合性",
|
||||
"D": "成本效益"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-006",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "AI 对代码 Review 的提效倍数是多少?",
|
||||
"explanation": "AI 对代码 Review 的效率提升为 6 倍。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "2x",
|
||||
"B": "4x",
|
||||
"C": "6x",
|
||||
"D": "8x"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-007",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "权限管理器授权后,下一个执行的组件是什么?",
|
||||
"explanation": "授权后执行操作,然后状态管理器更新状态。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "上下文管理器",
|
||||
"B": "工具管理器(执行)",
|
||||
"C": "状态管理器",
|
||||
"D": "Hook 管理器"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-008",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "「渐进式信任」方法的目的是什么?",
|
||||
"explanation": "渐进式信任:从简单任务开始验证 AI 能力,随着信心增长逐步增加复杂度。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "立即让 AI 处理所有任务",
|
||||
"B": "从简单任务开始验证 AI 能力,逐步增加复杂度",
|
||||
"C": "永久限制 AI 只做简单任务",
|
||||
"D": "完全移除人工监督"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-009",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "哪个 AI 工具以广泛的语言支持和低延迟的代码补全著称?",
|
||||
"explanation": "GitHub Copilot 以广泛的语言支持和低延迟著称。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "Claude Code",
|
||||
"B": "Cursor",
|
||||
"C": "GitHub Copilot",
|
||||
"D": "ChatGPT"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-010",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"ai",
|
||||
"tools",
|
||||
"harness"
|
||||
],
|
||||
"question": "哪种方法论涉及将任务拆分为小的、可验证的子任务?",
|
||||
"explanation": "Task Decomposition(任务拆解)将复杂任务拆分为小的、可验证的子任务。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "Context Engineering",
|
||||
"B": "Task Decomposition(任务拆解)",
|
||||
"C": "Iterative Development",
|
||||
"D": "Template Prompts"
|
||||
},
|
||||
"answer": "B"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
{
|
||||
"topic": "gc-jvm",
|
||||
"type": "fill_blank",
|
||||
"schema_version": "1.0.0",
|
||||
"generated": "2026-09-02T00:00:00Z",
|
||||
"questions": [
|
||||
{
|
||||
"id": "fb-001",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "JVM 堆内存分为两个主要代:新生代(Young Generation)和______代。",
|
||||
"explanation": "JVM 堆主要分为新生代(包含 Eden 和 Survivor 空间)和老年代。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"老"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-002",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "Eden、Survivor 0、Survivor 1 的默认比例是 ______。",
|
||||
"explanation": "默认情况下,新生代按 8:1:1 的比例划分为 Eden、S0 和 S1。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"8:1:1"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-003",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "新对象优先在新生代的 ______ 区分配。",
|
||||
"explanation": "新对象优先在 Eden 区分配,Eden 区满时触发 Minor GC。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"Eden"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-004",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "对象从新生代晋升到老年代的默认年龄阈值是 ______。",
|
||||
"explanation": "经历 15 次 GC(默认)仍然存活的对象会被晋升到老年代。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"15"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-005",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "当 Eden 区满时,会触发 ______ GC。",
|
||||
"explanation": "Minor GC(也叫 Young GC)在 Eden 区满时触发。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"Minor"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-006",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "三色标记法中,已被扫描但子对象尚未全部处理完成的对象标记为______色。",
|
||||
"explanation": "灰色对象已被扫描,但其子对象仍需处理。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"灰"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-007",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "三色标记法中,尚未被扫描、将被回收的对象标记为______色。",
|
||||
"explanation": "白色对象尚未被扫描,是回收的候选对象。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"白"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-008",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "CMS 垃圾收集器使用______更新(Incremental Update)来解决并发标记期间的漏标问题。",
|
||||
"explanation": "CMS 通过写屏障(Write Barrier)使用增量更新来追踪黑色对象新增对白色对象的引用。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"增量"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-009",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "G1 垃圾收集器使用______(Snapshot At The Beginning)来解决漏标问题。",
|
||||
"explanation": "G1 使用 SATB,在引用被覆盖前记录旧值。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"SATB"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
},
|
||||
{
|
||||
"id": "fb-010",
|
||||
"type": "fill_blank",
|
||||
"difficulty": 2,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "CMS 的四个阶段是:初始标记 → ______标记 → 重新标记 → 并发清除。",
|
||||
"explanation": "CMS 四阶段:Initial Mark(STW)→ Concurrent Mark → Remark(STW)→ Concurrent Sweep。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"answer": [
|
||||
"并发"
|
||||
],
|
||||
"answer_rule": "any"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"slug": "gc-jvm",
|
||||
"name": "GC / JVM / 三色标记",
|
||||
"description": "JVM 堆内存模型、GC 算法、三色标记法、垃圾收集器",
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap",
|
||||
"three-color-marking",
|
||||
"cms",
|
||||
"g1",
|
||||
"zgc"
|
||||
],
|
||||
"difficulty_range": [
|
||||
1,
|
||||
5
|
||||
],
|
||||
"schema_version": "1.0.0",
|
||||
"question_files": [
|
||||
"fill_blank",
|
||||
"single_choice"
|
||||
],
|
||||
"stats": {
|
||||
"total": 20,
|
||||
"by_type": {
|
||||
"fill_blank": 10,
|
||||
"single_choice": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
{
|
||||
"topic": "gc-jvm",
|
||||
"type": "single_choice",
|
||||
"schema_version": "1.0.0",
|
||||
"generated": "2026-09-02T00:00:00Z",
|
||||
"questions": [
|
||||
{
|
||||
"id": "sc-001",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "以下哪个不是 JVM 的 GC 类型?",
|
||||
"explanation": "三种主要 GC 类型是 Minor GC、Major GC 和 Full GC,没有 Super GC。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "Minor GC",
|
||||
"B": "Major GC",
|
||||
"C": "Full GC",
|
||||
"D": "Super GC"
|
||||
},
|
||||
"answer": "D"
|
||||
},
|
||||
{
|
||||
"id": "sc-002",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "新生代通常使用哪种垃圾回收算法?",
|
||||
"explanation": "新生代使用复制算法(Copying),高效处理短生命周期对象。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "标记-清除",
|
||||
"B": "标记-整理",
|
||||
"C": "复制算法",
|
||||
"D": "引用计数"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-003",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "哪个垃圾收集器以低停顿为目标,并使用增量更新?",
|
||||
"explanation": "CMS(Concurrent Mark Sweep)以低停顿为目标,使用增量更新(Incremental Update)。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "Serial",
|
||||
"B": "Parallel Scavenge",
|
||||
"C": "CMS",
|
||||
"D": "G1"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-004",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "哪个垃圾收集器在 JDK 9 成为默认收集器,并支持停顿时间预测?",
|
||||
"explanation": "G1(Garbage First)在 JDK 9 成为默认收集器,支持可预测的停顿时间。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "Serial",
|
||||
"B": "CMS",
|
||||
"C": "G1",
|
||||
"D": "ZGC"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-005",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "ZGC 的设计目标是停顿时间低于______。",
|
||||
"explanation": "ZGC 设计目标是停顿时间低于 10ms,适合延迟敏感的应用。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "100ms",
|
||||
"B": "50ms",
|
||||
"C": "10ms",
|
||||
"D": "1ms"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-006",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "以下哪个属于 GC Root?",
|
||||
"explanation": "静态字段是 GC Root。其他 GC Root 还包括虚拟机栈局部变量、final static 常量、JNI 引用、synchronized 持有的对象。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "堆中的局部变量",
|
||||
"B": "静态字段(static fields)",
|
||||
"C": "Eden 区中的对象",
|
||||
"D": "Survivor 区中的对象"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-007",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "并发标记期间,当一个白色对象被黑色对象新增引用时,会产生什么问题?",
|
||||
"explanation": "这叫漏标(Missed Marking),存活对象可能因未被标记而被错误回收。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "内存泄漏",
|
||||
"B": "漏标",
|
||||
"C": "栈溢出",
|
||||
"D": "死锁"
|
||||
},
|
||||
"answer": "B"
|
||||
},
|
||||
{
|
||||
"id": "sc-008",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "老年代使用哪种算法可以避免内存碎片,但 STW 时间更长?",
|
||||
"explanation": "标记-整理(Mark-Compact)通过移动对象消除碎片,但移动操作导致更长的 STW。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "复制算法",
|
||||
"B": "标记-清除",
|
||||
"C": "标记-整理",
|
||||
"D": "引用计数"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-009",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "哪个垃圾收集器支持 Mixed GC 并使用 SATB?",
|
||||
"explanation": "G1 支持 Mixed GC(同时收集新生代和老年代),并使用 SATB 进行并发标记。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "Serial",
|
||||
"B": "CMS",
|
||||
"C": "G1",
|
||||
"D": "Parallel Scavenge"
|
||||
},
|
||||
"answer": "C"
|
||||
},
|
||||
{
|
||||
"id": "sc-010",
|
||||
"type": "single_choice",
|
||||
"difficulty": 3,
|
||||
"tags": [
|
||||
"jvm",
|
||||
"gc",
|
||||
"heap"
|
||||
],
|
||||
"question": "CMS 的初始标记(Initial Mark)阶段做什么?",
|
||||
"explanation": "CMS 初始标记阶段(需要 STW)枚举 GC Roots 的直接引用,标记为灰色,建立起始快照。",
|
||||
"source": null,
|
||||
"related": [],
|
||||
"options": {
|
||||
"A": "回收所有垃圾",
|
||||
"B": "枚举 GC Roots 直接引用并标记为灰色",
|
||||
"C": "移动对象以压缩内存",
|
||||
"D": "清除不可达对象"
|
||||
},
|
||||
"answer": "B"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"version": "1.0.0",
|
||||
"updated": "2026-09-02",
|
||||
"topics": [
|
||||
{
|
||||
"slug": "gc-jvm",
|
||||
"name": "GC / JVM / 三色标记",
|
||||
"description": "JVM 堆内存模型、GC 算法、三色标记法、垃圾收集器",
|
||||
"path": "topics/gc-jvm",
|
||||
"stats": {
|
||||
"total": 20,
|
||||
"by_type": {
|
||||
"fill_blank": 10,
|
||||
"single_choice": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"slug": "ai-structured-output",
|
||||
"name": "AI 结构化输出 / Agent 架构",
|
||||
"description": "结构化输出方法、Agent 模式、受限解码",
|
||||
"path": "topics/ai-structured-output",
|
||||
"stats": {
|
||||
"total": 20,
|
||||
"by_type": {
|
||||
"fill_blank": 10,
|
||||
"single_choice": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"slug": "ai-memory",
|
||||
"name": "Agent 记忆管理 / 冲突处理",
|
||||
"description": "记忆分层架构、淘汰策略、冲突检测与消解",
|
||||
"path": "topics/ai-memory",
|
||||
"stats": {
|
||||
"total": 20,
|
||||
"by_type": {
|
||||
"fill_blank": 10,
|
||||
"single_choice": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"slug": "ai-hallucination",
|
||||
"name": "AI 幻觉 / 目标评价 / 规范",
|
||||
"description": "幻觉分类、Critic 架构、Context Engineering、评估体系",
|
||||
"path": "topics/ai-hallucination",
|
||||
"stats": {
|
||||
"total": 20,
|
||||
"by_type": {
|
||||
"fill_blank": 10,
|
||||
"single_choice": 10
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"slug": "ai-tooling",
|
||||
"name": "AI 工具 / Harness / 综合",
|
||||
"description": "AI 工具选型、Harness 架构、可靠性保障、提效分析",
|
||||
"path": "topics/ai-tooling",
|
||||
"stats": {
|
||||
"total": 20,
|
||||
"by_type": {
|
||||
"fill_blank": 10,
|
||||
"single_choice": 10
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user