Skip to content

Menu

Ragas logo

Ragas

Published

AI Testing

At a glance

What it is
Ragas is an open-source Python library for evaluating LLM applications, best known for its RAG metrics.
Price from
Open source Details
Best for
Measuring retrieval and answer quality in RAG pipelines; Teams that want evaluation in code rather than a hosted dashboard
Official site
docs.ragas.io
Last checked
November 2026
Watch out for
Analytics are on by default, and you must set RAGAS_DO_NOT_TRACK=true to disable them.

Ragas is an open-source Python library for evaluating LLM applications, best known for its RAG metrics. The README describes it as a toolkit for evaluating and optimizing LLM applications with objective metrics, test set generation and data-driven insights. It started under the explodinggradients GitHub organisation. The repository is now under the vibrantlabsai organisation, maintained by Vibrant Labs, and the docs stay at docs.ragas.io. It is licensed under Apache-2.0.

The docs frame Ragas as a way to move from informal vibe checks to a repeatable evaluation loop: make a change, run evaluations, review results, then iterate. You can use built-in metrics or write custom ones with decorators, for example a discrete metric that uses an LLM as a judge. A CLI command, ragas quickstart rag_eval, scaffolds a RAG evaluation project. The README lists other templates for agents, prompts and workflows as coming soon. Ragas also includes dataset management and result tracking for experiments.

The metrics page covers RAG metrics like context precision, context recall, faithfulness and response relevancy, plus agent and tool-use metrics, SQL metrics, rubric-based scoring and classic text metrics such as BLEU, ROUGE and exact match. The docs name LangChain and LlamaIndex among the frameworks it works with. One caveat: the README says analytics are on by default, and you turn them off by setting RAGAS_DO_NOT_TRACK=true.

Key features

RAG metrics
Built-in metrics include context precision, context recall, context entities recall, noise sensitivity, faithfulness and response relevancy.
Agent and tool-use metrics
Topic adherence, tool call accuracy, tool call F1 and agent goal accuracy score agent behaviour.
Traditional text metrics
Non-LLM measures such as BLEU, ROUGE, chrF, string presence and exact match are available alongside LLM-based ones.
Custom metrics
You can define your own metrics with decorators, including LLM-judge metrics like a discrete pass or fail check.
Test set generation
The README lists automatic generation of test datasets as a core feature.
Quickstart templates
The ragas quickstart command creates a starter RAG evaluation project.
Framework integrations
The docs name LangChain and LlamaIndex among supported frameworks.

Pricing

As of November 2026, Ragas is open source under the Apache-2.0 license and free to install with pip install ragas. LLM-based metrics call an LLM you configure, so those model calls are billed by your provider. The team behind it, Vibrant Labs, offers consulting help by booking a call or by email, with no prices published.

Best for

  • Measuring retrieval and answer quality in RAG pipelines
  • Teams that want evaluation in code rather than a hosted dashboard
  • Comparing prompt or retrieval changes with repeatable experiments
  • Scoring agent tool calls against expected behaviour

Limitations

  • Analytics are on by default, and you must set RAGAS_DO_NOT_TRACK=true to disable them.
  • LLM-based metrics make one or more LLM calls each, according to the docs, which adds model cost and latency to every evaluation run.
  • Several quickstart templates, including agent and prompt evaluation, are marked as coming soon in the README.
  • It is a Python library with no hosted product listed, so dashboards, sharing and long-term result storage are yours to build or pair with another tool.
  • The GitHub organisation has changed from explodinggradients to vibrantlabsai, so older links and install-from-source commands may point to the old location.

Verdict

Ragas is a practical, free way to put numbers on RAG and agent quality, and its metric list is broad. It works best for teams comfortable running evaluations in Python and paying for the judge model calls. If you need a hosted UI with tracing and collaboration, you will likely pair it with an observability platform.

Sources

Written from the vendor's own site and documentation, checked November 2026. We have no paid relationship that affects what this page says.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…