Ragas

Stale
GitHub Python Apache-2.0

Description

Ragas is a framework for evaluating RAG (Retrieval Augmented Generation) systems. It provides various evaluation metrics including faithfulness, answer relevance, context precision, helping developers optimize RAG application performance.

Key Features

  • Objective evaluation metrics using both LLM-based and traditional approaches for precise LLM app assessment
  • Automatic test data generation covering a wide range of scenarios for RAG systems
  • Seamless integrations with LangChain, major observability tools, and popular LLM frameworks
  • Production-aligned feedback loops leveraging real data to continually improve LLM applications
  • Pre-built quickstart templates for RAG evaluation, agent evaluation, and LLM benchmarking
  • DiscreteMetric support for custom aspect evaluation with fine-grained scoring and reasoning

Use Cases

💡 Evaluating RAG pipeline quality with faithfulness, relevance, and context precision metrics
💡 Benchmarking different LLM prompts and configurations to find optimal settings
💡 Generating synthetic test datasets for stress-testing retrieval and generation components
💡 Building CI/CD evaluation gates for LLM-powered applications in production

Strengths & Limitations

Strengths

  • High community interest (15.3k stars)
  • Permissive open-source license (Apache-2.0)
  • Established track record (3 years in production)

Quick Start

pip install ragas && ragas quickstart rag_eval -o ./my-project

Related Projects

TruLens

3.5k · Python
Active A

TruLens is an open-source tool for evaluating and tracking LLM apps. It provides specialized evaluation for RAG applications including context relevance, groundedness, and answer relevance.

llmevaluationobservability +1
  • · OpenTelemetry-based tracing with structured OTEL spans
  • · 7 agentic evaluators: consistency, efficiency, plan adherence, quality, tool selection, tool calling, tool quality
  • · Batch and inline evaluation with configurable workers

DeepEval

17.6k · Python
Active A

DeepEval is an open-source evaluation framework for LLM applications. It provides rich evaluation metrics and tools, supporting unit testing and integration testing to help developers build reliable LLM applications.

llmevaluationtesting +1
  • · Pytest-compatible LLM evaluation framework with ready-to-use metrics for agents, RAG, and chatbots
  • · Agentic metrics including Task Completion, Tool Correctness, Step Efficiency, and Plan Adherence
  • · RAG metrics covering Answer Relevancy, Faithfulness, Contextual Recall/Precision/Relevancy, and RAGAS

PromptTools

3.0k · Python
Stale B

PromptTools provides open-source tools for prompt testing and experimentation, supporting multiple LLMs (OpenAI, LLaMA) and vector databases (Chroma, Weaviate, LanceDB) to help developers systematically evaluate and optimize RAG systems.

prompt-testingragevaluation +3
  • · Open-source prompt testing and experimentation across multiple LLM providers
  • · Supports OpenAI, Anthropic, LLaMA, Mistral, Gemini, HuggingFace, and more
  • · Vector database evaluation: Chroma, Weaviate, Qdrant, LanceDB, Pinecone

Production Agentic RAG Course

8.3k · Python
Normal A

A production-focused Agentic RAG course teaching how to build scalable, reliable RAG agent systems with indexing strategies, retrieval optimization, and monitoring.

ragproductioncourse +2
  • · 7-week progressive course covering infrastructure to Agentic RAG
  • · Production-grade hybrid search: BM25 keyword + vector semantic retrieval
  • · LangGraph integration for intelligent decision-making and query rewriting

Related Articles