Principles for production AI agents
app.build
Principles for production AI agents
1–10 of 20 posts
Re: Principles for production AI agents
#2Re: Principles for production AI agents
#3Over, and over again my experience building production AI tools/systems has been that evaluations are vital for improving performance.
I've also see a lot of people proposing some variation of "LLM as critic" as a solution to this, but I've never seen empirical evidence that this works. Further more, I've worked with a pretty well respected researcher in this space and in our internal experiment we found that LLMs where not good critics.
Results are always changing, so I'm very open to the possibility that someone has successfully figured out how to use "LLM as critic" but without the foundations of some basic evals to compare by, I remain skeptical.
Re: Principles for production AI agents
#4In DSL style agents, giving LLMs info about what structured inputs are needed to call functions as well as what are outputs expected would probably result in better planning?
Re: Principles for production AI agents
#5Re: Principles for production AI agents
#6Did we just give up on evaluations these days? Over, and over again my experience building production AI tools/systems has been that evaluations are vital for improving performance. I've also see a lot of people proposing some variation of "LLM as critic" as a solution to this, but I've never seen empirical evidence that this works. Further more, I've worked with a pretty well respected researcher in this space and i…
> Further more, I've worked with a pretty well respected researcher in this space and in our internal experiment we found that LLMs where not good critics
This is an idea that seems so obvious in retrospect, after using LLMs and getting so many flattering responses telling us we’re right and complementing our inputs.
For what it’s worth, I’ve heard from some people who said they were getting better results by intentionally using different LLM models for the eval portion. Feels like having a model in the same family evaluate its own output triggers too many false positives.
Re: Principles for production AI agents
#7Did we just give up on evaluations these days? Over, and over again my experience building production AI tools/systems has been that evaluations are vital for improving performance. I've also see a lot of people proposing some variation of "LLM as critic" as a solution to this, but I've never seen empirical evidence that this works. Further more, I've worked with a pretty well respected researcher in this space and i…
Evals are a core part of any up to date LLM team. If some team was just winging it without robust eval practices they’re not to be trusted. > Further more, I've worked with a pretty well respected researcher in this space and in our internal experiment we found that LLMs where not good critics This is an idea that seems so obvious in retrospect, after using LLMs and getting so many flattering responses telling us we’…
Now granted, you could say it was “flattering that instruction”, but it sure didn’t flatter me. It absolutely eviscerated my code, calling out numerous security issues (which were real), all manner of code smells and bad architectural decisions, and ended by saying that the codebase appeared to have been thrown together in a rush with no mind toward future maintenance (which was… half true… maybe more true than I’d like to admit).
All this to say that it is far from obvious that LLMs are intrinsically bad critics.
Re: Principles for production AI agents
#8Re: Principles for production AI agents
#9Earlier quoted context omitted.
Evals are a core part of any up to date LLM team. If some team was just winging it without robust eval practices they’re not to be trusted. > Further more, I've worked with a pretty well respected researcher in this space and in our internal experiment we found that LLMs where not good critics This is an idea that seems so obvious in retrospect, after using LLMs and getting so many flattering responses telling us we’…
I once asked Claude Code (Opus 4) to review a codebase I’d built, and threw in at the end of my prompt something like “No need to be nice about it.” Now granted, you could say it was “flattering that instruction”, but it sure didn’t flatter me. It absolutely eviscerated my code, calling out numerous security issues (which were real), all manner of code smells and bad architectural decisions, and ended by saying that…
Re: Principles for production AI agents
#10Earlier quoted context omitted.
Evals are a core part of any up to date LLM team. If some team was just winging it without robust eval practices they’re not to be trusted. > Further more, I've worked with a pretty well respected researcher in this space and in our internal experiment we found that LLMs where not good critics This is an idea that seems so obvious in retrospect, after using LLMs and getting so many flattering responses telling us we’…
I once asked Claude Code (Opus 4) to review a codebase I’d built, and threw in at the end of my prompt something like “No need to be nice about it.” Now granted, you could say it was “flattering that instruction”, but it sure didn’t flatter me. It absolutely eviscerated my code, calling out numerous security issues (which were real), all manner of code smells and bad architectural decisions, and ended by saying that…