aicoolies logo

Continuous LLM Eval CI Stack: Regression Gates for Every Release

varies

A continuous evaluation workflow that combines Promptfoo matrices, DeepEval assertions, RAGAS retrieval metrics, Langfuse production traces, and garak security probes across pull requests and releases.

curated by Raşit Akyol July 13, 2026 updated August 26, 2026

Verdict

The Continuous LLM Eval CI Stack embeds comprehensive model evaluation, regression testing, and vulnerability scanning directly into automated CI/CD pipelines. Promptfoo automates prompt variation testing and output comparisons against deterministic assertion matrices. DeepEval executes production-grade semantic assertions and unit tests on response relevance and hallucination rates. Ragas evaluates retrieval-augmented generation pipelines, measuring context precision and faithfulness. Garak runs automated adversarial probes to detect prompt injections, toxicity, and jailbreaks before deployment. Finally, Langfuse aggregates test scores, traces latency profiles, and monitors evaluation trends across builds, ensuring every model or prompt update meets established quality, safety, and performance standards.

PromptfooProvider and prompt regression matrix
promptfoo is open-source and free to run locally under the MIT license for unlimited evaluations and up to 10,000 red-team probes per month. Enterprise SaaS and On-Premise editions feature custom pricing with team collaboration, RBAC, and dedicated security monitoring.
DeepEvalCode-native semantic and deterministic assertions
Open-source core (Apache-2.0) with $0 local Pytest evaluations. Confident AI Cloud Free includes 2 seats, 5 test runs/wk, and 5 GB-mo trace data. Starter is $99-$200/mo for automated CI/CD testing ($1/GB-mo trace overage). Pro/Team is $499-$2,000/mo with 75 GB trace data, Git prompt versioning, RBAC, and SOC 2 Type II. Enterprise offers custom pricing for VPC/on-premise deployment, DeepTeam AI Red Teaming, production Guardrails, HIPAA compliance, and 24/7 SLA.
RAGASRAG-specific retrieval and faithfulness metrics
Open-source core (Apache-2.0) with $0 self-hosted local evaluation via `pip install ragas` (LLM judge token costs paid directly to model providers). Exploding Gradients offers Ragas Cloud with a Free tier ($0/mo for basic evaluation runs), Team / Pro tier ($49–$99/mo for collaborative dataset management, regression tracking, and continuous CI/CD integration), and Enterprise custom plans for private VPC deployment, custom SLAs, and enterprise security.
LangfuseTrace-linked datasets and production canaries
Langfuse is open-source under MIT for self-hosting with full features. Langfuse Cloud provides a free Hobby tier (50k units/month, 2 users), a Core plan at $29/month (100k units, unlimited users), a Pro plan at $199/month (3-year retention, SSO, SOC2), and an Enterprise plan at $2,499/month with custom SLAs.
garakPre-production vulnerability probes
garak is a 100% open-source LLM vulnerability scanner developed by NVIDIA and the open-source community, released under the Apache 2.0 license. It is completely free to use and automate in CI/CD pipelines.

Continuous evaluation architecture

This stack turns evaluation into a release workflow rather than a one-time benchmark. Promptfoo runs prompt and provider matrices, DeepEval expresses code-native assertions, RAGAS measures retrieval behavior where context is involved, Langfuse links offline cases to production traces, and garak adds a focused security probe stage. The pipeline separates fast pull-request checks from larger scheduled and pre-release suites so teams get useful feedback without making every code change wait for the full test catalog.

Use it for applications whose prompts, models, retrieval settings, or tool behavior change often enough that manual spot checks no longer protect releases. Define an evaluation contract before choosing thresholds: critical business rules, semantic quality dimensions, RAG metrics, safety cases, cost limits, and latency budgets. A green result means the candidate met that documented contract on the tested slices; it does not prove universal model quality or eliminate the need for production monitoring.

Build the regression matrix

Promptfoo is the matrix layer for testing prompts, models, providers, variables, and assertions from version-controlled configuration. Keep the core suite small and deterministic enough to run on every pull request, then add representative semantic graders where exact checks cannot express the requirement. Pin evaluation inputs and record provider and model identifiers so a remote default change is visible. Compare candidate results with a stored baseline instead of relying only on absolute pass rates.

DeepEval complements the matrix with Python and pytest-friendly metrics, custom rubrics, conversational tests, and application-specific validators. Use deterministic assertions for schemas, citations, prohibited actions, required tool events, and business invariants; reserve LLM judges for semantic qualities that have been calibrated against human labels. A failing judge should retain the input, output, rubric, judge configuration, and reason so an engineer can reproduce and challenge the decision.

Add RAG and production evidence

RAGAS supplies context precision, context recall, faithfulness, and answer relevancy for retrieval-backed paths. Run those metrics only when the test case includes the evidence needed to interpret them, and keep difficult retrieval negatives alongside ordinary questions. Dataset versions should track source snapshots, chunking, embedding, and reranker settings because the same prompt can regress when the corpus or retrieval layer changes.

Langfuse connects production traces to the offline suite. Sample incidents, low-confidence outputs, costly traces, and representative successful runs into reviewed datasets, then canary a release against real traffic slices before broad rollout. Link scores to prompt, model, retriever, and application versions. Production feedback should improve the regression suite, while privacy and retention rules limit which prompts, contexts, and outputs are safe to keep.

Run security and release gates

garak adds a focused pre-production probe stage for jailbreak, prompt-injection, disclosure, and other model-facing weaknesses relevant to the application. Run a narrow trusted subset on release candidates and a broader campaign on a schedule, recording scanner configuration and target version. Triage and reproduce severe findings before treating them as confirmed; scanner errors and provider refusals should not silently reduce coverage or produce a misleading pass.

Structure CI in tiers: lint and deterministic checks on every commit, Promptfoo and DeepEval regression tests on pull requests, RAGAS cases when retrieval code or data changes, and garak plus the large evaluation set before release. Block on critical policy violations, statistically meaningful regressions, missing results, or unexplained cost and latency jumps. Any bypass needs a named owner, reason, expiry, and follow-up issue.

Operate the feedback loop

Review the suite as a product. Remove checks that teams repeatedly ignore, repair rubrics with high disagreement, expand slices after real incidents, and watch evaluation cost and duration. Store machine-readable artifacts for trend analysis and a concise human summary for release review. When a threshold changes, make the rationale and baseline comparison part of the code review so evaluation policy cannot drift invisibly.

The budget varies with provider calls, judge usage, retrieval evaluation, trace retention, CI minutes, and security probing. Start with twenty to fifty high-value cases and one production canary before scaling to thousands. The full stack is unnecessary for a stable low-risk prototype, but it becomes valuable when multiple teams ship model or prompt changes and need a shared, auditable answer to whether the candidate is safer and more reliable than the current release.

Stack Overview

PromptfooProvider and prompt regression matrix
Pricing
promptfoo is open-source and free to run locally under the MIT license for unlimited evaluations and up to 10,000 red-team probes per month. Enterprise SaaS and On-Premise editions feature custom pricing with team collaboration, RBAC, and dedicated security monitoring.
Open Source
Yes
DeepEvalCode-native semantic and deterministic assertions
Pricing
Open-source core (Apache-2.0) with $0 local Pytest evaluations. Confident AI Cloud Free includes 2 seats, 5 test runs/wk, and 5 GB-mo trace data. Starter is $99-$200/mo for automated CI/CD testing ($1/GB-mo trace overage). Pro/Team is $499-$2,000/mo with 75 GB trace data, Git prompt versioning, RBAC, and SOC 2 Type II. Enterprise offers custom pricing for VPC/on-premise deployment, DeepTeam AI Red Teaming, production Guardrails, HIPAA compliance, and 24/7 SLA.
Open Source
Yes
RAGASRAG-specific retrieval and faithfulness metrics
Pricing
Open-source core (Apache-2.0) with $0 self-hosted local evaluation via `pip install ragas` (LLM judge token costs paid directly to model providers). Exploding Gradients offers Ragas Cloud with a Free tier ($0/mo for basic evaluation runs), Team / Pro tier ($49–$99/mo for collaborative dataset management, regression tracking, and continuous CI/CD integration), and Enterprise custom plans for private VPC deployment, custom SLAs, and enterprise security.
Open Source
Yes
LangfuseTrace-linked datasets and production canaries
Pricing
Langfuse is open-source under MIT for self-hosting with full features. Langfuse Cloud provides a free Hobby tier (50k units/month, 2 users), a Core plan at $29/month (100k units, unlimited users), a Pro plan at $199/month (3-year retention, SSO, SOC2), and an Enterprise plan at $2,499/month with custom SLAs.
Open Source
Yes
garakPre-production vulnerability probes
Pricing
garak is a 100% open-source LLM vulnerability scanner developed by NVIDIA and the open-source community, released under the Apache 2.0 license. It is completely free to use and automate in CI/CD pipelines.
Open Source
Yes

FAQ

How should eval stages be ordered in a CI/CD pipeline across Promptfoo, DeepEval, RAGAS, and garak?

Tests execute in a tiered gating sequence: 1) Fast deterministic assertions and prompt checks run first via Promptfoo (seconds); 2) Retrieval precision, context recall, and faithfulness evaluate via RAGAS; 3) DeepEval runs G-Eval / LLM-as-a-judge regression suites; 4) garak executes automated vulnerability scans (jailbreak/injection probes); 5) Traces and metric scores stream to Langfuse for baseline comparison.

How do you prevent flaky CI builds and reduce latency caused by LLM-as-a-judge non-determinism?

Enforce a fixed temperature of 0.0 on judge models, use structured JSON schema outputs with explicit chain-of-thought rubrics in DeepEval and Promptfoo, cache identical prompt/output evaluations using deterministic hashing, and apply statistical confidence thresholds (mean score >= 0.85 across 3 samples).

How is production telemetry from Langfuse fed back into continuous CI test suites?

Langfuse captures real-world user interactions, negative user feedback, and latency outliers from production. Data pipelines export these traces as JSONL datasets, anonymize PII, and import them into DeepEval and Promptfoo test suites as mandatory regression fixtures.

What specific metric thresholds should be configured as blocking gates before deploying a RAG or LLM update?

Release gates require multi-dimensional thresholds: RAGAS Faithfulness >= 0.88, RAGAS Answer Relevance >= 0.85, DeepEval Hallucination Metric < 0.05, garak Vulnerability Pass Rate == 100% on OWASP LLM Top 10 probes, and p95 latency under target SLOs.

Verification

Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.