{ "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" } ] }