Better HN
topnewbestaskshowjobs
Log inSign up

SleepyWalrus

2 karma · joined Sep 30, 2025 (1y ago) · 2 submissions

Submissions

1.

Show HN: Reduce time debugging AI slop in prod(github.com ↗)

1 points · by SleepyWalrus · 1y ago · discuss

comment 1y ago · link · parent

How are you approaching this? I assume it's some combo of unit tests and integration tests where you are making sure the response is generally consistent across multiple runs of the same prompt - or if you need to change the prompt to make sure the result was the same as before.

From what i've seen using LLMs, your best bet is to have evals for 100ish (if possible) examples with know ground truths. This way you will statistically get results of how accurate your LLM prompt is working. Having more examples will help increase the precision when hallucinations come in.

Unfortunately things get a little harder with qualitative responses, where you are expecting certain words or sentences in the response. Your best bet here is to also have 100 examples of what you expect the response would be and a form of semantic similarity comparison between the response and your ground truth.