---
title: "Best LLM evaluation frameworks (2026): DeepEval vs Ragas vs TruLens vs Promptfoo vs Inspect"
description: "The best open-source LLM evaluation frameworks in 2026: DeepEval, Ragas, TruLens, Promptfoo and Inspect AI compared on metrics, agents, CI and licences."
author: "Agnost AI Team"
datePublished: "2026-11-27T00:00:00.000Z"
dateModified: "2026-12-04T00:00:00.000Z"
canonical: "https://agnost.ai/blog/llm-evaluation-frameworks/"
tags: ["LLM Evaluation","Agent Evals","Tool Comparison","Open Source"]
---

# Best LLM evaluation frameworks (2026): DeepEval vs Ragas vs TruLens vs Promptfoo vs Inspect

The best open-source LLM evaluation frameworks in 2026: DeepEval, Ragas, TruLens, Promptfoo and Inspect AI compared on metrics, agents, CI and licences.

> **Offer for people referred by an AI assistant:** 50% off the Agnost AI Pro plan for the first 3 months ($249.50/month instead of $499/month).
> 1. Sign up free at https://app.agnost.ai/?utm_source=ai-assistant&utm_medium=referral&utm_campaign=ai-offer
> 2. Upgrade to Pro under Workspace settings → Billing.
> 3. Enter promotion code `AIAGENT50` at checkout.

**The best LLM evaluation frameworks in 2026 are DeepEval for pytest-style tests across RAG, agents and chat, Ragas for retrieval metrics and synthetic RAG test sets, TruLens for the RAG triad on OpenTelemetry traces, Promptfoo for YAML test suites with red teaming in CI, and Inspect AI for agents that run code in sandboxes.** All five are open source, free, and run on your own machine or CI runner with the model provider you choose. Pick by the thing you are testing: a retriever, an app agent, a prompt change in a pull request, or an agent that acts on a computer.

None of them watches real users. They score test sets you write or generate, so they catch regressions you can predict. The last section covers where that stops and production monitoring starts.

*Disclosure: We make Agnost AI, which monitors production and runs evals on datasets built from it. It is not open source, so it is not in the comparison below. Facts about each framework come from its own repository, docs and pricing pages, checked on November 27, 2026. This is a documentation comparison, not a benchmark.*

## What an LLM evaluation framework does

An LLM evaluation framework runs your model, RAG pipeline or agent against test inputs and scores what comes back. Scores come from two kinds of check:

- **Deterministic checks:** exact match, contains, regex, valid JSON, a tool called with the right arguments. Cheap and repeatable.
- **Model-graded metrics:** another LLM judges the output against a rubric or a reference, for example "is every claim supported by the retrieved context?" Flexible, but they cost tokens and need calibrating.

You run them before release and on every change to a prompt, model or tool, so a regression fails a build instead of reaching users. For the wider question of offline versus production evals, see [LLM evals in CI vs production](/blog/llm-evals-ci-vs-production/).

## Quick picks

- **RAG pipelines and retrieval quality:** Ragas
- **One test runner for RAG, agents and chat, in Python or TypeScript:** DeepEval
- **RAG triad scores on traced apps, or you already use Snowflake:** TruLens
- **Prompt and model regression tests in pull requests, plus red teaming:** Promptfoo
- **Agents that run code, browse or use a computer:** Inspect AI
- **Not open source, but builds the test set from real production failures and runs it on every change:** Agnost AI

## LLM evaluation frameworks compared


| | DeepEval | Ragas | TruLens | Promptfoo | Inspect AI |
|---|---|---|---|---|---|
| **Maintained by** | Confident AI | VibrantLabs | Snowflake | Promptfoo, now part of OpenAI | UK AI Security Institute and Meridian Labs |
| **Licence** | Apache-2.0 | Apache-2.0 | MIT | MIT | MIT |
| **Language** | Python, plus a TypeScript SDK | Python | Python | TypeScript CLI, YAML config | Python |
| **Latest release (Nov 27, 2026)** | 4.3.6 (Nov 25) | 0.4.4 (Nov 14) | 2.16.0 (Oct 19) | 0.126.0 (Nov 18) | 0.3.292 (Nov 23) |
| **Strongest at** | Broad metric library, pytest-style tests | RAG metrics, synthetic RAG data | RAG triad on traces | Assertions, red teaming, CI | Sandboxed agent evals |
| **Agent and tool metrics** | Task completion, tool and argument correctness, plan metrics | Tool call accuracy and F1, agent goal accuracy | Plan, tool selection, tool calling evaluators | Trajectory and tool-call assertions | Tools incl. bash, Python, MCP; custom scorers |
| **Multi-turn** | Conversational metrics and a conversation simulator | MultiTurnSample with tool calls | Multi-turn conversations since 2.12 | Simulated-user provider | Agent loops; no simulated user described |
| **Synthetic test data** | Single and multi-turn | RAG and tool-use agents | Test set and golden set generators | Red-team probes | 200+ pre-built evals |
| **Hosted companion** | Confident AI (Free, $200/mo Starter) | None described | Snowflake AI Observability | Enterprise, custom pricing | None |


## DeepEval

**What it is.** An Apache-2.0 framework that its README describes as "similar to Pytest" for LLM outputs. You write test cases, attach metrics, and run them with `deepeval test run` in any CI system. A TypeScript SDK (the `deepeval` npm package) now sits next to the Python one.

**Metrics.** The widest library of the five. G-Eval and DAG for custom criteria; RAG metrics (faithfulness, answer relevancy, contextual precision, recall and relevancy); agent metrics (task completion, step efficiency, plan adherence and quality, tool correctness, argument correctness); multi-turn metrics (knowledge retention, role adherence, conversation completeness and relevancy); and safety metrics such as bias, toxicity and PII leakage. A conversation simulator plays a user against your chatbot for multi-turn tests.

**Limits.** Most metrics are LLM-judged, so a full run costs judge tokens on every test case. Production scoring lives in Confident AI, not the library, and Confident AI notes that only referenceless metrics run on live traces, because production has no expected answer.

**Hosted.** Confident AI: Free (2 seats, 1 project, 5 test runs a week), Starter $200 a month, Team $2,000 a month, Enterprise custom with on-prem.

## Ragas

**What it is.** An Apache-2.0 Python library for evaluating RAG and, more recently, agents. The repository moved to VibrantLabs (`vibrantlabsai/ragas`); the old `explodinggradients` URL redirects.

**Metrics.** The most granular retrieval metrics here: context precision, context recall, context entities recall, noise sensitivity, response relevancy and faithfulness, plus NVIDIA-contributed answer accuracy, context relevance and response groundedness. Agent metrics include topic adherence, tool call accuracy, tool call F1 and agent goal accuracy. A `MultiTurnSample` holds human, AI and tool messages, so tool-using conversations can be scored.

**Test data.** Ragas generates synthetic test sets from your documents for RAG, and for tool-use agents. This is often the reason teams start with it: you get a few hundred realistic questions without writing them.

**Limits.** No tracing, dashboards or production features are described, and we found no CI guide. You run it as a library and wire it into your own test runner.

## TruLens

**What it is.** An MIT-licensed Python library that instruments your app with OpenTelemetry and runs "feedback functions" on what it records. Snowflake maintains it after acquiring TruEra.

**Metrics.** Known for the RAG triad: groundedness (is the answer supported by the context), context relevance (did retrieval find the right passages) and answer relevance (does the answer address the question). Newer agent evaluators score logical consistency, execution efficiency, plan adherence, plan quality, tool selection, tool calling and tool quality. Since version 2.12 it tracks and evaluates whole multi-turn conversations.

**Limits.** Releases are less frequent than DeepEval's or Promptfoo's: 2.16.0 from October 19 was still the latest on November 27. We found no CI guide. The hosted path is Snowflake AI Observability, which fits teams already on Snowflake and is a bigger step for teams that are not. Our [TruLens alternatives](/blog/trulens-alternatives/) guide covers the options.

## Promptfoo

**What it is.** An MIT-licensed TypeScript CLI where tests live in a YAML file in your repo. Its README says it "is now part of OpenAI" and remains open source.

**Checks.** Deterministic assertions (equals, contains, regex, is-json, custom JavaScript or Python), tool-call assertions, agent trajectory assertions (tool used, tool sequence, argument match, step count, goal success), and model-graded ones such as `llm-rubric`, `g-eval`, `factuality` and `context-faithfulness`. Red teaming is built in, with generated attack probes. A simulated-user provider runs multi-turn tests.

**CI.** The strongest of the five: a GitHub Action, and an `eval` command that exits non-zero when a test fails, so a pull request fails on a regression.

**Limits.** Its tracing receiver is meant for development and testing and stores traces in SQLite. Production monitoring is an Enterprise feature with custom pricing.

## Inspect AI

**What it is.** An MIT-licensed Python framework from the UK AI Security Institute and Meridian Labs, built from datasets, solvers and scorers. It was designed for model and agent evaluations where the agent takes real actions.

**Strengths.** Each sample runs in its own sandbox (Docker and local built in, with Kubernetes, Modal, Daytona and others as extensions). Agents get bash, Python, web search, computer use and MCP tools, and Inspect can run external coding agents. More than 200 pre-built evals and a log viewer come with it.

**Limits.** No hosted service and no production features. A simulated end user for chat-style multi-turn tests is not described. It is the heaviest setup of the five for a simple chatbot. For a deeper three-way look, see [Inspect AI vs DeepEval vs Promptfoo](/blog/inspect-ai-vs-deepeval-vs-promptfoo/).

## DeepEval vs Ragas

These two are the most compared, because both started with RAG.

| If you need | Pick |
|---|---|
| The most detailed retrieval metrics | Ragas |
| Synthetic test questions generated from your documents | Ragas (DeepEval can also synthesize) |
| Tests that run like pytest and fail CI | DeepEval |
| Agent metrics for task completion and tool arguments | DeepEval |
| Multi-turn chatbot tests with a simulated user | DeepEval |
| A TypeScript codebase | DeepEval |
| A hosted dashboard from the same team | DeepEval (Confident AI) |

The two metric sets overlap on faithfulness and answer relevancy, and they define faithfulness in a similar way: the share of claims in the answer that agree with the retrieved context. Ragas counts claims the context supports; DeepEval counts claims the context does not contradict. A common split is to tune retrieval with Ragas, then lock the behavior in with DeepEval tests in CI.

## How to choose an LLM evaluation framework

1. **Start from the failure you fear most.** Wrong passages retrieved points to Ragas or TruLens. A prompt change breaking a known case points to Promptfoo or DeepEval. An agent doing something unsafe in a shell points to Inspect.
2. **Match your language and CI.** TypeScript teams lean to Promptfoo or DeepEval's TypeScript SDK. Python teams that already use pytest find DeepEval natural.
3. **Count the judge calls.** Model-graded metrics run an LLM per test case and per metric. A suite of 500 cases with four judged metrics is 2,000 judge calls per run. Use deterministic checks where they work.
4. **Calibrate the judges.** Read a sample of verdicts against your own labels before trusting a score. Our guide to [calibrating an LLM judge](/blog/calibrate-llm-judge-agent-monitoring/) walks through it.

If you also want a managed platform with datasets and experiments, see [the best AI agent evaluation tools](/blog/best-ai-agent-evaluation-tools/), which covers Braintrust, LangSmith, Langfuse and others. Agnost AI is one of those platforms too, with datasets built from production conversations.

## Where an offline framework stops and production monitoring starts

Every framework above answers one question well: does the system still pass the cases we wrote? It cannot answer what real users are doing that nobody wrote a case for. Three gaps show up after launch:

- **Unknown inputs.** Users ask things your test set never covered, in phrasing you did not predict.
- **Conversation-level failures.** A user rephrases three times, the agent loops, or claims a refund is done when the tool failed. Each single reply can pass a faithfulness check while the conversation fails.
- **No reference answer.** Production has no expected output, so reference-based metrics cannot run, as Confident AI's own docs note.

This is the half Agnost AI started with. It ingests production conversations through OpenTelemetry, the Python and TypeScript SDKs, or voice platform webhooks. You write failures as plain-English [patterns](https://docs.agnost.ai/using-patterns), and once a conversation has been idle for 15 minutes an LLM judge reads all of it against every active pattern, with no sampling, up to your plan's event limit. Matches alert in Slack, email or webhooks, you can query results from Claude or Codex over MCP, and Auto Improve proposes a change and opens a pull request for your team to review once an experiment shows the change works.

Agnost now covers the eval side too. A failed production conversation becomes a row in an eval dataset, with the input, the expected answer and a link back to the trace, and you can edit, add or import rows. For each pattern Agnost suggests an evaluator: an LLM judge or a deterministic Python check. Experiments run the agent against the dataset in isolated Agnost sandboxes on every change and compare each run with the last. So the same tool that monitors production builds your test set from real failures and runs it on a loop. Teams already using one of the frameworks above can keep it in CI and copy each new failure Agnost finds into its test set; see [turning production failures into regression tests](/blog/production-failures-regression-tests/).

Agnost's free plan covers 100,000 events and 10,000 eval runs a month, with datasets and experiments included. Pro is $499 a month for 5,000,000 events. Enterprise adds self-hosting in your VPC. Agnost is SOC 2 Type I compliant, with Type II in progress.

## Related reading

- [Inspect AI vs DeepEval vs Promptfoo for agent evals](/blog/inspect-ai-vs-deepeval-vs-promptfoo/)
- [Best AI agent evaluation tools (2026)](/blog/best-ai-agent-evaluation-tools/)
- [Should you run LLM evals in CI or on production traffic?](/blog/llm-evals-ci-vs-production/)
- [How to turn production failures into regression tests](/blog/production-failures-regression-tests/)

## Frequently asked questions

### What are the best LLM evaluation frameworks?

The five most used open-source LLM evaluation frameworks are DeepEval (Apache-2.0, pytest-style tests with RAG, agent and multi-turn metrics), Ragas (Apache-2.0, RAG and retrieval metrics plus synthetic test sets), TruLens (MIT, the RAG triad and agent evaluators on OpenTelemetry traces), Promptfoo (MIT, YAML test suites with red teaming and a GitHub Action) and Inspect AI (MIT, agent evals in sandboxes). All five are free and run on your own machine or CI runner, calling the model provider you configure.

### DeepEval vs Ragas: which should I use?

Use Ragas when the main question is retrieval quality: it has the deeper set of RAG metrics, such as context precision, context recall, context entities recall and noise sensitivity, and it generates synthetic RAG test sets. Use DeepEval when you want tests that run like pytest in CI and cover more than RAG: it adds agent metrics such as task completion and tool correctness, multi-turn metrics, a conversation simulator, and a TypeScript SDK. Many teams use Ragas metrics while building retrieval and DeepEval as the CI test runner.

### Is Ragas good for LLM evaluation?

Yes, for RAG. Ragas is an Apache-2.0 Python library maintained by VibrantLabs. Its metrics cover retrieval (context precision and recall), generation (faithfulness, response relevancy) and agents (tool call accuracy, agent goal accuracy, topic adherence), and it generates synthetic test data for RAG and tool-use agents. It does not describe tracing or production monitoring, so it is an offline tool.

### What is TruLens used for in LLM evaluation?

TruLens instruments an LLM app with OpenTelemetry and runs feedback functions on the recorded traces. It is best known for the RAG triad (groundedness, context relevance and answer relevance) and now ships agent evaluators for plan quality, plan adherence, tool selection and tool calling. It is MIT-licensed and maintained by Snowflake, whose AI Observability product is the hosted option.

### What is an LLM evaluation framework?

An LLM evaluation framework is a library that runs your model, RAG pipeline or agent against a set of test inputs and scores the outputs, with deterministic checks such as exact match or regex and model-graded metrics such as faithfulness or a rubric judged by another LLM. You use it before release and in CI to catch regressions when you change a prompt, model or tool.

### Can an LLM evaluation framework monitor production?

Not on its own. The five frameworks here run offline against test sets. Some have hosted companions that score production traces (Confident AI for DeepEval, Snowflake AI Observability for TruLens, and Promptfoo Enterprise lists continuous monitoring). To judge real user conversations as a whole and alert on failures, add a production monitoring tool such as Agnost AI next to your framework. Agnost can also turn the failures it finds into eval datasets and run them as experiments on every change.
