DeepEval and Promptfoo are both open-source frameworks for testing large language model (LLM) applications, but they come at the job from opposite ends: DeepEval is a Python-first, pytest-native framework built around a deep library of quality metrics, while Promptfoo is a YAML-driven CLI built around multi-model comparison and automated red-teaming. DeepEval answers “does my output meet a measurable quality bar?”; Promptfoo answers “which prompt or model is best, and can an attacker break it?”
Quick verdict
Pick DeepEval if your stack is Python and your main risk is answer quality - RAG faithfulness, hallucination, or regression on every pull request. Pick Promptfoo if you need to compare many models, or you need automated security and red-team testing out of the box, especially on a Node/TypeScript or polyglot team. Neither is a flat winner, and many mature teams run both. The one genuinely new factor in 2026: Promptfoo was acquired by OpenAI in March 2026, which matters if you plan to use it to audit OpenAI’s own models.
We organize this comparison around a simple model we call the Four Forks - the four decisions that actually determine your pick: the Language Fork (Python or YAML/JS), the Job Fork (quality gates or attack surface), the Cost Fork (what it costs to run, not to license), and the Ownership Fork (who you want to depend on). Every other question hangs off one of these four.
Key takeaways
- Language Fork: DeepEval is Python/pytest-native; Promptfoo is a Node.js CLI configured in YAML that can test an app in any language.
- Job Fork: DeepEval owns measurable quality (50+ metrics per its docs, including the RAG triad); Promptfoo owns model selection and red-teaming (50+ assertions, 40+ attack plugins).
- Cost Fork: both are free and open-source - real cost is LLM-judge tokens. Promptfoo’s deterministic checks cost nothing; DeepEval’s metrics are almost all LLM-judged.
- Ownership Fork: Promptfoo is now owned by OpenAI (MIT-licensed, still open source); DeepEval is built by the independent startup Confident AI (Apache-2.0).
- Verified for this article (31 Aug 2026): DeepEval is version 4.2.0; Promptfoo is version 0.122.2 (the version we tested; npm now lists 0.124.1) - newer than the numbers most comparison posts still cite.
What is DeepEval and what is Promptfoo?
DeepEval is an open-source Python framework for evaluating LLM outputs, built by Confident AI. It works like pytest: you build an LLMTestCase, run one or more metrics against it, and each metric returns a 0 - 1 score with a pass/fail threshold and a plain-language reason. It ships metrics for RAG (faithfulness, answer relevancy, contextual precision/recall), agents (task completion, tool correctness), safety (bias, toxicity), and the flexible G-Eval metric for custom criteria.
Promptfoo is an open-source CLI and library for testing and comparing LLM prompts, models, and RAG pipelines. You declare providers, prompts, and assertions in a single promptfooconfig.yaml, run promptfoo eval, and get a color-coded matrix of every prompt × model × test. Its second pillar is promptfoo redteam, which auto-generates adversarial attacks (prompt injection, jailbreaks, PII leakage) and reports which ones succeeded.
The choice matters because these tools cover different failure classes: DeepEval catches quality regressions before they ship, and Promptfoo catches security holes and tells you which model to ship in the first place.
DeepEval vs Promptfoo: quick comparison table
Rows are the Four Forks, plus the verified specs. All figures verified 31 August 2026.
| Attribute (the Four Forks) | DeepEval | Promptfoo |
|---|---|---|
| Language Fork | Python, pytest-native | Node.js CLI, YAML config (tests any-language app) |
| Job Fork - primary strength | Measurable quality metrics, RAG diagnosis, CI gates | Multi-model comparison, red-teaming, security scanning |
| Metrics / assertions | 50+ metrics (per DeepEval docs) | 50+ assertions + 40+ red-team plugins |
| Red-teaming | Yes, via DeepTeam library (40+ vulnerabilities, OWASP/NIST-aligned) | Yes, native redteam (broader, auto-generates attacks) |
| Cost Fork - run cost | Almost all metrics are LLM-judged (token cost per test) | Deterministic assertions cost $0; only model-graded checks use tokens |
| Ownership Fork - owner | Confident AI (independent startup) | OpenAI (acquired March 2026) |
| License | Apache-2.0 | MIT |
| Latest version | 4.2.0 | 0.122.2 |
| Managed platform | Confident AI (hosted dashboard) | Promptfoo Cloud / OpenAI Frontier |
| Best for | Python teams gating deploys on quality | Teams choosing models or hardening against attacks |
Fork 1 - The Language Fork: Python or YAML/JS?
Choose DeepEval if your application and team live in Python; choose Promptfoo if you’re on Node/TypeScript or want non-engineers editing tests. This is the fastest fork to resolve, and for many teams it settles the whole decision.
DeepEval is Python-first. Its LLMTestCase, metrics, and pytest integration all live in Python; an official TypeScript SDK (npm package deepeval) has been in beta since August 2026, but it is not yet at parity (the Synthesizer, benchmarks and prompt optimization are not ported). If your evals need real logic - branching, calling your actual app code, composing several metrics with per-case thresholds - Python gives you that directly.
Promptfoo ships as a Node.js package (npx promptfoo@latest) but is language-agnostic in what it tests: your app under test can be a Python script, an HTTP endpoint, or a raw model call. Because the config is declarative YAML, product managers and QA analysts can read and edit tests without writing code.
Does DeepEval support JavaScript or TypeScript?
Partly. DeepEval is Python-first and its pytest integration is Python-only, but since August 2026 there is also an official TypeScript SDK (npm package deepeval, in beta) with most metrics and a Vitest matcher. If your app is in TypeScript you can still test it by exposing an HTTP endpoint and pointing an evaluator at it, if you need a metric the TypeScript SDK doesn’t cover yet. For evals written in the same language as a TypeScript app, Promptfoo is the natural fit.
Does Promptfoo support Python?
Promptfoo runs on Node.js, but it can test a Python application - you point a provider at your Python script or endpoint. You can also write custom Python assertions. What you can’t do is install Promptfoo as a Python package; it lives in the npm ecosystem, which adds a Node dependency to an otherwise-Python pipeline.
Is Promptfoo or DeepEval better for beginners?
Promptfoo has the gentler entry point: evals are declarative YAML and one CLI command produces a color-coded grid, with no pytest knowledge required. DeepEval is friendlier if you already write Python tests, because its API mirrors pytest. For a non-engineer or a quick prompt comparison, start with Promptfoo; for an engineer embedding evals in a suite, DeepEval feels native.
Fork 2 - The Job Fork: quality gates or attack surface?
Choose DeepEval when the job is proving output quality; choose Promptfoo when the job is comparing models or breaking your app. This is the fork that most often justifies running both, because most teams have both jobs.
DeepEval’s catalog is its standout. Its documentation lists 50+ metrics spanning RAG, agents, conversational, safety, and multimodal evaluation, most powered by LLM-as-a-judge with a 0 - 1 score and a written reason. For diagnosing a RAG pipeline it models retrieval_context as a first-class field and offers the full RAG triad - answer relevancy, faithfulness, and contextual precision/recall - so you can separate a retrieval failure from a generation failure.
Promptfoo’s strength is the matrix and the red-team engine. You compare the same prompt across 30+ providers (OpenAI, Anthropic, Google Gemini, AWS Bedrock, Vertex AI, Azure OpenAI, Ollama, vLLM, Hugging Face) in one run, and promptfoo redteam auto-generates adversarial cases across a large plugin library, then scores which attacks landed. It also ships ModelAudit, a scanner for unsafe model-file loading.
Correcting a stale claim: does DeepEval do red-teaming?
Yes - and this is where older comparison posts are wrong. Many 2026 articles still say red-teaming is “Promptfoo-only” or that DeepEval’s coverage is “thin.” DeepEval ships a dedicated red-teaming library, DeepTeam, covering 40+ vulnerability types aligned to the OWASP Top 10 for LLMs and the NIST AI RMF. Promptfoo’s red-teaming is still broader and auto-generates attacks against your specific app context, so it remains the stronger security tool - but the gap is much narrower than the incumbent pages claim.
Which is better for RAG evaluation?
DeepEval is generally stronger for diagnosing RAG, because it models retrieval_context explicitly and gives you the decomposed RAG triad to isolate whether retrieval or generation failed. Promptfoo supports RAG by injecting retrieved context as a prompt variable and asserting context-faithfulness and context-recall, which works when RAG is one column in a broader matrix but gives less precise diagnostics.
Which is better for agents?
Both handle agents, from different angles. DeepEval has agentic metrics (task completion, tool correctness) plus component-level tracing via its @observe decorator, so you can inspect the exact step that failed. Promptfoo tests agent behavior through its red-team plugins for excessive agency, tool misuse, and BOLA (broken object-level authorization), making it stronger for agent security than agent quality scoring.
Which has more metrics, DeepEval or Promptfoo?
It depends what you count. DeepEval has more purpose-built, continuously-scored metrics - its docs cite 50+. Promptfoo has 50+ assertions plus 40+ red-team plugins, but many assertions are binary check-is-true rather than continuous scores. If you’re counting “quality metrics that return a graded score,” DeepEval leads; if you’re counting “distinct things you can assert or attack,” Promptfoo leads.
The original test: we installed and ran both on the same task
We installed DeepEval 4.2.0 and Promptfoo 0.122.2 and ran the identical eval - a support bot that must mention its 30-day return window - to measure the developer-experience difference instead of asserting it. This is a first-hand run on current versions, done for this article on 31 August 2026.
Here is what we measured:
| Measured in-environment (31 Aug 2026) | DeepEval 4.2.0 | Promptfoo 0.122.2 |
|---|---|---|
| Install command | pip install deepeval | npx promptfoo@latest init |
| Install time (cold, local) | ~20 seconds | ~131 seconds (or instant via npx) |
| Config to express the same test | 28 lines of Python | 14 lines of YAML |
| Dependencies pulled | ~50 Python packages | ~550 npm packages (node_modules) |
| Deterministic run, no judge, offline | PASS | PASS |
The takeaway matches the Language Fork: Promptfoo reaches a passing test in fewer lines (14 vs 28) because its contains assertion is built in, while DeepEval needs a short custom metric class for the same deterministic check - but that same verbosity is what gives DeepEval finer control when the check gets real. One friction point worth flagging: Promptfoo’s provider/transform model has a genuine learning curve - our first config echoed the prompt instead of the stubbed answer until we moved the transform to defaultTest. DeepEval’s Python felt more predictable to a Python developer; Promptfoo’s YAML felt faster to a newcomer once the provider was correct.
The two minimal configs, if you want to reproduce it:
Run them with python test_support.py and npx promptfoo@latest eval. In our run both reported a pass.
Fork 3 - The Cost Fork: what does it cost to run?
Both tools are free and open-source; the real cost is LLM-judge API tokens, and Promptfoo is usually cheaper because many of its checks need no judge call. Licensing is a non-issue - DeepEval is Apache-2.0, Promptfoo is MIT - so ignore “price” and think about run-cost.
Promptfoo’s deterministic assertions (contains, equals, regex, is-json, latency, cost) run locally and consume zero tokens. Only its model-graded checks (llm-rubric, g-eval, factuality) call a judge. DeepEval’s metrics are almost all LLM-as-a-judge, so nearly every test spends tokens. This is the single most-cited complaint about DeepEval in practitioner reviews: it is accurate and granular, but it adds up at volume.
One published comparison estimates the gap at roughly $100/day (Promptfoo) versus $300/day (DeepEval) at 10,000 evaluations per day - illustrative only, since your real cost depends on your judge model and how many checks are deterministic. Use the estimator below with your own numbers.
Judge-Token Cost Estimator
Estimate monthly LLM-judge spend for DeepEval vs Promptfoo at your eval volume.
Formula: evals/day × checks × judged-fraction × tokens × price-per-token × 30. DeepEval metrics are almost all LLM-judged (100%); Promptfoo’s deterministic assertions cost $0, so only the judged fraction spends tokens. Judge prices are editable placeholders - verify current model pricing before budgeting. Figures illustrative, 2026.
Is DeepEval free? Is Promptfoo free?
Yes to both. DeepEval is a free, open-source Apache-2.0 framework; Promptfoo is a free, open-source MIT framework. You only pay for model API tokens used by LLM-judged metrics, plus optional hosted platforms - Confident AI for DeepEval and Promptfoo Cloud for Promptfoo - neither of which is required to run the core tool.
DeepEval vs Promptfoo pricing for the managed platforms
The frameworks are free; the paid layers are the dashboards. DeepEval's managed platform, Confident AI, publishes tiered pricing that starts with a free plan, then flat monthly tiers (Starter $200/month, Team $2,000/month, both with unlimited seats) plus per-GB-month trace-span charges - verify the current figures on Confident AI's pricing page, as they've changed through 2026. Promptfoo's commercial and enterprise tiers (SSO, RBAC) are now folded into OpenAI's platform; pricing there is quote-based.
Which is faster to run in CI?
Deterministic checks in either tool are near-instant; the time and cost both come from LLM-judged metrics, which add a model call per evaluation. To keep CI fast, minimize judge-based metrics on every commit, run the full suite nightly or at release, and lean on Promptfoo's deterministic assertions or DeepEval's non-LLM metrics for per-commit gates. Both tools parallelize, so wall-clock time is mostly bounded by your model API throughput. For the wider question of when to use fixed rules and when to use model judgment, see deterministic vs probabilistic AI.
Fork 4 - The Ownership Fork: who do you want to depend on?
Promptfoo is now owned by OpenAI; DeepEval is built by the independent startup Confident AI - and if you use an eval tool to audit OpenAI's own models, that ownership is a real consideration. No other comparison frames this, but it's the sharpest decision factor in 2026.
OpenAI acquired Promptfoo on 9 March 2026, folding the team - founders Ian Webster (CEO) and Michael D'Angelo (CTO) - into OpenAI Frontier, its enterprise agent platform. Promptfoo remains open source under its MIT license, the public repo stays, and existing customers continue to be supported. By its own numbers at the time of the deal, Promptfoo had reached more than 350,000 developers, 130,000 monthly active users, and teams at over 25% of the Fortune 500. The company had raised about $23 million and carried a roughly $86 million valuation.
The consequence practitioners raise: if you rely on Promptfoo to red-team GPT models, you're now using a tool owned by the vendor being audited - a grader-independence question a procurement or audit team will surface. Across the community and review sources we analyzed (Hacker News, r/LocalLLaMA, ZenML, Nimble Approach, and practitioner reviews), the single most-cited current concern about Promptfoo was not a feature gap but this OpenAI ownership; the most-cited concern about DeepEval was LLM-as-judge token cost at scale (altaitools.com analysis of community reports, 2026).
DeepEval carries the opposite profile: it's built by Confident AI, an independent startup founded in 2024 in San Francisco by Jeffrey Ip and Kritin Vongthongsri, and licensed Apache-2.0 - but it moves fast and has shipped breaking changes, so pin your version.
Is Promptfoo still safe and independent after the OpenAI acquisition?
The code is unchanged and still MIT-licensed, so nothing broke technically, and OpenAI has pledged to keep the open-source project going. The concern is neutrality, not stability: using an OpenAI-owned tool to evaluate OpenAI models raises a grader-independence question for regulated or audit-sensitive teams. If that applies to you, vendor-neutral options include Garak, PyRIT, and Giskard.
Which tool has better long-term backing?
Different kinds of backing. Promptfoo now has OpenAI's resources and distribution behind it, which is stability of funding - at the cost of vendor neutrality. DeepEval has an independent company (Confident AI) whose entire business is evaluation, which is focus and neutrality - at the cost of a smaller balance sheet and a faster-moving, occasionally breaking release cadence.
Do you have to choose? When to run both DeepEval and Promptfoo
Most production teams run both, because the Job Fork isn't really either/or - they cover different failure classes. The common split: use Promptfoo during model and prompt selection and to run the red-team suite before launch, then use DeepEval as the ongoing regression gate in CI, asserting faithfulness and answer relevancy on every pull request.
A typical topology puts Promptfoo on pre-launch model comparison and red-team gates ("can an attacker break it"), and DeepEval on per-commit quality gates ("does it meet our thresholds"). Because Promptfoo is YAML/CLI and DeepEval is Python, they don't conflict in a pipeline.
How do I migrate from Promptfoo to DeepEval (or the reverse)?
There's no automatic converter - you re-express tests in the target model. Moving Promptfoo → DeepEval means turning YAML assertions into Python metrics on LLMTestCase objects; moving DeepEval → Promptfoo means turning metric thresholds into YAML assert blocks. Keep both running in parallel during the switch, and migrate one test suite at a time rather than all at once.
What real users are saying
Practitioner sentiment on Reddit and Hacker News splits cleanly along the tools' strengths and weaknesses. Patterns below are drawn from Hacker News, r/LocalLLaMA, ZenML, TECHSY, and Nimble Approach's first-hand write-up; individual gripes are labeled as such.
The most common praise for Promptfoo is its CI-native, fast feedback loop. Users on Hacker News repeatedly cite the color-coded matrix and one-command model comparison, and note the red-teaming genuinely finds issues. Its most common complaint is that the YAML-and-plugin abstraction feels rigid once tests get complex, and that the open-source tool has no persistent shared dashboard ("where are last week's results?"). Recurring, and current: the OpenAI-ownership neutrality concern covered above.
The most common praise for DeepEval is that it feels like "pytest for LLMs." Python teams say it fits existing muscle memory and gives finer threshold control, and Nimble Approach's hands-on test found DeepEval's decomposed scoring better for fine-tuning prompts. Its most common complaints are token cost at scale (every metric is a judge call) and breaking changes between releases - DeepEval's own docs currently headline a breaking change flipping all metric scores to higher-is-better, which is exactly the churn reviewers flag.
One data point cuts against the older "Promptfoo dominates adoption" narrative. As of August 2026, DeepEval's PyPI installs run around 4.67 million per month, ahead of Promptfoo's roughly 2.49 million npm installs per month (verified via pypistats and the npm registry, 31 Aug 2026) - a reversal from the May 2026 figures earlier posts cite, though PyPI and npm counts aren't perfectly comparable because CI mirrors inflate both.
Pros and cons
DeepEval - pros
- 50+ ready-to-use metrics with scores and written reasons.
- Pytest-native; evals live beside your unit tests and fail the build on regression.
- Full RAG triad for precise retrieval-vs-generation diagnosis.
- Red-teaming via DeepTeam (40+ vulnerabilities, OWASP/NIST-aligned).
- Independent, Apache-2.0, local-first.
DeepEval - cons
- Almost all metrics are LLM-judged, so token cost climbs at volume.
- Breaking changes between releases; pin your version.
- Python-first - the official TypeScript SDK is still in beta.
- Higher entry barrier for non-engineers than YAML.
Promptfoo - pros
- Best-in-class multi-model comparison matrix.
- Broad, auto-generating red-team suite plus ModelAudit.
- Deterministic assertions cost zero tokens.
- YAML is readable and editable by non-engineers.
- MIT-licensed; tests apps in any language.
Promptfoo - cons
- Now owned by OpenAI - a neutrality concern when auditing OpenAI models.
- YAML/plugin model feels rigid for complex, logic-heavy evals.
- No purpose-built RAG metric family as deep as DeepEval's.
- No persistent shared dashboard in the open-source tool.
Which should you choose?
Choose DeepEval if:
- Your stack is Python (FastAPI, LangChain, LlamaIndex) and you gate deploys with pytest.
- Your main risk is answer quality - hallucination, RAG faithfulness, regression.
- You want continuous 0 - 1 scores with reasons, not binary pass/fail.
- You need bias, toxicity, or fairness metrics for responsible-AI compliance.
- Vendor neutrality matters and you prefer an independent maintainer.
Choose Promptfoo if:
- You're comparing models (GPT, Claude, Gemini, Llama) and need side-by-side data.
- Automated red-teaming and security scanning are hard requirements.
- Your team is Node/TypeScript or polyglot, or non-engineers must edit tests.
- You want deterministic checks that cost no tokens in high-volume CI.
- OpenAI ownership is a non-issue for your use case (you're not auditing OpenAI models under scrutiny).
Choose both if you're shipping a production GenAI app: Promptfoo for model selection and pre-launch red-teaming, DeepEval for per-commit quality gates. That's the standard pattern, and the two compose cleanly.
If you're still weighing the wider observability layer these results flow into rather than the eval framework itself, our Langfuse vs LangSmith comparison covers the tracing decision. And if you arrived here because you're rebuilding your monitoring stack, our guide to the best Langfuse alternatives maps Confident AI and other eval-capable platforms to the reason you're switching. Teams choosing the agent framework underneath their evals should see our LangGraph alternatives guide.
How to choose
DeepEval or Promptfoo?
Auditing OpenAI models under scrutiny? Promptfoo is OpenAI-owned, so weigh grader independence.
Frequently asked questions
Is Promptfoo or DeepEval better for LLM testing?
Neither is universally better. Promptfoo is better for comparing models and for red-teaming, thanks to its matrix view and 40+ attack plugins. DeepEval is better for Python-native quality gates, with 50+ scored metrics inside pytest. Pick by your primary job; for a full production program, run both.
Is Promptfoo a DeepEval alternative?
They're partial alternatives with different strengths. Promptfoo replaces DeepEval if your main need is model comparison and red-teaming; DeepEval replaces Promptfoo if your main need is Python-integrated metric gates. For most production teams they're complementary rather than interchangeable, so treating them as direct swaps leaves coverage gaps.
Can I use Promptfoo and DeepEval together?
Yes, and it's the recommended production pattern. Promptfoo handles pre-launch model comparison and red-team gates, while DeepEval runs as a per-commit regression gate in pytest CI. Because Promptfoo is YAML/CLI and DeepEval is Python, they don't conflict in the same pipeline.
Which tool is better for red-teaming, Promptfoo or DeepEval?
Promptfoo, but by a narrower margin than older posts claim. It ships broader red-team coverage and auto-generates attacks against your app context. DeepEval now has DeepTeam with 40+ vulnerability types aligned to OWASP and NIST, so the "DeepEval can't red-team" claim is out of date - Promptfoo is simply more mature at it.
Are DeepEval and Promptfoo free and open source?
Yes. DeepEval is open-source under Apache-2.0 and Promptfoo under MIT. Both run entirely on your machine at no licensing cost. You only pay for model API tokens used by LLM-judged metrics, plus optional hosted platforms (Confident AI, Promptfoo Cloud) that aren't required for the core tools.
Does Promptfoo do security and red-teaming?
Yes - it's one of its strongest features. The promptfoo redteam command auto-generates adversarial inputs across many plugins (prompt injection, jailbreaks, PII leakage, harmful content, excessive agency), runs them against your app, and reports which attacks succeeded. It effectively doubles as an LLM security scanner.
Is Promptfoo owned by OpenAI?
Yes. OpenAI announced the acquisition of Promptfoo on 9 March 2026, integrating its technology into OpenAI Frontier. Promptfoo remains open source under its MIT license and continues to support existing users, but the ownership matters if you use it to red-team or audit OpenAI's own models.
How much does it cost to run DeepEval or Promptfoo?
The frameworks are free; the cost is LLM-judge tokens. Promptfoo is usually cheaper because deterministic assertions (contains, equals, regex) cost nothing, while nearly all DeepEval metrics call a judge. One published estimate puts a large 10,000-eval-per-day suite near $100/day for Promptfoo versus $300/day for DeepEval - verify against your own judge model.
Which is faster to set up, DeepEval or Promptfoo?
In our test, Promptfoo reached a passing deterministic test in 14 lines of YAML versus DeepEval's 28 lines of Python, because Promptfoo's contains check is built in. DeepEval installed faster (~20s vs ~131s locally), but Promptfoo can run with no install via npx. For a first eval, Promptfoo is quicker to a green check.
Which is better for a Python team?
DeepEval, clearly. It's Python-native, installs with one pip command, and runs inside your existing pytest suite with no extra language runtime. Promptfoo would add a Node.js dependency to an otherwise-Python pipeline, which increases Docker image size and build time.
Which is better for a JavaScript or TypeScript team?
Promptfoo. It's a Node.js package with a native JS/TS API, so evals live in the same language as your app and CI. DeepEval now has a TypeScript SDK in beta, but Promptfoo is the established Node.js-native option and needs no Python environment.
Do DeepEval and Promptfoo work with local models like Ollama?
Yes, both. Promptfoo supports any OpenAI-compatible endpoint, including Ollama and vLLM, as a provider. DeepEval supports local and custom models through its model interface, so you can run judged metrics against a self-hosted model - useful for cutting token cost, at some accuracy trade-off on nuanced metrics.
What are the main alternatives to DeepEval and Promptfoo?
For quality metrics, the main alternatives are RAGAS (RAG-specific scoring) and Braintrust (eval platform with CI gating). For red-teaming and vendor neutrality, Garak, PyRIT, and Giskard. On the observability side, Langfuse and LangSmith cover tracing that these eval results can flow into.
What's the difference between a Promptfoo assertion and a DeepEval metric?
A Promptfoo assertion is usually a check that returns true or false (contains, equals, is-json), though it can call a judge. A DeepEval metric returns a continuous 0 - 1 score against a threshold, with a reason. Assertions suit pass/fail gates; metrics suit graded quality tracking over time.
Which is better for CI/CD gating?
DeepEval integrates more natively, because it's pytest - evals run in your existing test job and fail the build on a threshold breach. Promptfoo integrates via its CLI exiting non-zero on failure, which works well but is a separate step. For a Python CI, DeepEval is more seamless; for a polyglot CI, Promptfoo's CLI is language-neutral.
