Technology · Agentic → Evaluations · Open Source · wiki:deep

Ragas

Ragas is an open-source toolkit for evaluating and optimizing LLM applications with objective metrics (LLM-based and traditional), automatic test-data generation, and integrations with frameworks like LangChain and observability tools. It is the common OSS starting point for RAG quality loops (faithfulness, relevancy, and related metrics historically; the current API also exposes flexible metrics such as DiscreteMetric).

Install via pip install ragas; ragas quickstart rag_eval scaffolds a RAG eval project. Optional anonymized analytics (RAGAS_DO_NOT_TRACK=true to opt out).

Why it matters here

Wherever the OS grounds decisions in retrieved documents, unmeasured RAG is decoration. Ragas turns retrieval + generation into scored loops so “document-backed” claims can fail CI. Prefer it for RAG-centric research features; prefer Promptfoo/DeepEval when the bottleneck is multi-provider matrices or agent trajectory unit tests.

How it works

  1. Build or generate an eval dataset (quickstart templates or production-aligned generation).
  2. Run metrics (built-in or custom LLM-judged metrics) against app outputs/contexts.
  3. Inspect scores/reasons; feed failures back into chunking, retrieval, or prompts.
  4. Optionally close the loop with production data for continual improvement.

Related: abm-agent-behavior-mining · agent-evaluation · deepeval · topics/32-eval-harnesses

Flow

Scroll inside the canvas to pan

When to reach for it

  • Use when: the primary risk is retrieval/generation quality (faithfulness, context relevance, etc.).
  • Skip when: you need red-team/security matrices (promptfoo), process mining (pm4py), or AWS conversation harnesses (agent-evaluation) without a RAG corpus.
  • Prefer instead: DeepEval if you already standardize on pytest metrics; TruLens if you need OTEL traces + RAG triad feedback in one stack.

Limits

  • Metric/API churn: README now leads with flexible metrics — pin versions; don’t assume 2023 paper metric names forever.
  • Judge dependency: LLM metrics need keys, cost, and calibration against human labels.
  • Analytics default-on: opt out explicitly in locked-down environments.
  • Not a DMS: evaluates retrieval quality; does not replace document systems of record.

Linked from

What we checked

Claims below are backed by science sources on disk.

Toolkit / RAG eval positioning

ragas GitHub · MODERATE

Ragas is available at https://github.com/explodinggradients/ragas.

Research paper lineage

Ragas: Automated Evaluation of Retrieval Augmented Generation · STRONG

We introduce Ragas (Retrieval Augmented Generation Assessment), a framework for reference-free evaluation of Retrieval Augmented Generation (RAG) pipelines.

External mention / contrast

WikiEval human-alignment study (same paper) · ANECDOTAL

For faithfulness and context relevance, the two annotators agreed in around 95% of cases. For answer relevance, they agreed in around 90% of the cases.

In this research stack

Features and peers linked from the catalog map — not a second product surface.

Features it supports

Same cell

Stack

Document management

No DM vendor crosswalk edges yet.

Source

Primary repo github.com/vibrantlabsai/ragas · Open Source

technologies/ragas/README.md

Research inventory

9 tags · 16 out · 18 in · 3 artifacts · 1 gaps · 30 corpus docs

Catalog tags

landscape.layer
Agentic
landscape.subcategory
Evaluations
license_tag
Open Source
maps.dm
absent
maps.features
9
one_liner
Agentic
review.depth
science
slug
ragas
title
Ragas

Artifacts

  • dm_map · absent
  • features_map · present · technologies/ragas/features.md
  • readme · present · technologies/ragas/README.md

Out · alternative_to

Out · maps_to

In · alternative_to

In · in_stack

In · maps_to

Corpus tags

category
Agentic → Evaluations
dedication
open-source
feature
citations
knowledge-grounding-rag
outcome-verification
r2-30-evaluator-critic
r2-32-eval-harnesses
r2-42-intervention-preassessment
r2-47-trace-maturity-gate
testing-debugging-optimization
wt-test-debug-evaluate
kind
map_edge
tech_features
tech_quote
tech_readme
tech_science_source
tech_section
needs_deepen
false
quality
ok
section
Evidence
Features map
GitHub map
How it works
Limits & failure modes
Links
Scientific notes
What it is
When to use / skip
Why it matters here
slug
ragas
source_id
arxiv-2309-15217
ragas-github
wikieval-mention
technology
ragas

Corpus documents (30)

map_edge · 9

  • ragas → citations
  • ragas → knowledge-grounding-rag
  • ragas → outcome-verification
  • ragas → r2-30-evaluator-critic
  • ragas → r2-32-eval-harnesses
  • ragas → r2-42-intervention-preassessment
  • ragas → r2-47-trace-maturity-gate
  • ragas → testing-debugging-optimization
  • … +1 more

tech_features · 1

  • Ragas · features

tech_quote · 6

  • Ragas · arxiv-2309-15217
  • Ragas · arxiv-2309-15217
  • Ragas · arxiv-2309-15217
  • Ragas · ragas-github
  • Ragas · wikieval-mention
  • Ragas · wikieval-mention

tech_readme · 1

  • Ragas

tech_science_source · 3

  • Ragas · arxiv-2309-15217
  • Ragas · ragas-github
  • Ragas · wikieval-mention

tech_section · 10

  • Ragas · Evidence
  • Ragas · Features map
  • Ragas · GitHub map
  • Ragas · How it works
  • Ragas · Limits & failure modes
  • Ragas · Links
  • Ragas · Scientific notes
  • Ragas · What it is
  • … +2 more