<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-evaluate-llms-before-production-ps4g4zhbm" -->

---
title: How to evaluate LLMs before production | daily.dev
description: GitHub engineers share practical lessons learned evaluating an LLM system for reducing false positives in secret scanning while preserving recall for security...
canonical: https://daily.dev/posts/how-to-evaluate-llms-before-production-ps4g4zhbm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to evaluate LLMs before production | daily.dev
og:description: GitHub engineers share practical lessons learned evaluating an LLM system for reducing false positives in secret scanning while preserving recall for security...
og:url: https://daily.dev/posts/how-to-evaluate-llms-before-production-ps4g4zhbm
og:image: https://api.daily.dev/og/posts/ps4G4zhBm.png
og:image:alt: How to evaluate LLMs before production
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to evaluate LLMs before production

**[GitHub Blog](https://daily.dev/sources/ghblog)** · 13 min read · 2 upvotes · 0 comments

## Summary

GitHub engineers share practical lessons learned evaluating an LLM system for reducing false positives in secret scanning while preserving recall for security safety. Key practices include anchoring evaluation to a product decision rather than model tweaks, treating offline evaluation like integration testing with versioned prompts/models, changing one variable at a time, keeping offline evaluation close to production conditions, treating production labels as noisy signals rather than ground truth, using synthetic data to fill coverage gaps, performing error analysis to categorize failure sources, and using LLM-as-judge to triage human review. The team achieved a 95% reduction in false positives while keeping recall within a defined guardrail on their offline dataset.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.blog/ai-and-ml/llms/how-to-evaluate-llms-before-production>

## Questions this post answers

### How much did GitHub reduce false positives in secret scanning using an LLM-based evaluation approach?

GitHub's applied science team reached a 95% reduction in false positives on their evaluated offline dataset while keeping recall within a defined safety guardrail. This was achieved through repeated offline evaluation, versioned prompt and model comparisons, and targeted error analysis before moving to online experimentation with clearly understood risks and guardrails.

_daily.dev surfaces evaluation writeups like this for teams tuning precision and recall tradeoffs in LLM security tools._

### Why shouldn't I trust production labels as ground truth when evaluating an LLM classification system?

Production labels often capture workflow outcomes rather than reliable ground truth. In secret scanning, a dismissed alert might mean the credential was rotated, the risk was accepted, the alert was cleared to unblock work, or it was genuinely a false positive—all of which can look identical in product data despite representing different underlying truths, so ambiguous subsets need manual review.

_engineers debating label quality issues can find similar evaluation pitfalls curated on daily.dev._

### How should I isolate variables when testing a new prompt and a new model for an LLM system at the same time?

Change one major variable at a time and compare each run against a known baseline, evaluating a prompt revision separately from a model upgrade before testing them together. Since even small prompt changes can shift model behavior and model upgrades independently affect cost, latency, and consistency, combining both in one experiment makes it impossible to attribute the result to the correct cause.

_teams designing rigorous LLM experiments can track methodology discussions like this on daily.dev._

## Similar posts on daily.dev

- [AI Evaluation Engineering: Build a Production-Grade LLM Evaluation Platform from Scratch \[Full Handbook\]](https://daily.dev/posts/ai-evaluation-engineering-build-a-production-grade-llm-evaluation-platform-from-scratch-full-handb-ju9v0rogq) · freeCodeCamp · 6 upvotes · 0 comments
- [Integrating LLM Evaluations into Your CI Pipeline: Best Practices for AI Teams](https://daily.dev/posts/integrating-llm-evaluations-into-your-ci-pipeline-best-practices-for-ai-teams-kg95szbwx) · PromptLayer Blog · 0 upvotes · 0 comments
- [LLMs as a Judge: How to Know if Your LLM is Healthy](https://daily.dev/posts/llms-as-a-judge-how-to-know-if-your-llm-is-healthy-iwlhxeaqe) · ByteByteGo · 1 upvotes · 0 comments
- [Beyond LLM-as-a-judge: Establishing LLM evaluations as a foundation for trustworthy agentic AI systems](https://daily.dev/posts/beyond-llm-as-a-judge-establishing-llm-evaluations-as-a-foundation-for-trustworthy-agentic-ai-syste-m8kymtr9x) · Dynatrace · 1 upvotes · 0 comments
- [LLM Evaluation Frameworks Compared: How to Actually Measure What Your Model Does](https://daily.dev/posts/llm-evaluation-frameworks-compared-how-to-actually-measure-what-your-model-does-6v7n6pdrl) · Machine Learning Mastery · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#llm](https://daily.dev/tags/llm), [#github](https://daily.dev/tags/github), [#appsec](https://daily.dev/tags/appsec)

[View this post on daily.dev](https://daily.dev/posts/how-to-evaluate-llms-before-production-ps4g4zhbm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to evaluate LLMs before production","url":"https://daily.dev/posts/how-to-evaluate-llms-before-production-ps4g4zhbm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-evaluate-llms-before-production-ps4g4zhbm"},"datePublished":"2026-08-25T21:39:12.592Z","dateModified":"2026-09-13T18:45:20.790Z","description":"GitHub engineers share practical lessons learned evaluating an LLM system for reducing false positives in secret scanning while preserving recall for security...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e51996b5cdaef85c495a97a7f36f2de7?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e51996b5cdaef85c495a97a7f36f2de7?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"GitHub Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"GitHub Blog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/106cf162b88840808484d4b5429b59b1","url":"https://daily.dev/sources/ghblog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-evaluate-llms-before-production-ps4g4zhbm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,llm,github,appsec","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"GitHub Blog","item":"https://daily.dev/sources/ghblog"},{"@type":"ListItem","position":3,"name":"How to evaluate LLMs before production"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-evaluate-llms-before-production-ps4g4zhbm#faq","mainEntity":[{"@type":"Question","name":"How much did GitHub reduce false positives in secret scanning using an LLM-based evaluation approach?","acceptedAnswer":{"@type":"Answer","text":"GitHub's applied science team reached a 95% reduction in false positives on their evaluated offline dataset while keeping recall within a defined safety guardrail. This was achieved through repeated offline evaluation, versioned prompt and model comparisons, and targeted error analysis before moving to online experimentation with clearly understood risks and guardrails. daily.dev surfaces evaluation writeups like this for teams tuning precision and recall tradeoffs in LLM security tools."}},{"@type":"Question","name":"Why shouldn't I trust production labels as ground truth when evaluating an LLM classification system?","acceptedAnswer":{"@type":"Answer","text":"Production labels often capture workflow outcomes rather than reliable ground truth. In secret scanning, a dismissed alert might mean the credential was rotated, the risk was accepted, the alert was cleared to unblock work, or it was genuinely a false positive—all of which can look identical in product data despite representing different underlying truths, so ambiguous subsets need manual review. engineers debating label quality issues can find similar evaluation pitfalls curated on daily.dev."}},{"@type":"Question","name":"How should I isolate variables when testing a new prompt and a new model for an LLM system at the same time?","acceptedAnswer":{"@type":"Answer","text":"Change one major variable at a time and compare each run against a known baseline, evaluating a prompt revision separately from a model upgrade before testing them together. Since even small prompt changes can shift model behavior and model upgrades independently affect cost, latency, and consistency, combining both in one experiment makes it impossible to attribute the result to the correct cause. teams designing rigorous LLM experiments can track methodology discussions like this on daily.dev."}}]}
```

