---
title: "ragas"
type: "tool"
slug: "vibrantlabsai-ragas"
canonical_url: "https://www.graphcanon.com/tools/vibrantlabsai-ragas"
github_url: "https://github.com/vibrantlabsai/ragas"
homepage_url: "https://docs.ragas.io"
stars: 14704
forks: 1538
primary_language: "Python"
license: "Apache-2.0"
categories: ["evaluation-observability"]
tags: ["llmops", "evaluation", "llm"]
updated_at: "2026-07-07T19:47:25.038518+00:00"
---

# ragas

> Supercharge Your LLM Application Evaluations

Ragas is a Python toolkit for evaluating and optimizing Large Language Model (LLM) applications with objective metrics, intelligent test generation, and data-driven insights.

## Facts

- Repository: https://github.com/vibrantlabsai/ragas
- Homepage: https://docs.ragas.io
- Stars: 14,704 · Forks: 1,538 · Open issues: 478 · Watchers: 52
- Primary language: Python
- License: Apache-2.0
- Last pushed: 2026-02-24T07:47:19+00:00

## Categories

- [Evaluation & Observability](/categories/evaluation-observability.md)

## Tags

llmops, evaluation, llm

## Related tools

- [langflow](/tools/langflow-ai-langflow.md) - Langflow is a powerful platform for building and deploying AI-powered agents and workflows. (★ 151,311)
- [ai-engineering-from-scratch](/tools/rohitg00-ai-engineering-from-scratch.md) - Curriculum for building AI systems from scratch (★ 37,583)
- [langfuse](/tools/langfuse-langfuse.md) - Open source AI engineering platform (★ 30,631)
- [FastGPT](/tools/labring-fastgpt.md) - FastGPT is a knowledge-based platform for developing and deploying complex question-answering systems using LLMs, offering out-of-the-box capabilities like data processing, RAG retrieval, and visual A (★ 28,855)
- [mlflow](/tools/mlflow-mlflow.md) - The open source AI engineering platform for agents, LLMs, and ML models (★ 26,923)
- [llm-action](/tools/liguodongiot-llm-action.md) - 分享大模型技术原理与实战经验，涵盖工程化和应用落地 (★ 24,670)
- [promptfoo](/tools/promptfoo-promptfoo.md) - Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI. (★ 23,004)
- [vector](/tools/vectordotdev-vector.md) - A high-performance observability data pipeline (★ 22,152)

## README (excerpt)

```text
<h1 align="center">
  <img style="vertical-align:middle" height="200"
  src="https://raw.githubusercontent.com/vibrantlabsai/ragas/main/docs/_static/imgs/logo.png">
</h1>
<p align="center">
  <i>Supercharge Your LLM Application Evaluations 🚀</i>
</p>

<p align="center">
    <a href="https://github.com/vibrantlabsai/ragas/releases">
        <img alt="Latest release" src="https://img.shields.io/github/release/vibrantlabsai/ragas.svg">
    </a>
    <a href="https://www.python.org/">
        <img alt="Made with Python" src="https://img.shields.io/badge/Made%20with-Python-1f425f.svg?color=purple">
    </a>
    <a href="https://github.com/vibrantlabsai/ragas/blob/master/LICENSE">
        <img alt="License Apache-2.0" src="https://img.shields.io/github/license/vibrantlabsai/ragas.svg?color=green">
    </a>
    <a href="https://pypi.org/project/ragas/">
        <img alt="Ragas Downloads per month" src="https://static.pepy.tech/badge/ragas/month">
    </a>
    <a href="https://discord.gg/5djav8GGNZ">
        <img alt="Join Ragas community on Discord" src="https://img.shields.io/discord/1119637219561451644">
    </a>
    <a target="_blank" href="https://deepwiki.com/vibrantlabsai/ragas">
      <img 
        src="https://devin.ai/assets/deepwiki-badge.png" 
        alt="Ask DeepWiki.com" 
        height="20" 
      />
    </a>
</p>

<h4 align="center">
    <p>
        <a href="https://docs.ragas.io/">Documentation</a> |
        <a href="#fire-quickstart">Quick start</a> |
        <a href="https://discord.gg/5djav8GGNZ">Join Discord</a> |
        <a href="https://blog.ragas.io/">Blog</a> |
        <a href="https://newsletter.ragas.io/">NewsLetter</a> |
        <a href="https://www.ragas.io/careers">Careers</a>
    <p>
</h4>

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:

```bash
pip install ragas
```

Alternatively, from source:

```bash
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:

```bash
# 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`:

```python
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 'accura
```

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/vibrantlabsai-ragas`](/api/graphcanon/tools/vibrantlabsai-ragas)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
