Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

Comparison

promptfoo vs DeepEval vs Ragas: LLM eval frameworks compared

Three open-source LLM eval frameworks compared on licence, language, how tests are written, built-in metrics and red-teaming.

By Checked
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark
On this page
  • promptfoo

    A CLI and library that runs prompt and model evals from a declarative config, with red-team scans for security testing.

  • DeepEval

    A Python framework for unit-testing LLM apps in the style of pytest, with a large library of judge-based metrics.

  • Ragas

    A Python library of metrics and experiments for evaluating RAG pipelines and agents, with test-set generation.

promptfoo vs DeepEval vs Ragas: LLM eval frameworks compared: summary
promptfooDeepEvalRagas
LicenceMITApache 2.0Apache 2.0
Runtime and installNode.js 22.22+; npm, npx or brew (pip also offered)Python 3.10+; pipPython; pip
How you write evalsYAML config with an assert list per testTest files run with deepeval test runPython experiments with metric objects
Built-in checksDeterministic and model-graded assertionsAbout 40 metrics: RAG, agents, conversationsRAG, agent, SQL and text-comparison metrics
Red-teamingBuilt inListed on the roadmapNot documented
Maintained byPromptfoo, now part of OpenAIConfident AIVibrantLabs
Strongest atConfig-driven regression gates and security scansPython teams who want evals as unit testsScoring retrieval and grounding in RAG

promptfoo, DeepEval and Ragas are all open-source tools that run a set of test cases through your prompt, model or pipeline and score the outputs with code checks or an LLM judge. Pick promptfoo if you want evals in a config file that any team can run in CI, plus red-team scans; DeepEval if your team writes Python and wants evals to look and run like unit tests; Ragas if the main question is whether your RAG pipeline retrieves the right context and stays grounded in it. The language your team works in, and whether you need security testing, usually decide.

We checked every row against each project’s own repository and documentation on 21 November 2026. We publish no speed or accuracy comparisons: the score you get depends far more on your test cases and judge prompts than on the framework.

Pick promptfoo when

You want evals that live next to your code as a config file rather than a test suite. Each test in promptfooconfig.yaml has an assert list, mixing deterministic checks (equals, contains, regex, is-json, small JavaScript or Python expressions) with model-graded ones such as llm-rubric, factuality, context-faithfulness and context-recall. The docs describe it as language agnostic: your app can be written in anything, because promptfoo calls it as a provider. It also runs automated red-team and vulnerability scans, which neither of the other two documents today.

The catch: it needs Node.js 22.22 or newer, and the docs note that red-team generation may use hosted services. Promptfoo is now part of OpenAI; its README says the project remains open source and MIT licensed, and the company’s announcement says it will keep supporting other providers and models. See the promptfoo tool page and the promptfoo tutorial for a GitHub Actions gate.

Pick DeepEval when

Your team writes Python and already thinks in tests. You build an LLMTestCase with the input and actual output, call assert_test with one or more metrics, and run the file with deepeval test run, which plugs into pytest. Each metric scores from 0 to 1 against a threshold you set. The README lists about 40 metrics across RAG, agents, multi-turn conversations, MCP, multimodal and safety checks, plus G-Eval for custom criteria in plain language, and it can generate synthetic single-turn and multi-turn datasets.

The catch: most metrics are LLM-as-a-judge, so every run makes model calls. The getting-started examples set an OpenAI API key; the FAQ says that is only the quickest default and other providers, including local models, work. Confident AI, the team behind DeepEval, sells a hosted platform for production monitoring that DeepEval can log to with deepeval login; you do not need it to run tests. See the DeepEval tool page.

Pick Ragas when

You are building retrieval-augmented generation and need to know which half is failing: retrieval or generation. Ragas’s metric list is built around that split, with Context Precision, Context Recall and Context Entities Recall for retrieval, and Faithfulness and Response Relevancy for the answer. It also has agent metrics (Tool Call Accuracy, Agent Goal Accuracy), SQL metrics, and non-LLM text measures such as BLEU, ROUGE and exact match. It can also generate test datasets, which helps when you have no labelled questions yet.

The catch: LLM-based metrics make one or more model calls per score, and Ragas does not document any red-teaming. You call its metrics from your own code or experiments, so wiring it into CI is up to you. See the Ragas tool page and the RAG skill page.

Use them together

The three overlap less than the table suggests. A common split is Ragas or DeepEval’s RAG metrics to choose a retrieval setup during development, then a small promptfoo config as the regression gate in CI, because a YAML file is easy for anyone on the team to read and extend. DeepEval also ships a RAGAS metric that combines several RAG scores, so a Python team can stay in one tool.

Judges and cost

All three can grade with an LLM, and that is where both cost and noise come from:

  • promptfoo separates deterministic assertions from model-graded ones, so you can run the cheap checks on every commit and the judged ones less often.
  • DeepEval leans on judge metrics by design; set the judge model explicitly so a default does not change under you.
  • Ragas mixes LLM-based metrics with non-LLM ones such as exact match and string similarity.

Whichever you use, check the judge against your own labels before trusting a score. LLM-as-a-judge: write a judge prompt you can trust shows how.

Before you commit

  • Start from failures, not metrics. Read real outputs and list what goes wrong, as in start your evals with error analysis, then pick the tool whose checks match those failures.
  • Write ten real test cases and run them in your two finalists. The one your team keeps running is the right one.
  • Count the judge calls per run and multiply by how often CI runs.
  • Decide where results live. All three run locally; for traces and dashboards over time, see LLM observability compared.

New to evals? Begin with the first LLM eval tutorial, then score a RAG pipeline with the golden-set workflow.

Check your understanding

promptfoo vs DeepEval vs Ragas quiz

Choosing an LLM eval framework: promptfoo configs and red-teaming, DeepEval tests, Ragas RAG metrics, judges and cost.

7 questions · pass mark 70%

Question 1 of 70 answered
  1. According to the page, what usually decides between promptfoo, DeepEval and Ragas?

Checked against

Back to top