DeepEval
An open-source Python framework that tests LLM applications the way pytest tests code, with ready-made metrics for RAG and agents.

DeepEval is an open-source Python framework that tests LLM applications the way pytest tests code, with ready-made metrics for RAG and agents. A test fails when a metric drops below the threshold you set, so it fits into an existing CI pipeline.
A test case holds the input, the actual output and, where needed, the expected output and the retrieved context; metrics score it and the test passes above a threshold. It ships RAG metrics similar to those in Ragas and G-Eval, a metric where a judge model scores against criteria you write in plain language, based on the G-Eval paper. Like every judge-based metric, its scores move with the judge model, so fix the judge and its version, see model pinning. It is developed by Confident AI, which sells a hosted platform on top of it; the open-source framework runs without that platform.
Choose it when the team writes Python and wants AI tests next to unit tests. Promptfoo suits teams that prefer YAML config, and either one is only as useful as the golden dataset behind it. Calibrate G-Eval criteria against human evaluation on a sample before trusting them.
Sources
- arXiv: G-Eval: NLG Evaluation using GPT-4 with Better Human Alignment arxiv.org
- DeepEval: DeepEval 5-min Quickstart deepeval.com
Related terms
- Ragas: An open-source Python library for evaluating RAG systems with metrics such as faithfulness, answer relevancy, context precision and context recall.
- Promptfoo: An open-source command-line tool for testing prompts and models against test cases defined in a config file, including security red teaming.
- Evals: A repeatable test set that scores an AI feature, so changes can be measured instead of guessed.
- LLM as judge: Using a model with a rubric to grade another model’s output.
- Golden dataset: A fixed set of real inputs with expected answers or checks, used to test an AI feature after every prompt or model change.
- Human evaluation: People, ideally domain experts, grading AI outputs against a written rubric; the reference that automated metrics are checked against.
