# Ragas

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

Source: https://talira.ai/catalog/ragas-9hvtpb7x
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [ai / llm / evaluation](https://talira.ai/categories/ai/llm/evaluation), [ai / rag / evaluation](https://talira.ai/categories/ai/rag/evaluation), [languages / python](https://talira.ai/categories/languages/python)
- Licence: Apache-2.0[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^3]
- Backed by: [Vibrant Labs](https://talira.ai/orgs/vibrant-labs.md)
- Creator: Shahul Es and Jithin James

Ragas is an Apache-2.0 Python library for evaluating LLM applications, best known for RAG: it scores retrieval with context precision and recall and answers with faithfulness and response relevancy, and it has metrics for agents' tool calls, SQL and plain text comparison (BLEU, ROUGE, exact match). Context recall comes three ways: judged by an LLM against a reference answer, by string comparison against reference contexts, or by ID (`IDBasedContextRecall`), which compares the IDs of retrieved and reference documents with no LLM at all. Its test set generator builds a knowledge graph from your documents and writes single-hop and multi-hop questions from it, so you can start without a hand-labelled set. Vibrant Labs maintains it (its [GitHub](https://talira.ai/catalog/github-ppcgj756.md) organization was explodinggradients), and it works with [LangChain](https://talira.ai/catalog/langchain-x3527dp4.md) and observability tools.

## Links

- Website: https://www.ragas.io/
- GitHub: https://github.com/vibrantlabsai/ragas
- Docs: https://docs.ragas.io/en/stable/

## Problems it solves

- measure whether my RAG retriever actually brings back the right chunks for each question
- I have no test questions for our knowledge base and need a realistic set generated from the documents
- compute retrieval recall from document IDs without paying an LLM to judge every result
- check whether our chatbot's answers are grounded in the retrieved context or made up
- compare two chunking or embedding setups on the same question set before switching
- single-hop and multi-hop questions to stress-test a document search pipeline
- score whether an agent called the right tools with the right arguments
- write a custom LLM-as-judge metric that can only answer from a fixed set of values
- evaluate generated SQL by running it and the reference query and comparing the results
- catch a prompt or retriever change that quietly makes our RAG answers worse
- BLEU, ROUGE, chrF and exact-match scores for generated text in Python

## Features

- RAG metrics: context precision, context recall, context entities recall, noise sensitivity, response relevancy, faithfulness
- LLM-based, non-LLM (string comparison) and ID-based context recall and precision
- synthetic test set generation from your documents through a knowledge graph: single-hop and multi-hop, specific and abstract queries
- agent metrics: topic adherence, tool call accuracy, tool call F1, agent goal accuracy
- traditional metrics: BLEU, ROUGE, chrF, exact match, string presence, semantic similarity
- SQL metrics: execution-based comparison and query equivalence
- custom metrics: discrete, rubric and aspect critics with any LLM
- `ragas quickstart` CLI with a RAG evaluation project template
- integrations with LangChain, LlamaIndex and observability tools

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.40 out of 1.
Signals: backing 0.50, extensibility 0.20.

- backed by Vibrant Labs
- created by Shahul Es and Jithin James

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [DeepEval](https://talira.ai/catalog/deepeval-e9qwynsm.md): The LLM Evaluation Framework
- [promptfoo](https://talira.ai/catalog/promptfoo-qnwpp2h6.md): Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI
- [Langfuse](https://talira.ai/catalog/langfuse-a182n7e5.md): Open source AI engineering platform: AI Gateway, agent observability, evals, and prompt/skill management, built on OpenTelemetry.
- [Arize Phoenix](https://talira.ai/catalog/arize-phoenix-kqfkdry6.md): Tracing, evaluation and experiments for LLM applications and agents
- [Braintrust](https://talira.ai/catalog/braintrust-0r151jbe.md): The active observability platform for agents
- [Opik](https://talira.ai/catalog/opik-dn6qhhke.md): Open-Source LLM Observability, Evaluation & AI Agent Tracing

## Sources

[^1]: https://github.com/vibrantlabsai/ragas/blob/main/LICENSE (checked 20 Nov 2026)
[^2]: https://pypi.org/project/ragas/ (checked 20 Nov 2026)
[^3]: https://github.com/vibrantlabsai/ragas/blob/main/README.md (checked 20 Nov 2026)
