Website profiles · Technology insights · Alternatives

docs.ragas.io

Evaluation framework for your AI Application

No paid content found
Visit website
Profile views 1 Outbound visits 0 Normal
Ragas Full homepage screenshot

At a glance

Category
Development
Language
English
Paid-content signal
No paid content foundObserved
Registered
Unknown
Hosting
CloudflareInferred
HTTPS certificate trusted
PassedObserved
Last updated

Website review

This review may include AI-generated content and is not individually verified. Domain, certificate and other facts come from the observed data on this page.

What is Ragas?

Ragas is an open-source evaluation framework for AI applications, documented at Ragas. It gives teams a structured way to measure how well a language-model application performs, rather than judging outputs by eye. The documentation frames it around building evaluation datasets, running experiments, and scoring results with metrics suited to the application type.

What it covers

The framework is organized around a few practical building blocks:

  • Datasets and experimentation — assemble test cases and compare runs as you change prompts, models or retrieval settings.
  • Metrics — a broad catalog grouped by task, including retrieval-augmented generation (context precision, context recall, faithfulness, response relevancy), agents and tool use (tool call accuracy, tool call F1, agent goal accuracy), natural-language comparison (factual correctness, semantic similarity), SQL execution checks, and general-purpose rubric scoring.
  • Traditional non-LLM metrics — BLEU, ROUGE, CHRF, exact match and string similarity for cases where deterministic scoring is enough.
  • Test data generation — synthetic testsets for RAG, knowledge-graph scenarios and agent/tool-use cases, including non-English and persona-based generation.
  • How-to guides — customizing models, adapting metrics to other languages, cost analysis, evaluating multi-turn conversations, and benchmarking a new LLM or a text-to-SQL agent.

Who it suits

Ragas fits teams that already have a working prototype and need to know whether a change helped. A concrete case: a support assistant that retrieves help-center articles. You would check context recall to see whether the right articles are retrieved at all, then faithfulness to catch answers that drift beyond the retrieved text, then response relevancy to catch answers that miss the question. Each metric points to a different fix — retrieval, grounding, or prompting.

The trade-off is setup effort. LLM-based metrics require model access and cost money per evaluation run, and they are judgments rather than ground truth, so they need calibration against human review. If your outputs can be checked exactly (structured SQL results, fixed-format answers), the traditional metrics are cheaper and more stable.

Next step

Start with the quick-start tutorial that matches your application — prompt, simple RAG system, workflow, or agent — and pick two or three metrics tied to your known failure modes rather than the whole catalog. If you are comparing frameworks, LangSmith and deepset document related evaluation tooling.

How do I evaluate a RAG pipeline with Ragas metrics like faithfulness and context recall?

Ragas is built for exactly this: scoring a retrieval-augmented generation (RAG) pipeline by separating what the retriever supplied from what the generator produced. Faithfulness and context recall are two of its core RAG metrics, and they answer different questions, so run them together rather than treating either as a single verdict.

What each metric tells you

  • Faithfulness checks whether the claims in the generated answer are supported by the retrieved context. It targets the generator: a low score means the model is adding unsupported statements or drifting from the sources, even when retrieval was fine.
  • Context recall checks whether the retrieved context contains the information needed for the reference answer. It targets the retriever: a low score means relevant passages were missed, so no amount of prompt tuning on the generator will fully fix the output.

Because these two fail in opposite directions, a side-by-side view is the fastest way to locate a problem. The table below shows how to read the combinations.

Faithfulness Context recall Likely cause Practical next step
High High Pipeline working as intended Keep as a baseline; test edge-case queries
High Low Retriever missing needed passages Improve chunking, embeddings or top-k retrieval
Low High Generator ignoring or overreaching beyond context Tighten prompts, lower temperature, add grounding instructions
Low Low Both stages need work Fix retrieval first, then re-measure generation

A workable evaluation loop

  1. Build a small evaluation dataset. Assemble questions with reference answers and, where possible, the source passages. Ragas also documents test-set generation for RAG if you need to bootstrap examples, but hand-checked questions are a sensible starting point.
  2. Capture pipeline outputs. For each question, log the retrieved contexts and the final answer, since both faithfulness and context recall depend on them.
  3. Score, then inspect. Run the metrics, then read the lowest-scoring samples directly. Aggregate scores hide whether the problem is one bad chunking choice or a systematic prompt issue.
  4. Change one thing at a time. Adjust retrieval or generation separately and re-run, so you can attribute any movement in scores to a specific change.

Choosing where to start

If your users complain about wrong or invented details, start with faithfulness and inspect the answers. If they complain that the system "misses the point" or ignores documents you know exist, start with context recall and inspect the retrieved chunks. For a broader picture, Ragas also lists context precision, response relevancy and noise sensitivity, which help distinguish ranking problems from missing-content problems. The Ragas documentation at Ragas covers metric definitions and the evaluation workflow in more detail.

Which Ragas metric should I use to check whether my agent's tool calls are accurate?

Use Tool Call Accuracy when you want to check whether your agent called the right tools with the right arguments, in the right order. It is the metric Ragas lists under its "Agents or Tool Use Cases" section specifically for judging tool-call correctness. For a related but different question, Tool Call F1 measures how well the agent's set of tool calls matches the expected set, which is useful when you care about precision and recall of tool selection rather than exact sequence.

Choosing between the agent metrics

Metric What it answers Best for
Tool Call Accuracy Did the agent make the correct tool calls, including arguments and order? Strict checks on a known expected trajectory
Tool Call F1 How much do the agent's tool calls overlap with the expected calls? Broader scoring when partial matches matter
Agent Goal Accuracy Did the agent achieve the user's goal? End-to-end task success, regardless of path
Topic Adherence Did the agent stay on permitted topics? Guardrails and scope control

Practical next step

Write one or two representative agent traces with the exact tool calls you expect, then score them with Tool Call Accuracy. If your agent can legitimately reach the goal through different tool sequences, pair it with Agent Goal Accuracy so you don't penalise valid alternative paths. For a concrete walkthrough, see the Ragas documentation at Ragas.

How can I generate a synthetic test dataset for my RAG or agent application with Ragas?

Ragas generates synthetic evaluation datasets by sampling from a document corpus (for RAG) or from a described scenario (for agents and tool use), then producing question–answer or task–trajectory pairs you can run through your application. It is a test-data generator built into an evaluation framework, not a data-labeling service, so the output quality depends heavily on what you feed it.

For a RAG application

Start from your own source documents. Ragas includes a testset generation workflow for RAG that builds queries across different types — single-hop questions answerable from one chunk, and multi-hop questions that require combining evidence from several chunks. The documentation also covers persona generation and custom single-hop and multi-hop query styles, so you can steer the mix rather than accept a uniform set of easy questions.

A practical sequence:

  1. Assemble a representative document sample — include the messy sections, not just the clean ones.
  2. Choose query distributions: mostly single-hop, some multi-hop, and personas that reflect real users.
  3. Generate the testset and inspect a sample by hand before trusting aggregate scores.
  4. Run your retrieval and generation pipeline, then score with retrieval metrics (context precision, context recall) and generation metrics (faithfulness, response relevancy).

For an agent or tool-using application

Agent testset generation is scenario-based: you describe the tools and the kinds of goals a user might have, and Ragas produces task instances. These pair with agent metrics such as tool call accuracy, tool call F1, agent goal accuracy, and topic adherence. If your agent is a text-to-SQL system, the SQL metrics (execution-based scoring, query equivalence) are the relevant evaluation layer.

Choosing between the two paths

Your situation Generation approach Metrics to pair
Answers questions over a document corpus RAG testset from documents, single- and multi-hop Context precision/recall, faithfulness, response relevancy
Calls APIs or tools to complete tasks Agent testset from tool descriptions and scenarios Tool call accuracy/F1, agent goal accuracy
Produces SQL from natural language Agent-style testset with SQL-oriented checks SQL execution, query equivalence

Trade-offs and a next step

Synthetic sets are cheap and broad but inherit your generator's blind spots: they tend to mirror the phrasing and assumptions in your source material, and they will not surface failures caused by inputs unlike anything you supplied. Treat them as a regression suite and a coverage check, and keep a small hand-written set of real user queries as a sanity anchor.

Concrete next step: pick ten real user questions, run them alongside a generated batch of fifty, and compare where the two sets disagree — that gap usually tells you which query types your generator is missing. For setup details and the exact generation parameters, work through the testset generation tutorials on Ragas.

How do I set up a custom judge LLM or adapt Ragas metrics for non-English evaluations?

Ragas covers both needs in its customization guides: you can point its metrics at your own judge model, and you can adapt metrics for non-English data. The two tasks are related but separate, so treat them as distinct steps in your evaluation setup.

Using a custom judge LLM

Ragas metrics that rely on an LLM judge (faithfulness, response relevancy, context precision and recall, and the agent metrics) call a model you configure. The practical route is to wrap your provider's client in the LangChain-style interface Ragas expects, then pass that object where the metric or evaluation call accepts a model. The "Customise models" and "LLM Adapters" pages under Customizations are the reference points.

Concretely, if you run an open-weight model on your own infrastructure for data-residency reasons, you bind it once and reuse it across every metric, so scores stay comparable between runs. Keep a fixed model, temperature and prompt set for the whole experiment; swapping the judge mid-series makes historical scores meaningless.

Adapting metrics for non-English data

Two things usually break when you evaluate non-English content:

  • The judge's language ability. A model that scores well in English may be weak in your target language. Validate it against a small set of human-labelled examples before trusting the numbers.
  • The metric prompts. Ragas lets you modify prompts, and its "Adapt Metrics to Languages" guide explains how to translate or rewrite them so the judge is asked in a language and phrasing it handles well.

The "Train and Align Metrics" material goes further, aligning metric behaviour with human judgments, which matters most when your language is under-represented in the judge's training data. For generating synthetic test sets in another language, the "Non-English Testset Generation" guide is the matching piece.

Choosing between the two paths

Situation Better first move
Judge is strong in your language, prompts are English-only Modify prompts to match the language of the data
Judge is weak or untested in your language Swap to a stronger multilingual model, then validate
You need scores to track human reviewers closely Train/align the metric on labelled examples
You need evaluation data, not just scoring Non-English testset generation, then score

A useful next step

Pick one metric you already trust in English, such as faithfulness, and run it on ten hand-checked non-English examples with your candidate judge. If agreement is poor, adjust the prompt language first, then consider a different model. Only after that baseline is stable should you expand to the full metric suite.

For broader context on evaluation frameworks and how they compare, the Ragas documentation itself is the primary source; LangChain and Hugging Face are useful for model selection and hosting options when you need a multilingual judge.

How can I benchmark my RAG application against a new LLM or compare evaluation runs in Ragas?

Use Ragas's Benchmarking and Experiment workflows: run the same evaluation dataset and metrics against each LLM (or each pipeline version), then compare the resulting experiment runs metric by metric.

Benchmarking a new LLM

The practical pattern is to hold everything except the model constant. Build one evaluation dataset that represents your real queries, define the metrics you care about, and run the same pipeline twice—once with your current model, once with the candidate—logging both as separate experiments. Because Ragas separates datasets, metrics and experiments, the only variable that changes is the model, which is what makes the comparison meaningful.

For a RAG application, the metric set usually splits into two questions:

Question Ragas metrics to consider
Did retrieval surface the right context? Context Precision, Context Recall, Context Entities Recall, Noise Sensitivity
Did the answer use that context and stay on point? Faithfulness, Response Relevancy

If your application is agentic or tool-using, the agent metrics (Tool Call Accuracy, Tool Call F1, Agent Goal Accuracy, Topic Adherence) are the relevant benchmark rather than the RAG metrics.

Comparing evaluation runs

Treat each run as an experiment with a clear label (model name, prompt version, date) and compare aggregate scores side by side. A few practical rules:

  • Fix the dataset. Reuse the identical evaluation set across runs; otherwise score differences reflect the questions, not the model.
  • Look at per-metric deltas, not a single number. A new LLM often trades faithfulness for recall, or fluency for precision. Decide in advance which metric you are unwilling to regress on.
  • Check cost and latency separately. Ragas's cost analysis guidance is the place to reason about token spend per run; a model that wins on quality but triples cost is a different decision.
  • Use a judge you trust. LLM-as-judge metrics drift with the judge model, so keep the judge fixed when comparing candidate generators, and align or calibrate the judge if you must change it.

A concrete scenario

Suppose you run a support-answer bot and want to test a cheaper model. Export 200 real tickets as a Ragas dataset, score both models on Faithfulness, Response Relevancy, Context Precision and Context Recall, and log two experiments. If the cheaper model drops Faithfulness by a few points but holds Precision, you can decide whether the saving justifies the risk—or add a retrieval improvement to close the gap.

Next step

Start with the "Evaluate a simple RAG system" tutorial at Ragas to get one experiment running end to end, then adapt the Benchmarking and "Evaluate a New LLM" guides to add your second model and compare the runs.

Related questions

More questions →
How Ragas Supports Evaluating AI Agents and Tool Use

Ragas includes a dedicated set of agent and tool-use evaluation capabilities: agent-specific metrics (Topic Adherence, Tool Call Accuracy, Tool Call F1, Agent Goal Accuracy), a guide for evaluating a new LLM agent, and testset generation tailored to agent and tool-use scenarios. These are relevant if your application routes requests to tools or pursues multi-step goals, rather than only answering from retrieved context.

What Ragas Covers for Agents

The documentation groups agent evaluation under "Agents or Tool Use Cases," alongside the RAG and general-purpose metric families. The listed agent metrics are:

Metric What it targets (per Ragas docs)
Topic Adherence Whether the agent stays within permitted topics
Tool Call Accuracy Correctness of tool calls the agent makes
Tool Call F1 F1-style balance of tool call precision and recall
Agent Goal Accuracy Whether the agent actually achieves the user's goal

These sit next to the RAG metrics (Context Precision, Context Recall, Faithfulness, Response Relevancy, Noise Sensitivity, Context Entities Recall) and general metrics (Aspect Critic, rubric-based scoring), so an agent that also retrieves documents can be assessed on both retrieval quality and tool behavior.

When This Fits Your Case

Use the agent metrics when your system's output includes actions, not just text — for example, an assistant that must call a search tool, a database query tool, or an internal API before answering. If your application only produces answers from retrieved passages, the RAG metrics are the better starting point; the agent metrics add little there.

Ragas also documents an "Evaluate a Text-to-SQL Agent" guide and an "Align an LLM as a Judge" guide, which are useful when tool calls produce structured output that needs its own correctness check.

Testset Generation for Agents and Tool Use

Beyond metrics, Ragas lists "Testset Generation for Agents or Tool use cases" under Test Data Generation. This matters because agent evaluation needs inputs that exercise tool selection and multi-step behavior, not just question–answer pairs. The same section includes RAG testset generation, KG building, and scenario generation, so you can build evaluation data for a system that mixes retrieval and tool calls.

Getting Started

The documented path is: install Ragas, work through the Quick Start, then follow the tutorial "Evaluate an AI Agent." From there, the how-to guides cover customizing models, adapting metrics to languages, and training/aligning metrics. The docs do not state pricing or login requirements on this page, so check the main site before assuming access terms.

A practical sequence for a new agent:

  1. Define the goal and the tools the agent may call.
  2. Generate a testset for agent/tool-use scenarios.
  3. Score runs with Tool Call Accuracy, Tool Call F1, Agent Goal Accuracy, and Topic Adherence.
  4. Use the "Evaluate a New LLM Agent" guide to structure the comparison.

If you need a quick decision: choose Ragas' agent metrics when tool-call correctness and goal completion are the failure modes you care about; stay with RAG metrics when answer grounding is the primary concern.

How to Get Started with Ragas

To get started with Ragas, install the package, run the Quick Start, then follow the tutorial that matches what you are building: a prompt, a RAG system, an AI workflow, or an AI agent. Ragas is an evaluation framework for AI applications, so the fastest path is to evaluate one small, real system you already have rather than reading the whole documentation first. The steps below follow the structure of the official docs at docs.ragas.io.

Step 1: Install Ragas

Ragas is a Python package. Install it in the environment where your AI application runs, then confirm the import works before writing any evaluation code.

pip install ragas
import ragas
print(ragas.__version__)

Expected result: the version prints without errors. If the import fails, check that you installed into the same Python environment your application uses (a common issue when a virtual environment is active in one terminal but not another).

Step 2: Run the Quick Start

The docs place Get Started → Installation → Quick Start at the front of the navigation. Work through the Quick Start before the tutorials: it shows the smallest complete evaluation loop — supply a dataset, choose a metric, run the evaluation, read the scores. Once that loop runs end to end, every later page is a variation on it.

Step 3: Pick the tutorial that matches your application

The Tutorials section is organized by application type. Choose based on what you are actually evaluating:

If you are building… Follow this tutorial What you will practice
A single prompt Evaluate a prompt Scoring prompt outputs against criteria
A retrieval-augmented system Evaluate a simple RAG system Retrieval and generation quality metrics
A multi-step pipeline Evaluate an AI Workflow Evaluating intermediate and final outputs
A tool-using system Evaluate an AI Agent Agent-specific metrics such as tool call accuracy

Start with the one closest to your current project. Running one tutorial against your own data teaches more than reading all four.

Step 4: Learn the core concepts

The Core Concepts section explains the three things every Ragas evaluation combines:

  • Datasets — the inputs, contexts, responses, and reference answers your evaluation runs on.
  • Metrics — the scoring functions. The docs group them into families: RAG metrics (context precision, context recall, noise sensitivity, response relevancy, faithfulness), agent and tool-use metrics (topic adherence, tool call accuracy, tool call F1, agent goal accuracy), natural language comparison (factual correctness, semantic similarity), traditional non-LLM metrics (BLEU, ROUGE, CHRF, exact match, string similarity), SQL metrics, and general-purpose metrics (aspect critic, rubric-based scoring).
  • Experimentation — running evaluations repeatedly to compare versions of your application.

Read the Metrics Overview and Available Metrics pages with your own use case in mind. For a RAG system, faithfulness and response relevancy are the natural starting points; for an agent, tool call accuracy and agent goal accuracy.

Step 5: Use the how-to guides when you hit a specific need

The How-to Guides are task-oriented and are best consulted on demand rather than read front to back. Common entry points:

  • Customise models and LLM Adapters — point Ragas at the model provider you already use.
  • Run Config and Caching — control how evaluations execute and avoid repeating expensive calls.
  • Modify Prompts and Adapt Metrics to Languages — adjust metric behavior, including for non-English applications.
  • Testset Generation — generate evaluation data, including single-hop and multi-hop queries and non-English testsets.
  • Prompt Evaluation and Optimization — iterate on prompts systematically rather than by trial and error.

Practical tips

  • Evaluate a small sample first. A handful of examples is enough to confirm your dataset schema and metric choices are right before running a full evaluation.
  • Match metrics to your architecture. Applying RAG retrieval metrics to a system with no retrieval step produces scores that do not mean anything.
  • Treat scores as comparisons, not absolutes. The Experimentation concept exists because the useful signal is usually the change between two versions of your application.

The docs also include benchmarking guides (evaluating a new LLM, aligning an LLM as a judge, evaluating a text-to-SQL agent) and a RAG evaluation guide for evaluating and improving a RAG app — useful once the basics are working.

Can Ragas Generate Test Datasets for RAG and Agent Applications?

Yes. Ragas (docs.ragas.io) documents test data generation as a first-class capability, covering both RAG applications and agents/tool-use cases. According to the site's navigation, the Test Data Generation section includes RAG testset generation, KG building, scenario generation, and testset generation for agents or tool use cases. The How-to Guides add customization options: non-English testset generation, persona generation, custom single-hop queries, custom multi-hop queries, and using pre-chunked data.

The condition to keep in mind: these pages describe the framework's features and workflows, not a hosted data service. You generate testsets by running Ragas in your own environment, so you need a working Python setup and the LLM or model access your generation config expects.

What Ragas can generate

Generation target What it produces Where it fits
RAG testsets Question/answer-style evaluation samples built from your knowledge base Evaluating retrieval and generation quality of a RAG pipeline
KG building A knowledge graph representation used as the basis for scenario and query generation Grounding generated tests in your source documents
Scenario generation Scenarios that seed agent/tool-use tests Testing agents against realistic situations rather than one-off prompts
Agent/tool-use testsets Test cases for agentic or tool-calling behavior Checking tool selection and task completion
Custom single-hop queries Simpler queries you define or shape yourself Targeted checks on straightforward retrieval
Custom multi-hop queries Queries requiring multiple reasoning or retrieval steps Stress-testing complex RAG behavior
Persona generation Synthetic user personas that drive query diversity Broadening coverage beyond your own assumptions
Non-English testsets Test data in languages other than English Multilingual applications

How generation fits the Ragas workflow

Ragas is described as an evaluation framework for AI applications. Testset generation is one stage of that loop: you produce a dataset, then score your application against it using the available metrics. The site organizes metrics by application type, which tells you what a generated testset is meant to feed:

  • RAG metrics — context precision, context recall, context entities recall, noise sensitivity, response relevancy, faithfulness.
  • Agent or tool-use metrics — topic adherence, tool call accuracy, tool call F1, agent goal accuracy.
  • General-purpose and comparison metrics — factual correctness, semantic similarity, aspect critic, rubric-based scoring, and traditional non-LLM metrics such as BLEU, ROUGE, CHRF, and exact match.

The practical implication: decide which metrics you will report before generating data. A RAG testset aimed at faithfulness and context recall looks different from an agent testset aimed at tool call accuracy, and Ragas separates the generation paths accordingly.

Getting started

The site's Get Started path lists Installation, Quick Start, and Tutorials. The tutorials include evaluating a prompt, a simple RAG system, an AI workflow, and an AI agent — a sensible order if you are new to the framework. For generation specifically, start from the Test Data Generation section, then consult the How-to Guides when you need customization.

A reasonable first pass, for example when you have a document collection and want a RAG testset:

  1. Install Ragas and confirm the Quick Start runs in your environment.
  2. Build the knowledge graph from your source documents (KG building).
  3. Generate a RAG testset from that graph.
  4. Score your pipeline with RAG metrics such as context precision and faithfulness.
  5. If coverage is thin, add custom single-hop or multi-hop queries, or generate personas to diversify the questions.

For an agent, the equivalent path runs through scenario generation and agent/tool-use testset generation, then the agent metrics above.

Practical considerations

  • Customization is documented, not automatic. Non-English testsets, personas, and custom query types each have their own guide; plan to configure them rather than expect them by default.
  • Pre-chunked data is supported. If your documents are already split, the "Using Pre-chunked Data" guide covers that case, which matters when your chunking strategy is fixed by your retrieval stack.
  • Pair generation with optimization. The site also documents prompt evaluation and systematic prompt optimization, so generated testsets can feed improvement work, not just scoring.
  • Pricing and access are not stated on the pages reviewed. Treat Ragas as software you run; check installation requirements and any model provider costs on your side.

If your goal is simply to know whether Ragas covers testset generation for RAG and agents, the answer is yes, with dedicated sections for both and documented customization for query type, persona, language, and pre-chunked input.

What Evaluation Metrics Does Ragas Provide?

Ragas provides four families of evaluation metrics: RAG metrics (context precision, context recall, faithfulness, response relevancy, and others), agent/tool-use metrics (tool call accuracy, tool call F1, agent goal accuracy, topic adherence), general-purpose LLM-judged metrics (aspect critic and rubric-based scoring), and traditional non-LLM metrics (BLEU, ROUGE, CHRF, exact match, string similarity). Which set you use depends on what you are evaluating: a retrieval pipeline, an agent's tool behavior, open-ended output quality, or similarity to a reference answer.

RAG metrics

These are the core of Ragas and target retrieval-augmented generation systems, where you need to judge both the retrieved context and the generated answer.

Metric What it measures
Context Precision Whether relevant chunks in the retrieved context are ranked near the top
Context Recall Whether the retrieved context covers the information needed to answer
Context Entities Recall Whether key entities from the reference are present in the retrieved context
Noise Sensitivity How much incorrect or irrelevant content in the context affects the answer
Response Relevancy Whether the answer actually addresses the question asked
Faithfulness Whether claims in the answer are supported by the retrieved context

A practical split: context precision, context recall, and context entities recall evaluate the retriever; faithfulness and response relevancy evaluate the generator. Noise sensitivity sits between them, showing how robust the pipeline is to imperfect retrieval. If you are diagnosing a RAG app, running retrieval metrics and generation metrics separately tells you which half to fix.

Agent and tool-use metrics

For agents that call tools or take multi-step actions, Ragas offers metrics aimed at the trajectory rather than a single answer:

  • Tool Call Accuracy — whether the agent called the right tools.
  • Tool Call F1 — a precision/recall-style balance over tool calls.
  • Agent Goal Accuracy — whether the agent actually achieved the user's goal.
  • Topic Adherence — whether the agent stayed within its intended scope.

For example, if you are evaluating a support agent that looks up orders and issues refunds, tool call accuracy catches wrong-tool selection, while agent goal accuracy catches cases where the right tools were called but the task still failed.

General-purpose metrics

When your task is not RAG or agent-specific, Ragas provides LLM-judged metrics you can point at almost any output:

  • Aspect Critic — score an output against a specific criterion you define (for example, harmlessness or conciseness).
  • Simple Criteria Scoring — a lightweight pass/fail or scored judgment against a stated criterion.
  • Rubric-based scoring — score against a detailed rubric, either shared across all samples or defined per instance (instance-specific rubrics).

These are the right choice when you have a quality bar that is easier to describe in words than to compute. The trade-off is that they depend on an LLM judge, so results reflect the judge model's behavior.

Traditional non-LLM metrics

Ragas also includes deterministic metrics that need no LLM call:

  • BLEU, ROUGE, CHRF — n-gram and character-based overlap with a reference answer.
  • Non-LLM string similarity — direct string comparison.
  • Exact match — strict equality with the expected answer.
  • String presence — whether a given string appears in the output.

These are cheap, fast, and reproducible, which makes them useful for regression tests and CI. Their limitation is that they reward surface similarity, not correctness — a paraphrased but correct answer can score poorly on BLEU or exact match.

Specialized metric groups

Beyond the four main families, the documentation lists additional groups for narrower tasks:

  • NVIDIA metrics — answer accuracy, context relevance, and response groundedness.
  • Natural language comparison — factual correctness and semantic similarity.
  • SQL — SQL execution-based scoring, a Datacompy-based score, and SQL query equivalence.
  • Summarization — metrics for evaluating summaries.

How to choose

Start from the artifact you are testing. Evaluating retrieval and grounded answers: use the RAG metrics. Evaluating an agent's decisions: use the tool-use and goal metrics. Evaluating open-ended quality against your own standard: use aspect critic or rubrics. Needing fast, deterministic checks in a pipeline: use the traditional metrics. Most real evaluations combine several — for instance, context recall plus faithfulness plus exact match on a structured field.

Metric definitions and usage examples are documented per metric in the Ragas docs under Core Concepts → Metrics.

What is Ragas and what is it used for?

Ragas is an open-source evaluation framework for AI applications, documented at docs.ragas.io. You use it to measure the quality of AI systems—especially retrieval-augmented generation (RAG) pipelines, agents, and prompts—by running them against datasets and scoring the outputs with defined metrics. It fits teams that need repeatable, metric-based checks on an AI application rather than ad-hoc manual review.

What Ragas actually does

Ragas sits alongside your AI application and evaluates its outputs. The documentation organizes this around three building blocks:

  • Datasets — structured collections of inputs, contexts, and responses to evaluate against.
  • Metrics — scoring functions that quantify quality dimensions (for example, whether a response is grounded in retrieved context).
  • Experimentation — running evaluations and comparing results across versions or configurations.

The framework is described as an "evaluation framework for your AI Application," and its documentation is structured to support both first-time setup and deeper customization.

What you can evaluate

The documentation's tutorials and use-case sections map to distinct application types:

Application type What gets evaluated
Prompt Quality of model responses to a prompt
Simple RAG system Retrieval and generation quality together
AI workflow Multi-step pipelines
AI agent Agent behavior, including tool use

The metric categories

Metrics are the core of Ragas, and the docs group them by what they measure:

RAG metrics

  • Context Precision and Context Recall — how well retrieved context matches what's needed
  • Context Entities Recall and Noise Sensitivity — entity coverage and robustness to irrelevant context
  • Response Relevancy and Faithfulness — whether the answer addresses the question and stays grounded in context

Agent and tool-use metrics

  • Topic Adherence, Tool Call Accuracy, Tool Call F1, and Agent Goal Accuracy

Natural language comparison

  • Factual Correctness and Semantic Similarity

Traditional non-LLM metrics

  • Non-LLM string similarity, BLEU, CHRF, ROUGE, string presence, and exact match

SQL metrics

  • SQL execution-based scoring, Datacompy score, and SQL query equivalence

General-purpose metrics

  • Aspect critic, simple criteria scoring, and rubrics-based scoring (including instance-specific rubrics)

There are also Nvidia-specific metrics (answer accuracy, context relevance, response groundedness) and a summarization task category.

When Ragas is a good fit

Choose Ragas if you want to:

  • Quantify RAG quality with metrics that separate retrieval problems from generation problems.
  • Evaluate agents on tool-call correctness and goal completion, not just final answer text.
  • Compare versions systematically — the experimentation and benchmarking sections support evaluating a new LLM or comparing configurations.
  • Generate test data — the docs include testset generation for RAG, knowledge-graph building, scenario generation, and agent/tool-use testsets.
  • Customize evaluation — you can modify prompts, adapt metrics to other languages, train and align metrics, and use LLM adapters, caching, and run configs.

If you only need a one-off manual read of a few outputs, the framework's setup overhead may not be worth it.

How to get started

The documentation's path is: Installation → Quick Start → Tutorials → Core Concepts → How-to Guides.

  1. Install the package (see the Installation page for the current command).
  2. Work through the Quick Start to run a first evaluation.
  3. Pick the tutorial matching your application type (prompt, RAG, workflow, or agent).
  4. Read Core Concepts on datasets, metrics, and experimentation before scaling up.
  5. Use How-to Guides for customization, optimizers, and benchmarking.

A practical first task: evaluate one simple RAG system with Context Precision, Context Recall, Response Relevancy, and Faithfulness, then inspect which metric is weakest before changing your pipeline.

Common sticking points

  • Metric choice matters more than tooling. Faithfulness and Response Relevancy answer different questions; pick metrics that map to the failure you're investigating.
  • LLM-based metrics need a judge model. Several metrics rely on an LLM as evaluator; the docs cover aligning an LLM as a judge and customizing models.
  • Non-English applications need adaptation. The docs include adapting metrics to languages and non-English testset generation, so plan for this if your app isn't English-only.
  • Test data quality caps evaluation quality. Use the testset generation guides rather than hand-writing a handful of cases if you want results you can trust.

The documentation does not state pricing or login requirements on the pages reviewed, so check the site directly for current access terms.

Website Overview

Page metadata, canonical configuration and social previews work together to provide more consistent search and sharing presentation. An active inbound-mail setup with incomplete authentication may leave the domain more open to impersonation. Provider hosting alone does not close that gap.

Domain and Registration

Unknown

DNS and Email

The observed email authentication setup is incomplete: SPF is missing. The lowest TTL is 60 seconds, supporting rapid record changes at the cost of more frequent lookups. Nameservers are provided by Amazon Route 53, indicating managed DNS hosting. MX records point to the Google Workspace email service. TXT records include verification markers for Google. Such markers may also remain after a service stops being used.

TLS and Certificates

The public key uses EC with 256 bits. The server supplied a complete certificate chain. No organization name is present in the certificate; the available fields are consistent with domain validation. The certificate was issued by Let's Encrypt, commonly associated with automated certificate services. The certificate's total validity is about 89 days, consistent with a short renewal cycle.

HTTP and Browser Security

The response lacks these common security headers: HSTS, CSP, Permissions-Policy, clickjacking protection. CORS permits any origin to read this response. This is common for public resources; sensitive responses need narrower handling. No X-Powered-By header was found, reducing one common source of backend fingerprinting information. The cf-ray response header indicates a CDN or caching proxy in the delivery path. No obvious internal addresses or debug information were found in the headers.

Technology Stack Analysis

The public page identifies mkdocs-1.6.1, mkdocs-material-9.7.0+insiders-4.53.17, Cloudflare without precise versions, leaving fewer clues for version-specific scanning.

Search and Social Sharing

The Generator tag identifies mkdocs-1.6.1, mkdocs-material-9.7.0+insiders-4.53.17, making the publishing system easier to fingerprint. Twitter Card metadata is configured. The title has 5 characters, within a common display range. A meta description is present, with 44 characters. The observed directives allow indexing and link following.

Hosting and Email

DNSAmazon Route 53
HostingCloudflare
EmailGoogle Workspace
Approximate IP geolocation (inferred; a CDN or proxy may differ from the origin server) United States flagUnited States Inferred 2606:4700::6810:fd78

Registration details

RDAP / WHOIS

Unknown

DNS records

DNS

TypeNameValueTTLPriority
Areadthedocs.io104.16.253.120300—
Areadthedocs.io104.16.254.120300—
AAAAreadthedocs.io2606:4700::6810:fd78300—
AAAAreadthedocs.io2606:4700::6810:fe78300—
MXragas.iosmtp.google.com3001
NSragas.ions-1200.awsdns-22.org172800—
NSragas.ions-1680.awsdns-18.co.uk172800—
NSragas.ions-481.awsdns-60.com172800—
NSragas.ions-554.awsdns-05.net172800—
TXTragas.iogoogle-site-verification=vOXVZ8GOxZxfs75XvOXqgBM9rXpJQ1iZlJPPT8Jtj5M60—
CNAMEdocs.ragas.ioreadthedocs.io300—
DMARC_dmarc.ragas.iov=DMARC1; p=none;300—

TLS and certificates

TLS / SSL

AssessmentNormal configuration
Supported protocolsTLSv1.2、TLSv1.3
Negotiated protocolTLSv1.3
Certificate subjectdocs.ragas.io
IssuerLet's Encrypt
Valid until2026-12-03T18:50 · Remaining when checked: 41 days
Verification detailsCertificate trust: Passed · Hostname match: Passed

HTTP response headers

HTTP

HeaderValue
content-typetext/html; charset=utf-8
cache-controlmax-age=1200
servercloudflare
x-content-type-optionsnosniff
referrer-policyno-referrer-when-downgrade
access-control-allow-origin*

Identified technologies

mkdocs-1.6.1, mkdocs-material-9.7.0+insiders-4.53.17Cloudflare

Pages, Search and Sharing

Meta descriptionEvaluation framework for your AI Application
Canonical URLhttps://docs.ragas.io/en/stable/
LanguageEnglish (default)
Twitter Cardsummary_large_image
All bots 0 allowed · 0 disallowed

Recent Updates

  • Website images
  • Screenshots
  • Website Technologies
  • Pages and Search Information

User reviews (0)

  • No reviews yet.