DeepEval

DeepEval

By Confident AI

Open-source "Pytest for LLMs" — unit-test your model and RAG output with metrics.

v4.1.32026-07-12PythonApache-2.0
17.1k Open source Free tier Paid

Doc version 1.0 · Updated

Related concepts

Related tools

Overview

DeepEval is an open-source evaluation framework that treats LLM testing like unit testing — “Pytest for LLMs” — with a library of metrics for relevancy, faithfulness, hallucination, bias, and custom criteria.
It runs locally and in CI, and pairs with the Confident AI platform for hosted dashboards and regression tracking.

flowchart LR
  case[test case] --> m[metric]
  m --> judge[(LLM judge)]
  m --> verdict[score + pass/fail]

The Code samples tab shows scoring a single test case.

When to use it

Choose DeepEval when you want evaluation wired into your test workflow — writing metric-based assertions for model and RAG output, and gating CI on them, with an optional hosted platform on top.