知识卡片
追踪系统让黑箱可审计
评估只能覆盖设计者想到的场景,真实系统的输入可能与评估数据集差得很远。因此必须持续观察生产中的真实行为,而仅靠日志不够。
追踪(tracing)系统记录 AI 应用的全部内部交互:输入的提示词、模型的响应、发起的工具调用。这些记录同时服务于四件不同的事——排查问题(看到模型当时到底看到了什么)、理解真实用户行为、满足合规与审计要求、为后续改进积累素材。
之所以需要”专门”的系统而不是普通日志,是因为 AI 应用的失败往往是多点组合的结果:检索取错了片段、提示被截断、工具返回了异常格式、模型选了另一条路径。分散的日志无法把这些串成一次完整调用链。
对平台的含义是明确的:追踪应是平台级能力,统一采集、统一存储、统一关联(开放标准如 OpenTelemetry 能降低被单一厂商绑定的风险),而不是每个应用各自打日志。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- AI Applications and Their Lifecycle · 查看原书依据
Besides logging, the established best practice to achieve this is to implement a dedicated Tracing system, which records all internal interactions of the AI application (e.g., input prompts, model responses, and tool calls).
参考来源
- 位置:《Building AI Agent Platforms》第01章《AI Applications and Their Lifecycle》(源文件:extracted/Building AI Agent Platforms/_epub-src/OEBPS/ch01.html,来源项目 book-source)
- 结论依据:原文指出真实输入可能显著偏离评估数据集,因此需监控生产行为,并说明追踪记录提示、响应与工具调用,用于调试、理解行为与合规审计。
- 原始内容:Besides logging, the established best practice to achieve this is to implement a dedicated Tracing system, which records all internal interactions of the AI application (e.g., input prompts, model responses, and tool calls).