aidigest.club
05 · 柱 3

LLMOps / AgentOps

~13K 字· 飞书原文:my.feishu.cn/docx/T9PJd9NsCo1M…

柱 3:LLMOps / AgentOps

本板块基于以下源:#26, #27, #28, #29, #30, #31, #32, #33, #34, #35

一、核心观点

  1. 「Semantic Observability」是 LLMOps 与传统 monitoring 的根本分界:传统监控看 uptime / CPU / 错误率,LLM 失败是 semantic & behavioral——hallucination、partial answer、syntactically correct but semantically wrong。Fractal 直陈:「Traditional monitoring focuses on system health metrics… LLM failures are semantic and behavioral, requiring visibility into prompts, agent decisions, token usage, and retrieval context.」出处:Fractal, LLMOps Architecture for GenAI[1]

  2. 「MLOps → LLMOps → AgentOps」是逐级递进的运维体系:MLOps 关注模型训练-部署-监控;LLMOps 增加 prompt versioning、RAG pipelines、token economy;AgentOps 进一步增加 tool 调用、规划与反思、long-running execution、人工干预循环。三者在企业内并存,不是替代关系。出处:Covasant, MLOps vs LLMOps vs AgentOps[2](#30)、Iguazio, LLMOps vs MLOps[3](参见 #30 引用)。

  3. 「Hallucination 在 2024 年造成 $67B 业务损失」:Galileo 在 2026 年 2 月报告引用该数据,指明这是 LLMOps 平台核心要解决的问题,purpose-built evaluation frameworks 必须能在生产时实时检测幻觉。出处:Galileo, 7 Best LLMOps Platforms[4]

  4. 「S&P Global 2025:42% 企业放弃 AI 项目,比上年翻倍(17% → 42%)」:Galileo 把这归因为缺少 observability / evaluation / governance 三位一体的 LLMOps 平台。出处:Galileo[4]

  5. 「Token-Level Cost Tracking 是 LLMOps 的入场券」:ByteDance 通过 token 优化做到 50% cost reduction,业内有 90x improvement 的极端案例。Galileo Luna-2 evaluation 模型把 evaluation 自身成本降低 97% vs GPT-4。这意味着「systematic continuous evaluation」在经济上变得可行。出处:Galileo[4]

  6. 「Agent Graph Visualization」是 multi-agent 调试的关键工具:当 cascading failure 在 reasoning chain 里发生时,必须能可视化每一步推理、每一次 tool 调用、每一次 LLM 输出。Galileo Agent Graph、LangSmith End-to-End Tracing、Arize Phoenix 都在做这件事。出处:Galileo[4]

  7. 「Continuous Evaluation」是 evaluation 的范式转移:传统 ML 用 hold-out test set 一次性评估;LLM 系统必须在生产环境持续评估——prompt、模型、数据三者中任一变化都会导致行为漂移。IJCESEN 论文系统化提出 continuous evaluation framework:包括 functional accuracy / safety / fairness / cost / latency 五维度持续度量。出处:IJCESEN, Continuous Evaluation Methodologies for AI Agents[5](#32)。

  8. 「Prompt 是新的代码」,必须版本化 + A/B 测试 + rollback:Covasant 明确指出 prompts are the ‘new code’ but unversioned and unmanaged 是 LLMOps 头号痛点。LangSmith、PromptLayer、LangFuse、PromptHub 都在解决这个问题。出处:Covasant[2]

  9. 「AgentOps 必须包含 long-running execution 管理」:Agent 可能跑数分钟到数小时,普通监控工具按 request-response 设计,无法覆盖。AgentOps 工具需要 trace 状态机、failed-step 重试、人工 takeover、计划修改、cost 追溯。出处:OneReach, LLMOps Goes Agentic[6](#29)、LinkedIn, AgentOps Operational Observability[7](#31)。

  10. 「ZenML 案例数据库 = 457 个真实生产案例库」,是当前公开最完整的 LLMOps 实战数据库,覆盖从初创到 Fortune 100 的多行业部署,对 Accenture、AWS、Microsoft、Google Cloud、Databricks、Snowflake、Anthropic 等都有专题。出处:ZenML LLMOps Database[8](#33)、ZenML LLMOps Database (overview)[9](#34)。

二、重要性综述

LLMOps / AgentOps 是 Agentic AI 落地的「神经系统」——如果架构是骨骼、数据是血肉、API 治理是循环系统,那么 LLMOps 就是让你能看见、能诊断、能干预这个有机体的神经网络。

为什么传统监控不行?Fractal 用一句话讲清:「LLM failures are semantic and behavioral.」Hallucination 不会让服务器宕机、不会让 HTTP 返回 500,它会用看似正确的语法返回错误的事实。传统 APM(Datadog、New Relic、Dynatrace)按指标(uptime、CPU、error rate)报警,它看不见「这个回答在事实上错了 20%」——这就是为什么 Galileo 强调 semantic observability 是 LLMOps 平台的差异化定义。

LLMOps 的核心能力可以归为 4 类

  1. Tracing / Observability:捕获每次 LLM 调用、每次 tool 调用、每个 retrieval 命中,组成一条完整的 reasoning chain。LangSmith、Galileo、Arize Phoenix、Langfuse 是这一赛道头部玩家。

  2. Evaluation:Online evaluation(生产流量上做轻量评估)+ offline evaluation(用 golden dataset 做回归测试)+ human-in-the-loop evaluation(运营/SME 抽检并标注)。IJCESEN 论文把 evaluation 维度系统化为 5 类——functional accuracy / safety / fairness / cost / latency。

  3. Prompt & Model Lifecycle Management:prompt 版本管理 + A/B 测试 + rollback;model registry + version pinning + canary deployment;以及在不同 LLM provider 间的 fallback 策略。

  4. Cost & Performance Optimization:per-agent / per-use-case token budgets;smart routing(便宜模型先试、复杂任务才上贵模型);caching;prompt compression。

Agentic 时代,LLMOps 必须升级为 AgentOps——增加:

ZenML 案例数据库(457 个真实案例)的价值:这是当前公开材料里唯一做到「企业 LLMOps 工程化」横截面的数据库。Accenture、CircleCI、Cisco、Codeium、Co-op、BuzzFeed、Cedars Sinai、Cambrium、Canva、Capital One、Chevron Phillips Chemical 等案例均有详细技术写真。对埃森哲提案、客户 benchmarking、内部技术选型都是高价值素材(ZenML LLMOps Database[8])。

三、方案利弊

方案 A:综合性 LLMOps 平台(Galileo / LangSmith / Arize)

方案 B:开源 stack(Langfuse + Phoenix + OpenLLMetry + 自建 evaluation harness)

方案 C:Cloud-native LLMOps(Azure AI Foundry / AWS Bedrock Agents / Google Vertex AI)

方案 D:「数据平台 + LLMOps」双轨(Databricks / Snowflake / Iguazio)

选型建议

埃森哲典型客户:A + D 混合——A 提供 LLMOps 平台标杆能力,D 提供数据底座的一致性。方案 C 适合「all-in 某一云」的客户;方案 B 仅适合科技驱动型客户。

四、风险

  1. 「Vanity Metrics 陷阱」:只看 token 量、调用次数、latency,看不见 hallucination 率、tool selection accuracy、user task completion。对策:从 Day 1 把 semantic 指标(accuracy、faithfulness、relevance、harmfulness)作为核心 KPI,不只看技术指标。出处:Galileo[4]、IJCESEN[5]

  2. 「Eval Set 陈旧」:评估数据集一次性建好后不更新,与生产分布漂移;evaluation 通过但生产仍出错。对策:rolling eval set,每月从生产 trace 中抽样新增样本;建立 SME 参与的标注流程。出处:IJCESEN[5]

  3. 「Prompt-Tool-Model 三角漂移」:升级了任一项(换了 prompt 模板 / 换了 tool 描述 / 换了 LLM 版本),其他两项不重测,行为整体漂移。对策:把 prompt / tool / model 三者绑定成 release artifact;强制三者一起 release。出处:arXiv 2512.08769[11]

  4. 「LLM 厂商单点依赖」:只用 OpenAI,一次 outage 全部 Agent 停摆。对策:multi-provider routing(OpenAI + Azure OpenAI + Anthropic + 自建开源)+ 自动 fallback。Galileo / Portkey / LiteLLM 都支持。出处:Galileo[4]、Pratik on LLMOps[12]

  5. 「Long-Running 卡死」:Agent 进入死循环或在某个 tool 上无限重试,token 烧光、用户挂死。对策:strict execution budget(最大 step 数 + 最大 token + 最大 wall-clock)+ 异常超阈值自动 escalate。出处:Cygnet[13]

  6. 「Observability 自身就是攻击面」:Trace 数据包含敏感 prompt 内容(包括客户数据),可能存到外部 SaaS。对策:选支持 VPC / on-prem 部署的工具;启用 trace masking;与数据治理(底座)联动。出处:Galileo[4](VPC / on-prem 选项)。

五、适用场景

优先重投 LLMOps

可分阶段投入

可暂缓

六、最佳实践案例

案例 1:Galileo + 金融服务客户($6.4 万亿 AUM)

场景:合规要求极严的金融客户,敏感客户数据,需要 SOC 2 + HIPAA + GDPR + ISO 27001 + VPC 部署。 做法:Galileo Luna-2 evaluation(成本相比 GPT-4 降 97%)+ Agent Graph 可视化 + runtime protection(< 200ms 拦截有害输出)。 结果:30%+ efficiency gain at massive scale;media 客户「100% accuracy across 400+ deployments」。 出处:Galileo, Best LLMOps Platforms[4]

案例 2:Cisco LLMOps Framework

场景:将 DevOps 实践适配到 LLM 应用规模化部署。 做法:自建 LLMOps 框架;focus on continuous delivery, robust monitoring, stringent security, specialized operational support;强调 enterprise-specific considerations like scalability, integration with existing systems, governance。 意义:Fortune 100 自建 LLMOps 的标杆案例。 出处:ZenML LLMOps Database, Cisco case[8]

案例 3:CircleCI LLM-Based Application Testing

场景:AI error summarizer,处理非确定性输出和主观评估的挑战。 做法:model-graded evaluations + robust error handling + user feedback loops;强调测试 LLM-based app 需要新的测试策略,超越 simple string matching。 结果:valuable AI features 通过 focused exploration + iterative development 达成;不需要复杂自研模型。 出处:ZenML LLMOps Database, CircleCI case[8]

案例 4:Canva Magic Switch 评估框架

场景:systematic LLM evaluation framework;定义 success criteria 和 measurable metrics before implementation。 做法:rule-based + LLM-based evaluators 评估 content quality;维度 = information preservation / intent alignment / format;regression testing 保证 prompt 改进不退化整体质量。 意义:把 evaluation engineering 做成产品级实践,可作为埃森哲为客户设计 evaluation 体系的参考。 出处:ZenML LLMOps Database, Canva case[8]

案例 5:Convirza 多 LoRA 服务架构

场景:分析数百万条 call center 对话,sub-0.1s 推理。 做法:Llama 3B + LoRA adapters via Predibase;multi-adapter serving on single GPU;vs OpenAI 节省 10x 成本;F1 提升 8%;吞吐提升 80%。 意义:smaller fine-tuned model + multi-LoRA 是 enterprise high-volume Agent 的可重复模式。 出处:ZenML LLMOps Database, Convirza case[8]

案例 6:Cleric AI SRE Agent

场景:AI-powered SRE 自主调查生产事件。 做法:reasoning engine + tool integrations + memory system;continuous learning(捕获 feedback 并 generalize patterns);transparent decision-making + configurable model selection + human oversight for remediation。 意义:可作为 IT Operations 部门 Agent 部署的参考模板。 出处:ZenML LLMOps Database, Cleric AI case[8]

案例 7:Coval — 应用自动驾驶仿真原则做 Agent 测试

场景:从 manual testing → probabilistic approach with dynamic scenarios + multi-layered testing architectures。 做法:用 LLM benchmark agent performance against human capabilities;提供 dynamic scenario generation + performance monitoring 工具。 意义:Agent testing 范式从「单 case PASS/FAIL」演进为「概率分布 + 场景空间覆盖」。 出处:ZenML LLMOps Database, Coval case[8]

案例 8:Character.ai — 30,000 messages per second 规模化

场景:大规模对话 AI 平台。 做法:自建 foundation models + multi-query attention(GPU cache 减少)+ 自研 GPU cache 系统 + prompt management system「prompt-poet」。 意义:超大规模 Agent 服务的可参考做法(虽然多数客户不会到此规模,但架构思路有价值)。 出处:ZenML LLMOps Database, Character.ai case[8]


下一节:柱 4:风险治理 + IAM


参考文献

1. Fractal, LLMOps Architecture for GenAI

2. Covasant, MLOps vs LLMOps vs AgentOps

3. Iguazio, LLMOps vs MLOps

4. Galileo, 7 Best LLMOps Platforms

5. IJCESEN, Continuous Evaluation Methodologies for AI Agents

6. OneReach, LLMOps Goes Agentic

7. LinkedIn, AgentOps Operational Observability

8. ZenML LLMOps Database

9. ZenML LLMOps Database (overview)

10. Pratik on LLMOps

11. arXiv 2512.08769

12. Pratik on LLMOps

13. Cygnet