# Ragas is a Python toolkit for scoring and testing LLM applications

> Ragas is a Python library for evaluating LLM applications with scoring metrics, generated test datasets and feedback from production data.

- Project: ragas by vibrantlabsai
- List: Built for AI
- Kind: library
- Works with: LangChain, OpenAI
- Noticed: 16,442 GitHub stars (when we found it)
- Added: 2026-11-27T10:07:58+00:00
- Web page: https://ai-news.ikangai.com/built/ragas/

Ragas is a Python library for evaluating large language model applications. According to the README, it offers objective metrics, what it calls intelligent test generation, and data-driven insights for LLM apps. The metrics include both LLM-based and traditional ones, and it can generate test datasets for teams that have none ready. It also lists integrations with LangChain and major observability tools. The author writes that production data can be used to improve an application over time.

Installation is possible with pip install ragas or directly from the GitHub source. The ragas quickstart command can scaffold a rag_eval project in a chosen folder. Templates for agent_evals, benchmark_llm, prompt_evals and workflow_eval are listed as coming soon. The main example defines a DiscreteMetric with two allowed values, accurate or inaccurate, and runs it through llm_factory with an OpenAI client set to gpt-4o. It requires an OPENAI_API_KEY environment variable. The README's badge gives the license as Apache-2.0.

The author writes that usage data is collected in anonymized form and links to the collection code and to aggregated data. Setting RAGAS_DO_NOT_TRACK to true turns this off. The README does not say how closely LLM-based scores match human judgments, so readers would need to check that against their own cases.

## In the author's words

> Ragas is your ultimate toolkit for evaluating and optimizing Large Language Model (LLM) applications.

## When to reach for it

A reader who needs to check an LLM app's output against a specific criterion can use DiscreteMetric, which limits the judge to a fixed set of labels instead of free-form grading. That can replace reviewing outputs one by one, but only if the scores are first checked against the reader's own examples.

## See it

- [ragas](https://github.com/vibrantlabsai/ragas)
- [Website](https://docs.ragas.io)

---

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it.
