ragas 0.4.4


pip install ragas

  Latest version

Released: Nov 14, 2026


Meta
Requires Python: >=3.9

Classifiers

Supercharge Your LLM Application Evaluations ๐Ÿš€

Latest release Made with Python License Apache-2.0 Ragas Downloads per month Join Ragas community on Discord Ask DeepWiki.com

Documentation | Quick start | Join Discord | Blog | NewsLetter | Careers

Objective metrics, intelligent test generation, and data-driven insights for LLM apps

Ragas is your ultimate toolkit for evaluating and optimizing Large Language Model (LLM) applications. Say goodbye to time-consuming, subjective assessments and hello to data-driven, efficient evaluation workflows. Don't have a test dataset ready? We also do production-aligned test set generation.

Key Features

  • ๐ŸŽฏ Objective Metrics: Evaluate your LLM applications with precision using both LLM-based and traditional metrics.
  • ๐Ÿงช Test Data Generation: Automatically create comprehensive test datasets covering a wide range of scenarios.
  • ๐Ÿ”— Seamless Integrations: Works flawlessly with popular LLM frameworks like LangChain and major observability tools.
  • ๐Ÿ“Š Build feedback loops: Leverage production data to continually improve your LLM applications.

:shield: Installation

Pypi:

pip install ragas

Alternatively, from source:

pip install git+https://github.com/vibrantlabsai/ragas

:fire: Quickstart

Clone a Complete Example Project

The fastest way to get started is to use the ragas quickstart command:

# List available templates
ragas quickstart

# Create a RAG evaluation project
ragas quickstart rag_eval

# Specify where you want to create it.
ragas quickstart rag_eval -o ./my-project

Available templates:

  • rag_eval - Evaluate RAG systems

Coming Soon:

  • agent_evals - Evaluate AI agents
  • benchmark_llm - Benchmark and compare LLMs
  • prompt_evals - Evaluate prompt variations
  • workflow_eval - Evaluate complex workflows

Evaluate your LLM App

ragas comes with pre-built metrics for common evaluation tasks. For example, Aspect Critique evaluates any aspect of your output using DiscreteMetric:

import asyncio
from openai import AsyncOpenAI
from ragas.metrics import DiscreteMetric
from ragas.llms import llm_factory

# Setup your LLM
client = AsyncOpenAI()
llm = llm_factory("gpt-4o", client=client)

# Create a custom aspect evaluator
metric = DiscreteMetric(
    name="summary_accuracy",
    allowed_values=["accurate", "inaccurate"],
    prompt="""Evaluate if the summary is accurate and captures key information.

Response: {response}

Answer with only 'accurate' or 'inaccurate'."""
)

# Score your application's output
async def main():
    score = await metric.ascore(
        llm=llm,
        response="The summary of the text is..."
    )
    print(f"Score: {score.value}")  # 'accurate' or 'inaccurate'
    print(f"Reason: {score.reason}")


if __name__ == "__main__":
    asyncio.run(main())

Note: Make sure your OPENAI_API_KEY environment variable is set.

Find the complete Quickstart Guide

Want help in improving your AI application using evals?

In the past 2 years, we have seen and helped improve many AI applications using evals. If you want help with improving and scaling up your AI application using evals.

๐Ÿ”— Book a slot or drop us a line: founders@vibrantlabs.com.

๐Ÿซ‚ Community

If you want to get more involved with Ragas, check out our discord server. It's a fun community where we geek out about LLM, Retrieval, Production issues, and more.

Contributors

+----------------------------------------------------------------------------+
|     +----------------------------------------------------------------+     |
|     | Developers: Those who built with `ragas`.                      |     |
|     | (You have `import ragas` somewhere in your project)            |     |
|     |     +----------------------------------------------------+     |     |
|     |     | Contributors: Those who make `ragas` better.       |     |     |
|     |     | (You make PR to this repo)                         |     |     |
|     |     +----------------------------------------------------+     |     |
|     +----------------------------------------------------------------+     |
+----------------------------------------------------------------------------+

We welcome contributions from the community! Whether it's bug fixes, feature additions, or documentation improvements, your input is valuable.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ” Open Analytics

At Ragas, we believe in transparency. We collect minimal, anonymized usage data to improve our product and guide our development efforts.

โœ… No personal or company-identifying information

โœ… Open-source data collection code

โœ… Publicly available aggregated data

To opt-out, set the RAGAS_DO_NOT_TRACK environment variable to true.

Cite Us

@misc{ragas2024,
  author       = {VibrantLabs},
  title        = {Ragas: Supercharge Your LLM Application Evaluations},
  year         = {2024},
  howpublished = {\url{https://github.com/vibrantlabsai/ragas}},
}
0.4.4 Nov 14, 2026
0.4.4rc1 Nov 13, 2026
0.4.3 Jan 13, 2026
0.4.2 Dec 23, 2025
0.4.1 Dec 10, 2025
0.4.0 Dec 03, 2025
0.3.9 Nov 11, 2025
0.3.8 Oct 28, 2025
0.3.7 Oct 14, 2025
0.3.6 Oct 03, 2025
0.3.5 Sep 17, 2025
0.3.5rc2 Sep 17, 2025
0.3.5rc1 Sep 17, 2025
0.3.4 Sep 10, 2025
0.3.3 Sep 04, 2025
0.3.3rc1 Sep 04, 2025
0.3.2 Aug 19, 2025
0.3.2rc3 Aug 19, 2025
0.3.2rc2 Aug 19, 2025
0.3.2rc1 Aug 19, 2025
0.3.1 Aug 11, 2025
0.3.0 Jul 17, 2025
0.3.0rc2 Jul 17, 2025
0.2.15 Apr 24, 2025
0.2.14 Mar 04, 2025
0.2.13 Feb 04, 2025
0.2.12 Jan 21, 2025
0.2.11 Jan 14, 2025
0.2.10 Jan 08, 2025
0.2.9 Dec 24, 2024
0.2.8 Dec 10, 2024
0.2.7 Dec 06, 2024
0.2.6 Nov 19, 2024
0.2.5 Nov 12, 2024
0.2.4 Nov 07, 2024
0.2.3 Oct 29, 2024
0.2.2 Oct 22, 2024
0.2.1 Oct 16, 2024
0.2.0 Oct 14, 2024
0.2.0b0 Oct 03, 2024
0.1.22 Oct 19, 2024
0.1.21 Oct 03, 2024
0.1.20 Sep 18, 2024
0.1.19 Sep 18, 2024
0.1.18 Sep 11, 2024
0.1.17 Sep 10, 2024
0.1.16 Sep 03, 2024
0.1.15 Aug 27, 2024
0.1.14 Aug 14, 2024
0.1.13 Aug 05, 2024
0.1.12 Jul 30, 2024
0.1.11 Jul 22, 2024
0.1.10 Jul 03, 2024
0.1.9 May 30, 2024
0.1.8 May 21, 2024
0.1.7 Apr 08, 2024
0.1.6 Apr 02, 2024
0.1.5 Mar 20, 2024
0.1.4 Mar 13, 2024
0.1.3 Feb 28, 2024
0.1.2 Feb 23, 2024
0.1.1 Feb 15, 2024
0.1.0 Feb 07, 2024
0.1.0rc1 Jan 25, 2024
0.0.22 Dec 13, 2023
0.0.21 Nov 21, 2023
0.0.20 Nov 15, 2023
0.0.19 Oct 31, 2023
0.0.18 Oct 24, 2023
0.0.17 Oct 16, 2023
0.0.16 Sep 28, 2023
0.0.15 Sep 25, 2023
0.0.14 Sep 15, 2023
0.0.13 Sep 15, 2023
0.0.12 Sep 06, 2023
0.0.11 Aug 24, 2023
0.0.10 Aug 02, 2023
0.0.9 Jul 27, 2023
0.0.8 Jul 27, 2023
0.0.7 Jul 20, 2023
0.0.6 Jul 15, 2023
0.0.5 Jul 10, 2023
0.0.4 Jul 10, 2023
0.0.3 Jun 09, 2023
0.0.3rc1 Jun 09, 2023
0.0.2 May 23, 2023
0.0.1 May 14, 2023
0.0.1a7 May 14, 2023
0.0.1a6 May 14, 2023
0.0.1a5 May 14, 2023

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
numpy (<3.0.0,>=1.21.0)
datasets (>=4.0.0)
tiktoken
pydantic (>=2.0.0)
nest-asyncio
appdirs
diskcache (>=5.6.3)
typer
rich
openai (>=1.0.0)
tqdm
instructor
pillow (>=10.4.0)
networkx
scikit-network
requests
tenacity
langchain
langchain-core
langchain-community
langchain_openai