跳到主内容
@wquguru
精选88Lenny's Newsletter(RSS)产品与增长

AI产品评测:先做错误发现再定指标,避免测错方向

Advanced evals: How to find (and fix) hidden AI failures in your product

原文
发到 X
推荐理由

给出了AI PM最易踩坑的具体动作:先人工审查样本定义标准再让Agent跑数据,附了清晰的避坑指南和实操步骤。

👋 Hey there, I’m Lenny. Each week, I share deeply researched product, growth, and career advice. For more: Lenny’s Jobs | Lennybot | Become an AI-Native Builder and other favorite AI/PM courses

👋 大家好,我是 Lenny。每周我都会分享经过深入调研的产品、增长和职业建议。更多资源:Lenny’s Jobs | Lennybot | 成为 AI-Native Builder 及其他热门 AI/PM 课程

Subscribe now

立即订阅

P.S. Get a full free year of Cursor, Notion, Lovable, Replit, Wispr Flow, Linear, Factory, ElevenLabs, PostHog, Granola, Brain.fm, Waking Up, and more, by becoming an Insider subscriber (while supplies last). Learn more.

附注:通过成为 Insider 订阅用户(库存有限),可免费获得 Cursor、Notion、Lovable、Replit、Wispr Flow、Linear、Factory、ElevenLabs、PostHog、Granola、Brain.fm、Waking Up 等一年的完整使用权。了解更多。

Evals have been coming up more and more in my conversations with podcast guests and PMs. And nearly half of the 25 awesome PM job openings I shared on socials last week ask for experience writing evals. This skill is only becoming more valuable. So I asked Hamel and Shreya to write an advanced sequel to their very popular “Building eval systems that improve your AI product” post from last year. Drawing from their work with over 50 AI companies, they’ve noticed that most teams jump straight to writing metrics—and end up measuring the wrong things. Below, they share the critical part of the process most teams skip, which steps you can (and cannot) automate, and a free plugin that lets a coding agent do most of the heavy lifting for you. Enjoy!

在与播客嘉宾和产品经理的交谈中,评估(Evals)的话题越来越频繁地出现。上周我在社交媒体上分享的 25 个优秀产品经理职位中,近一半都要求有编写评估的经验。这项技能的价值正日益凸显。因此,我请 Hamel 和 Shreya 为他们去年非常受欢迎的文章《构建能提升你 AI 产品的评估系统》撰写了一篇进阶续作。基于他们与 50 多家 AI 公司的合作经验,他们注意到大多数团队会直接跳到编写指标——结果却衡量了错误的内容。下文分享了大多数团队跳过的关键步骤、你可以(以及不能)自动化的环节,以及一个能让编码代理为你完成大部分繁重工作的免费插件。请欣赏!

To go deeper, join their upcoming AI Evals for Engineers & PMs course and use the discount code LENNYSLIST at checkout to get 25% off.

若想深入了解,请加入他们即将推出的工程师与产品经理 AI 评估课程,并在结账时使用折扣码 LENNYSLIST 享受 25% 的优惠。

By now, you’ve probably heard that evals are a defining skill for AI PMs. Mike Krieger, Anthropic’s former CPO and now head of Labs, has said that “if there’s one thing we can teach product people, it’s that writing evals is now probably the most important thing.” Garry Tan, the CEO of Y Combinator, shared that “evals are emerging as the real moat for AI startups.” A number of guests on Lenny’s Podcast have argued that “evals are the new PRDs,” and increasingly, leading companies have been talking about how investing in evals has paid off:

到目前为止,你可能已经听说过,评估是 AI 产品经理的一项核心技能。Anthropic 前首席产品官、现任实验室负责人的 Mike Krieger 曾表示:“如果只能教产品人员一件事,那就是现在编写评估可能是最重要的事。”Y Combinator 首席执行官 Garry Tan 表示:“评估正在成为 AI 初创企业的真正护城河。”Lenny 播客的许多嘉宾认为“评估是新版的 PRD”,越来越多的领先公司也在谈论对评估的投资如何带来了回报:

  • Shopify used evals to guide development of an AI workflow builder that was 2.2 times faster and 68% cheaper than the frontier-model system it replaced.
  • Cursor developed its Auto Balance routing performance with evals, resulting in much higher user satisfaction while reducing costs by 41%.
  • Ramp increased its automatic receipt collection product’s accuracy from 35% to 83% after investing in evals.
  • Harvey rebuilt its AI contract reviewer with evals, nearly doubling the product’s internal quality score.
  • Shopify 利用评估指导开发了一个 AI 工作流构建器,其速度比被替代的前沿模型系统快 2.2 倍,成本降低了 68%。
  • Cursor 通过评估优化了其 Auto Balance 路由性能,在将成本降低 41% 的同时,显著提高了用户满意度。
  • Ramp 在对评估进行投资后,将其自动收据收集产品的准确率从 35% 提高到了 83%。
  • Harvey 利用评估重构了其 AI 合同审查工具,使产品的内部质量评分几乎翻了一番。

Rippling, Glean, Abridge, ElevenLabs, and Robinhood have also shared how they’ve been using evals to systematically make their AI products better.

Rippling、Glean、Abridge、ElevenLabs 和 Robinhood 也分享了他们如何利用评估(evals)系统性地提升其 AI 产品。

AI products are easy to change but hard to predict. A prompt, model, or code change can improve one behavior while breaking another. Evals turn your judgment about what “good” looks like into repeatable tests your team can run before shipping. Production errors flagged by evals can become additional test cases that improve your AI, creating an advantage that compounds over time.

AI 产品易于修改,却难以预测。对提示词、模型或代码的更改可能在改善某一行为的同时破坏另一行为。评估将你对“良好”标准的判断转化为可重复的测试,团队在发布前即可运行这些测试。由评估标记的生产错误可转化为额外的测试用例,从而改进你的 AI,形成随时间推移不断累积的优势。

And now that AI can produce changes faster than people can review them, evals help teams ship quickly by automatically checking if a product still works as intended.

如今,AI 生成变更的速度快于人工审查的速度,评估通过自动检查产品是否仍按预期工作,帮助团队快速发布。

In our prior post, we laid out the full process for building evals: discover and analyze errors, create customized metrics, and set up a continuous improvement loop. Unfortunately, we’ve found that most teams skip the first stage of error discovery and jump straight to writing metrics.

在我们之前的文章中,我们概述了构建评估的完整流程:发现并分析错误、创建定制化指标,以及建立持续改进循环。不幸的是,我们发现大多数团队跳过了错误发现的第一阶段,直接开始编写指标。

It is easy to see why. Looking through lengthy user session records to find failures feels slow and hard to scale, whereas metrics are concrete and easy to automate. But if you write metrics too early, you end up making too many assumptions about what’s important—and potentially measuring the wrong thing, or the right thing poorly.

这很容易理解。翻阅冗长的用户会话记录以查找失败案例感觉缓慢且难以扩展,而指标是具体的且易于自动化。但是,如果你过早地编写指标,最终会基于过多关于何者重要的假设——并且可能衡量错误的对象,或以不佳的方式衡量正确的对象。

This is why error discovery is the eval equivalent of product discovery. Just as product discovery shows which problems are worth solving, error discovery reveals which AI failures are worth measuring. Without it, teams risk building dashboards around generic metrics that waste time and steer the product toward the wrong outcomes.

这就是为什么错误发现相当于产品发现的评估版本。正如产品发现展示了哪些问题值得解决,错误发现揭示了哪些 AI 失败值得衡量。如果没有它,团队可能会围绕通用指标构建仪表板,这不仅浪费时间,还会引导产品走向错误的结果。

We believe error discovery is so important that if you only have time for one part of the eval process, you should prioritize it.

我们认为错误发现至关重要,以至于如果你只有时间进行评估流程中的某一部分,你应该优先考虑它。

In this post, we’ll show you the three steps to running effective error discovery with a coding agent like Codex or Claude. We’ve used this process with more than 50 companies, and each time the tools uncovered major product flaws that were hurting the customer experience. This entire workflow takes only about 30 minutes to complete once you learn the basics.

在这篇文章中,我们将展示使用如 Codex 或 Claude 等编码代理进行有效错误发现的三个步骤。我们已将该流程应用于 50 多家公司,每次工具都发现了严重影响客户体验的重大产品缺陷。一旦掌握基础知识,整个工作流程仅需约 30 分钟即可完成。

Note: Error discovery has changed a lot since our last post. Our prior post called this process “error analysis.” We now call it “error discovery,” because the goal is to identify failures that are worth measuring. Keep reading to learn about the new approach.

注意:自我们上一篇文章以来,错误发现已发生很大变化。我们之前的文章称此过程为“错误分析”。我们现在称之为“错误发现”,因为其目标是识别值得衡量的失败。继续阅读以了解新方法。

Find the errors that matter to your product

找到对你的产品至关重要的错误

When you’re building an AI product, you need evals to understand where it makes mistakes. But maintaining evals costs time and money; it doesn’t make sense to measure everything. Good error discovery identifies which failures are worth measuring and tracking over time. Even when you know you need the error discovery stage, it can be tempting to start by handing an agent a folder of traces—complete records of user sessions with your AI product—and asking it to find problems. Agents are often faster than humans at spotting obvious issues and can find patterns we might miss. But they are far less reliable when a failure depends on your definition of a good product experience. You can explain those standards to the agent, but you often only discover them in the first place by reviewing the data. This process, where reviewing examples changes your definition of good, is called criteria drift.

在构建 AI 产品时,你需要评估(evals)来了解其出错的位置。但维护评估集既耗时又耗资;对一切进行测量并不合理。良好的错误发现机制能够识别出哪些失败值得衡量并随时间持续追踪。即使你知道需要经历错误发现阶段,也很容易倾向于直接将一个包含轨迹(traces)的文件夹交给智能体——这些轨迹是与你的 AI 产品交互的用户会话的完整记录——并要求它找出问题。智能体通常在发现明显问题上比人类更快,并能找到我们可能忽略的模式。但当失败取决于你对良好产品体验的定义时,它们的可靠性就差得多。你可以向智能体解释这些标准,但你往往只有在审查数据后才会最初发现它们。这种通过审查示例来改变你对“好”的定义的过程,被称为标准漂移(criteria drift)。

For example, below is an interaction from Nurture Boss, an AI leasing assistant we worked with that helps property managers handle conversations with prospective tenants:

例如,以下是 Nurture Boss 的一次交互记录,Nurture Boss 是我们合作的一款 AI 租赁助手,帮助物业经理处理与潜在租户的对话:

Prospect: “This is out of my budget. Thank you for your business.”

潜在客户:“这超出了我的预算。谢谢您的服务。”

Leasing assistant: “You’re welcome! If your situation changes or if you have any other questions in the future, feel free to reach out. Have a great day!”

租赁助手:“不客气!如果您的情况发生变化或将来有任何其他问题,请随时联系我们。祝您愉快!”

The full conversation from this interaction is provided below in the discussion on traces.

此次交互的完整对话如下文在关于轨迹的讨论中提供。

To most agents, this looks like a success; they wouldn’t identify an error in this trace. But the product goal is to facilitate sales, which includes finding the right property matches for prospects’ different needs. In this situation, the agent should have explored cheaper units or other properties owned by the same company and offered the prospect alternatives.

对于大多数智能体来说,这看起来是一次成功;它们不会在这条轨迹中识别出错误。但产品的目标是促进销售,其中包括为潜在客户的不同需求找到合适的房源匹配。在这种情况下,智能体本应探索更便宜的单元或同一公司拥有的其他房产,并向潜在客户推荐替代方案。

If we’d prompted the agent to look for this “objection handling” failure up front when we gave it traces to check, the agent would have caught the error automatically. But we’d only know to add “objection handling” to our criteria after seeing this trace ourselves. This is a classic case of criteria drift—and why it’s critical to take a step back to review failures and define success before dispatching an agent to find errors in a stack of traces.

如果我们在将轨迹交给智能体检查之初就提示它寻找这种“异议处理”方面的失败,智能体就会自动捕捉到该错误。但我们只有在亲自看到这条轨迹后,才知道将“异议处理”加入我们的评估标准。这是一个典型的标准漂移案例——这也解释了为什么在派遣智能体在一堆轨迹中寻找错误之前,退一步回顾失败并定义成功至关重要。

In a broader study, we ran automated eval tools and coding agents against 100 production traces from this same apartment-leasing assistant. We found the following:

在一项更广泛的研究中,我们针对来自同一公寓租赁助手的 100 条生产环境轨迹运行了自动化评估工具和编码智能体。我们发现以下结果:

  • Agents missed issues requiring product judgment and context outside the trace such as Markdown formatting in text messages and missed human handoffs (in addition to objection handling).
  • Agents are good at catching failures that are obvious inside a trace, like answers that are contradicted by tool output.
  • Agents also find issues that humans miss, but they introduce noise by flagging good responses as failures.
  • 智能体遗漏了需要产品判断和上下文信息的问题,这些信息超出了追踪范围,例如文本消息中的 Markdown 格式问题,以及未能识别人工交接(除了异议处理之外)。
  • 智能体擅长捕捉追踪范围内显而易见的失败情况,例如工具输出所反驳的答案。
  • 智能体也能发现人类遗漏的问题,但它们通过将良好的响应标记为失败而引入了噪声。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件