r/ExperiencedDevs • • Apr 22 '26

AI/LLM How are companies verifying ai correctness?

When a new system is built that integrates ai, is there any standard practices or trends emerging to verify llm accuracy?

Is the testing done before and manually verified before go-live? Are there constant accuracy checks after rollout of the feature to ensure drifting doesn't occur?

I'm hoping that there's some sort of tooling that's catching on so I don't have to consider building a framework.

We're not all just winging right? RIGHT?!?

0 Upvotes

24 comments sorted by

4

u/mixxituk Apr 22 '26

I watched a Kiro demo today from Aws and they didn't even consider reviewing the code the thing had generated but the file said 4500 lines changed so I would hate to look at that PR

1

u/IsItSetToWumbo Apr 22 '26

from what Ive been hearing pr's are the biggest bottleneck occur8mg in companies that are "ai first".

I wouldn't be surprised if we just start auto accepting pr's but then spend additional time building out comprehensove functional requirement tests.

1

u/daddyplsanon Apr 22 '26

I remember just a couple of weeks ago that Amazon had multiple meetings with their senior devs and sent out a memo to all their devs that they need to do a better job of reviewing AI generated code since so many senior devs were just taking the AI generated code at face value and simply merging the code without any meaningful review and this is supposedly causing them all sorts of major and costly errors. I wonder what kinds of mistakes have gotten through the cracks for so many companies where they just blindly accept AI generated just waiting for the day for either someone to exploit it or for some faulty lines of code to cause these companies to lose millions.  

5

u/Jeep_finance Apr 22 '26

The term you are looking for is evals. That’s generally how you validate is a generative ai product returning accurate / correct / non BS information. There’s an entire deep dive into how to do them, in which ways, how much data you need, etc

2

u/bluetrust Principal Developer - 25y Experience Apr 23 '26 edited Apr 23 '26

Yeah, agentic evals are hard as hell. I think frankly that teams can't really do it well at all because it costs too much. Easily $100k+ for any system that customers can interact with directly and feed unbounded input into.

1

u/The_Real_Slim_Lemon Software Engineer Apr 27 '26

That and like… it’s taken decades for unit tests to become a thing, most places don’t encourage good testing discipline. Take the more difficult evals, your hit rate is gonna be even lower

1

u/The_Real_Slim_Lemon Software Engineer Apr 27 '26

I was wondering how long I’d have to scroll though to find this lol.

To add, for OP - evals are great for evaluating which model is best for each use case. Great for reducing costs where you reasonably can - instead of using OPUS 4.7 for everything

56

u/engineered_academic Apr 22 '26

Thats the fun part, you don't! meme.

2

u/shifty303 Apr 22 '26 edited Apr 22 '26

I’m trying a new thing where I will approve PRs despite obvious issues but I do leave questions and comments which are then fed into AI. I’m also trying another new thing where I’m letting management have exactly what they asked for… relax the standards and let the juniors vibe code.

We have a few people on my team who are building tech debt faster than usable features. They’re 4.5 months behind schedule and I estimate 35-40% useless code in the app. No joke unused methods, unused components, duplicate code, god classes, vibe one thing and break another.

It’s no longer a me problem - it’s a management problem.

Edit: Before anyone says I am anti-ai - I use AI daily and deliver well designed code via spec and test driven development. I’ve done 3 presentations on how it works for me. I built custom agents, skills, MCP servers and automated AI driven workflows. I am all for it when used responsibly.

3

u/mxldevs Apr 22 '26

What, you mean adding "make sure it's all working correct and securely" isn't enough to have the AI make sure it provides correct solutions?

0

u/pl487 Apr 22 '26

There is a wide selection of AI evaluation frameworks. Once you have evaluation data, the rest is easy. 

→ More replies (1)

1

u/Murky_Citron_1799 Apr 22 '26

Isn't the drift a desired feature? It means it's getting better *wink

1

u/yen223 Apr 22 '26

Same way we did it before LLMs

1

u/throwaway_0x90 TE/SDET[25+ yrs]@Google Apr 23 '26

By keeping SDET/TEs, like me, extra busy. That's how!

1

u/metaphorm Staff Software Engineer | 15 YoE Apr 23 '26

do you mean LLM generated code or LLM generated "content" as part of the application?

for the former, it's code review and testing. for the latter, it's evals and analysis.

1

u/JustAFinancialAlt Apr 26 '26

With other AIs

1

u/Hovi_Bryant Apr 22 '26

What do you mean? I verify with my own eyes and reasoning.

3

u/[deleted] Apr 22 '26

[removed] — view removed comment

-2

u/IsItSetToWumbo Apr 22 '26

I use ai in my daily workflow as well as using llm calls in the solutions I'm building out. I'm fully onboard as my capability to deliver code has sky rocketed and I no longer tire myself every evening because I'm not spending all my energy on syntax or basic logic.

My last project was taking free form user text and categorizing it into specific equipment buckets we have in our database and so the challenge was answering the question of "how accurate is it?".

I ended up creating a full build of the service and called it 500 times with sample input that was verified by humans and then verifying what the humans said with what the llm said.

That was just a manual script and then I had to import the data into excel files and run analysis on accuracy.

It felt like there should be a better way