Maggie Konstanty 在 MLOps.community 谈 LLM agent 评估的真实战场——为什么团队总是先发布再补 eval、
Maggie Konstanty 在 MLOps.community 谈 LLM agent 评估的真实战场——为什么团队总是先发布再补 eval、 为什么 pre-prod 和 production 是"两种动物"、以及为什么所有 vendor 工具都让她最终选择自己造。 整期访谈最反直觉的 takeaway:evals 本身不难,难的是让团队对齐"什么叫…
团队总是先把产品上线、再来找她"can we set up some evals"。她的回答:evals 应该从"产品的想法"那一刻就开始。
预生产用模拟 persona、上线后用真实用户。后者会要求你"completely twist your evils"——同一套评估系统继续用,必出事。
"I'm a detective." 真用户很少抱怨,他们直接 drop off。所以最值钱的工作是钻进 trace 里、踩进用户脑子里、找出隐藏的 failure mode。
0.6 的"hallucination 评分"没法用,Excel 开 coding 也不正常。她最后选择自己造工具——并对所有"outsource the labeling"的卖法说不。
为不同行业的 LLM agent 团队设计、训练和部署 evaluator——目前同时在做食品订餐 agent 和汽车经销商 agent 两类产品。
"Evils themselves are not very hard." ——难的不是写 eval,而是和团队对齐、保持迭代节奏,并把 eval 真正变成开发 DNA。
本期是在一场 evals workshop 后的对话,所以她全程在拆"workshop 学员最常踩的坑"——非常实战。
Demetrios Brinkmann,MLOps.community 创始人。他不停地在替听众问那些"我有点羞于问"的傻问题,效果很好。
"basically people ship their product. Yeah. And then they come to you and they say, Hey, uh, can we set up some evals?"
"That's my favorite phrase. Uh, okay, Maggie, uh, we have this, let's run evals."
她的反答案:evals 应该是开发团队里"a constant"——从产品想法萌芽那一刻就启动,而不是等产品在生产里翻车之后才被想起来。
不是为了拿到漂亮分数,而是 "for you not to get like burnt"——避免你在产品上线后觉得羞愧。
"to actually deliver something of quality"——持续验证产品在真实流量里有没有兑现质量承诺。
"Burnt. I mean, you don't, you know, uh, you're not ashamed of your product what is in production."
"You ship more features than you actually evaluated."
她反复强调,pre-production 和 production 的 eval 根本不是同一件事:
Pre-production:你模拟出 persona、自己造测试场景。那是"你以为用户会怎么用"。
Production:真实用户带来完全不同的 failure mode,你必须 "completely twist your evils"。
直接拿 pre-prod 的 eval 套到 production 上,是她见过最常见的错。
"I want to find Aida size 37."
结构化、清晰、品牌+尺码——开发者写 test case 时脑子里的"标准用户"。
"I want to have shoes like LeBron James."
模糊、靠类比、需要 agent 反查 LeBron 代言→Nike→某款型号。完全不同的能力栈。
"you have to completely twist your evils from, you know, test cases that you simulated yourself to something that user created. And then you switch from different failure modes to different failure mode."
她在团队里的具体做法:
1. 列 persona:power user / lazy user / busy professional / undecided。
2. 列场景:作为产品作者,列出 15-20 个该 persona "可能想做"的事。
3. 用 LLM 模拟 persona:让模型扮演这个用户去敲 endpoint。
4. 跑 1 / 5 / 10 / 100 次:看输出的方差——"never the same".
关键点:跑一次没意义。LLM agent "always fails in a different place"。
"my agent is accurate 95% of time. What does it mean?"
"Yeah, I have no idea." —— Demetrios 接得很诚实。
Accuracy 是个平均值。"actually measures the average of the performance. That doesn't really give you a quality."
TPR / TNR——human label vs LLM label,"more tangible"。
找 failure mode。一个 95% 准确的 agent,可能在那 5% 里全是同一种灾难性 failure。
"after a while when you're measuring something and it's, you know, reaching almost a hundred percent all the time, it may be try to focus on something else."
"when my user asks for a vegetarian pizza recommendation, and you know, we always give five recommendations and one of them is pepperoni. That's the real use case."
accuracy 显示
95%
看上去没问题
真实体验
致命
素食用户看到 pepperoni
真正要测的
这种
单点 failure mode
"how the user would want to interact"——"我们觉得用户会想被惊喜一下"。
听起来像"为用户着想"。
"How do you answer a question, surprise me, and then suddenly people ask surprise me."
突然每个人都在按这个按钮,eval 噪音爆炸。
"how do you actually come up with something that might be useful but makes a bit of more noise for you?"
不是技术目标,是产品目标。
Persona 来自这里,不是凭空造的。
她原话:"the most important one"。
最后才落到指标——而不是反过来。
"Nobody knew what the satisfied user is, so we came up with it."
"would you apply the same evaluators, the same metrics to a use case about, you know, uh, card dealers?"
他们尝试做 user satisfaction 指标,得到的分布很反直觉:
~15% 明显满意(明确正向反馈)
~15% 明显不满意(投诉、负面反馈)
剩下的 ~70%:partially satisfied 或 dropped off——什么也没说就走了
甚至有人"end up buying everything"但全程很 frustrated——这种轨迹是最难解读的。
Eval 的真实战场就是这中间这一大片"沉默的不满"。
"That's actually fun part about evils and I don't know, I love this part. 'cause then you, you're a detective. Yeah, I'm a detective. I'm like, okay, imagine I'm a user that comes to this platform and I want to, you know, literally step into someone's brain"
"There's not a lot of users that are gonna tell you I don't like that." —— 真用户基本不抱怨,只 drop off。
不是 dashboard 上的数字,而是:找出隐藏 failure mode → 写新 evaluator → 改 prompt → 看是否消失。
她日常的 6 步循环——cumbersome、time-consuming,但没有捷径:
1. Read traces turn by turn(她说大家都不爱做这一步,因为"boring")
2. Spot failure mode —— 不是单条错,是同类错
3. Step into user's brain —— "imagine I'm a user that comes to this platform"
4. Write new evaluator —— 把这个 failure 变成可自动检测
5. Tweak prompt / orchestration —— 修复
6. Ship → see new failures —— 然后从第 1 步重新开始
"could easily catch a lot of frustrated users."
"Because I have capsular code. I'm not gonna rewrite myself."
结论:a lot of false positives.
"as soon as I start saying you, it. I would figure that as a very high frustration margin."
"somebody might just be angry 'cause they had a bad day."
结论:信号有,但不能孤立用——人和 bot 说话本来就更随便。
她的判断:这种"通用 frustration 指标"不存在。每个产品的 frustration 信号都得自己挖。
"issue that is caused by us more or less. So it's a comprehension between, you know, how the agent work and how the developer thought it would."
开发者脑子里的产品行为 ≠ agent 实际拿到的指令。
prompt 里写"be helpful in this situation"——但"helpful"在 customer service vs food ordering 里完全是两件事。
不是去训练模型,是把 prompt 写得更具体——把"helpful"拆解成具体动作。
怪 LLM 之前先怪自己。很多 failure mode 是 spec 没写清楚带来的。
主持人提了个尖锐的问题——
"Don't you feel like you're playing Whack-a-Mole, though? You changed the prompt a little bit and Yeah. Oh, cool. It's evaluations are better over here, but they're worse over here."
她的回答用了一个意外的比喻:
"I think it's a little bit of dance, right? You're dancing around trying to change the prompt, and either you do it without choreography without music, you know, completely blind, uh, or you do it with evils."
Eval 不消除 trade-off,而是给你 choreography。 没有它,每次改 prompt 都是"闭眼跳舞"。
"there's always something broken... it tells me that it's a hundred percent correct, I'm like, here this's bullshit. So I hope I won't, 'cause I, I'm, I'm not, you know, that's, that's not trustworthy metric for me."
95% accuracy
🤔
"that's really high"——也已经可疑
100% accuracy
🚨
"bullshit"——一定是测的不对
真正该问
?
这套指标到底测的是不是我关心的
"we did unit tests, we don't have to do evals... we don't measure actually the trustworthiness of our LLM... The semantic matter in this is not measured for unit tests."
"we put so much time into it" → 三周后她说"我们再做一次"→ 团队反应:"what?"
"Hey, we did that already. Isn't it fixed?"——把 eval 看成一次性 cleanup。
"And I think there's not really, uh, a DNA of evils yet."
"a constant dance of like trying to figure out which metric, which evaluator is better"——和迭代周期同频。
"And it should be part of the DNA. So it should be a constant dance"
"first you had multi-agent, we jumped on that like, oh, multi-agent, so crazy. You're building something so nice and then we suddenly like, oh, shh. It doesn't work."
Start slow → 把"和业务指标对齐的 core evaluator"做扎实 → 再叠 AB testing、DSPy 优化、自动 simulation。
一上来就搬出 "20 different evaluators"——她直接说这是 "instruction to fail"。
她对当前 LLM eval 工具市场非常直接——大多数工具卡在哪:
0 到 1 的分数:0.6 hallucination 周一早上看到——"give me pass or fail."
导出 >1k traces 就慢:"I have to do things in batches. it takes hours."
Multi-turn 支持差:对话型 agent 几乎无解
UI builder 比写代码还难:她试了一整天 Arize 的 UI evaluator,最后放弃
"I call them friendly tools 'cause they're not really useful yet for me, but they're friendly 'cause they help me with my work."
"even in the very famous courses that are promoted on LinkedIn, we do exo coding and open coding and Excel."
她看到课程里用 Excel 做 open coding 的反应:"this is not normal."
"mature product teams are, in my opinion, are gonna usually go for custom solution 'cause evals themselves are not very hard."
"another thing, outsourcing the labeling. No, no, it shouldn't happen. Like, why would I, you know, why would I leave the labeling part first? That's the greatest opportunity for you to learn what's happening."
第一:标 label 是你了解 user 的最快方式——这是数据,不是 chore。
第二:你的产品好不好只有你定义。让别人按通用 rubric 标,相当于让别人替你判断"好"。
"Evils themselves are not very hard. Like if you think about the process... simple tasks that you have to do, but you have to structure them in a good way. You have to be consistent, you have to iterate... and then you have to have your own strategy. And I think the alignment between team members and alignment on what matters for your product is the part that is the trickiest part."
容易
写一个 evaluator
跑一次 batch
难
坚持迭代
持续做错误分析
最难
让团队对齐"什么叫好"
—— 不可被工具替代
"Evil start. Before you ship the agent or before you ship the product."
"You have to completely twist your evils... switch from different failure modes to different failure mode."
"There's not a lot of users that are gonna tell you I don't like that."
"It's a little bit of dance... either you do it without choreography without music, completely blind, or you do it with evils."
"It tells me that it's a hundred percent correct, I'm like, here this's bullshit."
"Mature product teams are, in my opinion, are gonna usually go for custom solution, 'cause evals themselves are not very hard."
"I'm a detective."
—— Maggie Konstanty,关于做 evals 这件事最准确的自我描述
PodDeck · MLOps.community · 9EjWR3QpJYk