DeepEval is a Python framework for unit-style evaluation of large language model applications. It provides metrics for agents, RAG, chatbots, and voice apps, runnable in tests or via a CLI.
Overview
DeepEval targets teams shipping LLM-backed products who want repeatable tests similar to Pytest. You define inputs, expected behavior, and metrics, then assert pass or fail against thresholds while treating the app as a black box or inspecting traced steps.
Built-in metrics cover hallucination, answer relevancy, faithfulness, summarization, bias, toxicity, JSON shape, and agent-specific checks such as task completion, tool use, and plan adherence. Voice and multi-turn chat metrics address turn relevancy, knowledge retention, transcription, and conversational flow. RAG-oriented scores measure retrieval context quality as well as generated answers.
Evaluation can use LLM-as-a-judge approaches, statistical checks, or local NLP models. DeepEval integrates with common agent frameworks and voice stacks through callbacks and connectors, and supports synthetic dataset generation, CI/CD hooks, and component-level traces for debugging individual LLM, tool, and retrieval steps.
Optional Confident AI cloud logging adds hosted reports and production trace monitoring; the core library runs locally with Python 3.10 or newer.
Key features
- Pytest-compatible LLM test runner
- 50+ built-in evaluation metrics
- Agent, RAG, and voice metric sets
- LLM-as-judge and local NLP scorers
- End-to-end and trace-level evaluation
- Framework and voice stack integrations
- Synthetic dataset and conversation generation
- Custom metrics within the same runner
Use cases
- Regression tests for LLM applications
- Benchmarking prompts and model choices
- Validating RAG retrieval and answers
- CI pipelines for AI agent quality
- Voice agent call quality scoring