🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsSetting up live captions stuck in Windows 11(14.09.2026 um 16:31 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsWindows 11's latest update broke my speakers, and I'm not alone(14.09.2026 um 18:54 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsSetting up live captions stuck in Windows 11(14.09.2026 um 16:31 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsWindows 11's latest update broke my speakers, and I'm not alone(14.09.2026 um 18:54 Uhr)

🔧 Programmierung 🕛 vor 3 Monaten 4 Min Lesezeit
0

LLM Evaluation in CI: Stop Manual Testing Before It Costs You

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht




LLM Evaluation in CI: Stop Manual Testing Before It Costs You



You ship a prompt change to production. Two hours later, a customer complains your LLM is returning hallucinated data. You rollback. You lost an hour of revenue and some user trust.



This happens because you tested the happy path, not the edge cases. LLM systems are probabilistic — the same input doesn't always produce the same output quality.



The enterprise solution is Braintrust ($249/mo), LangSmith ($99/mo), or Arize. If you're indie, bootstrapped, or pre-PMF, those budgets simply don't exist.






The Core Idea: Eval-as-Code



Instead of vibes-based testing, you define quality as a rubric with concrete attributes:





  • Correctness (0–10): Is the answer factually right?


  • Conciseness (0–10): Does it avoid unnecessary padding?


  • Hallucination risk (0–10): Does it cite things it can't know?


  • Tone (0–10): Does it match expected register?


  • Usefulness (0–10): Would a real user find this helpful?



A cheap judge model (GPT-4o-mini at ~$0.0001/call) scores each output against your rubric. You run 50 test cases per eval. Total cost: about £0.20 per full run.






Building This in GitHub Actions



Here's the minimal structure:




CODE
name: LLM Eval
on: [pull_request]

jobs:
eval:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run evals
run: python run_evals.py
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Check threshold
run: python check_threshold.py --min-score 7.5






The run_evals.py script:




  1. Loads your golden dataset (JSON file of input/expected-output pairs)

  2. Runs your LLM system on each input

  3. Sends (input, expected, actual) to GPT-4o-mini with your rubric

  4. Aggregates scores by attribute

  5. Writes results to eval_results.json



If aggregate score drops below your threshold, check_threshold.py exits with code 1 — the PR fails.






A Real Example From Production



I changed a classification system prompt to improve response formatting. The change looked solid in manual testing on 5 examples. But I accidentally dropped a critical piece of context the model needed for correct classification.



Without evals: ships to users. Angry support tickets. Rollback. Lost trust.



With evals: CI caught it in 4 minutes. PR fails. I fix the prompt. Evals pass. Ship confidently.






Golden Datasets: The Hard Part



The hardest part is building your test cases. The key insight: start with failures, not successes.



Every time your LLM system makes a mistake:




  1. Save the input

  2. Write down what the correct output should have been

  3. Add it to your golden dataset



After 2–3 weeks of normal usage, you'll have 30–50 meaningful test cases that represent real failure modes — far more valuable than synthetic test cases you invented upfront.






Multi-Model Comparison



Before committing to an expensive model, run your eval suite across providers:




CODE
models = ["gpt-4o-mini", "gpt-4o", "claude-3-5-haiku", "gemini-flash-1.5"]
results = {}
for model in models:
results[model] = run_eval_suite(model, golden_dataset)

# Sort by (score / cost_per_1k_tokens) to find optimal tradeoff






This stops you from paying for GPT-4o when Claude Haiku scores 92% as well at 20% of the cost.






Cost Optimization





  • Batch your calls: OpenAI batch API gives 50% discount on async evals


  • Cache responses: Hash (model + prompt + input) → cache hit avoids re-scoring


  • Coarse-to-fine: Use a 2-stage system — cheap model filters obvious passes, expensive model only sees borderline cases


  • Weekly CI only: Run full suite on PRs to main, not every commit



A well-optimized setup runs 100 eval cases for under £0.10.






What I've Packaged Up



I've turned this into a complete ready-to-use system in The Indie Hacker's LLM Eval Playbook:





  • 6 golden dataset templates for common LLM tasks (classification, summarization, retrieval, generation, code review, reasoning)


  • Complete rubric scoring system in Python (copy-paste ready)


  • Multi-model comparison script with cost-efficiency ranking


  • GitHub Actions workflow — drop it in your repo and it works


  • Cost optimization guide with benchmarks



£29 one-time. One avoided production incident pays for it 10× over.



If you have questions about implementing eval-as-code for your specific use case, drop them in the comments — happy to help.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
The Gemini desktop app is now available for Windows
1 Quelle
Setting up live captions stuck in Windows 11
1 Quelle
Burn Out, Or Fade Away
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten LLM Evaluation in CI: Stop Manual Testing Before It Costs You

Thematisch verwandte Begriffe: Evaluation, Stop, Manual, Testing · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...