LLM Evaluation
Prompt Ablation: Deleting Instructions One at a Time to Find Which Ones Actually Work
Production prompts accumulate rules nobody can justify. A paired, noise-aware ablation loop shows which clauses are load-bearing, which are dead, and which are quietly hurting.
Break the Tools on Purpose: Fault-Injection Tests That Catch Agents Claiming Work They Didn't Do
Happy-path agent tests miss the costly failure: a confident report of an action that failed or ran twice. Inject tool faults on a fixed schedule, record real side effects in a ledger, and check the agent's claims against it.
Pick an Abstain Threshold From a Risk–Coverage Curve: Error Budgets for LLM Features That Can Say "Not Sure"
Stop hardcoding confidence < 0.8. Measure coverage against selective risk on labeled data, choose the threshold on an upper confidence bound, confirm it on a held-out split, and re-fit it whenever the model or prompt changes.
Cluster Production Queries Before You Write Evals: Finding the Intents Your Test Set Is Missing
Embed a redacted sample of real queries, cluster them with HDBSCAN, and map your eval cases onto the same clusters to see which user intents your test set never checks.
Five Copies of the Same Paragraph: Deduplicating and Diversifying Retrieved Context for RAG
Top-k similarity can fill your context with near-identical chunks and push out the one that holds the exception. Hashing, maximal marginal relevance and per-source caps fix it, if you measure fact coverage rather than relevance alone.
Tier Your Evals Like Your Tests: Smoke on Every PR, Full Suite Nightly, Deep Runs Before Release
A single eval script that takes twenty minutes stops getting run. Split evals into tiers with their own triggers and budgets so every prompt change still gets a signal.