Adopt AI as fast as it improves.

AI gets good at anything it can verify. Ragas is the open-source library that makes your application verifiable: define what good looks like, see where you fall short, and let your coding agents close the gap.

Read the docs
01

Define good.

Write down what good and bad look like for your application, as metrics and test cases you can run.

from ragas.metrics.collections import (
    Faithfulness, ContextRecall,
)

faithfulness = Faithfulness(llm=llm)
recall = ContextRecall(llm=llm)

score = await faithfulness.ascore(
    user_input=question,
    response=answer,
    retrieved_contexts=contexts,
)
02

Find the gaps.

Ragas scores every step of your workflow and shows you exactly where you fall short.

vector search · ctx recall× 0.58
calendar agent · tool calls× 0.64
reranker · precision✓ 0.88
supervisor · goal accuracy✓ 0.90
03

Close them.

Fix what Ragas found, by hand or with your coding agents, and verify the fix. Then re-run when the next model ships.

runoverall
first measurement0.85 · 5 gaps
three gaps closed0.89
all five closed0.91
next model, re-runholds ✓
In code

One short file runs the whole loop.

Load your test cases, call your app, score every answer, and save the run. Then change something and run it again to see exactly what moved.

evals.py
from ragas import Dataset, experimentfrom ragas.metrics.collections import (    Faithfulness, ContextRecall,) dataset = Dataset.load(    "support_qa", "local/csv", root_dir="evals",)faithfulness = Faithfulness(llm=llm)recall = ContextRecall(llm=llm) @experiment()async def run(row):    out = await my_app(row["question"])    f = await faithfulness.ascore(        user_input=row["question"],        response=out.answer,        retrieved_contexts=out.contexts,    )    r = await recall.ascore(        user_input=row["question"],        retrieved_contexts=out.contexts,        reference=row["reference"],    )    return {**row, "response": out.answer,            "faithfulness": f.value,            "context_recall": r.value} await run.arun(dataset, name="baseline")

Animated example. Four customer support questions are run through an example app, and Ragas scores each answer for faithfulness and context recall. In the baseline run 2 of the 4 test cases fall short, with mean scores of 0.80 and 0.69. After a reranker is added and the same experiment is run again, all 4 pass, with mean scores of 0.95 and 0.92.

Example data. The API calls and file paths are real.
Why now

AI is compounding. Your adoption isn't.

Inside the labs, AI now does a growing share of the work of building AI, and progress there has roughly doubled in a year. Most companies still adopt it one cautious pilot at a time, so the distance between what AI can do and what your application does keeps growing.

When every change to your application can be verified, you can take each improvement as it lands. That is what Ragas is for.

Surf the exponential.
Frontier labsYou, with RagasMost companiesthe gaptodayAI capability in usetime
Schematic. It shows the shape of the argument, not measured data.
≈2×Anthropic's pace of capability gains, measured against its own previous 19 months.METR, 5 Nov 2026 · estimate, range 1.3× to 3×
26%of Anthropic's AI R&D work is led by Claude under human supervision, up from under 1% six months earlier.Anthropic, Sep 2026 · figure for August
≈22%of US firms report using AI in any business function, up from 18% last winter.US Census Bureau, Business Trends and Outlook Survey, Sep 2026
Proof

Don't take our word for it.

Turn the lights on.

Read the Quickstart →