# Ragas Python Library

**Canonical:** https://apis.io/apis/ragas-ai/ragas/  
**Provider:** Ragas — https://apis.io/providers/ragas-ai/  
**Documentation:** https://docs.ragas.io/

Ragas Python Library is published by [Ragas](https://apis.io/providers/ragas-ai/) on the [APIs.io](https://apis.io/) network. Tagged areas include Python, Library, Evaluation, and RAG. The published artifact set on APIs.io includes API documentation.

The Ragas Python library is the primary surface of the project, installed via `pip install ragas` and imported as `ragas`. It exposes evaluation entry points (`ragas.evaluate`), metric classes (Faithfulness, AnswerRelevancy, ContextPrecision, ContextRecall, FactualCorrectness, SemanticSimilarity, ToolCallAccuracy, AgentGoalAccuracy, and more), dataset generation utilities, and integrations with LangChain and LlamaIndex. The library is not an HTTP API — it is consumed in-process by Python evaluation scripts, notebooks, and CI pipelines.

## Machine-readable artifacts (5)

- **Documentation** — https://docs.ragas.io/
- **SourceCode** — https://github.com/explodinggradients/ragas
- **SDKs** — https://pypi.org/project/ragas/
- **License** — https://github.com/explodinggradients/ragas/blob/main/LICENSE
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/ragas-ai/refs/heads/main/apis.yml

## Tags

Python, Library, Evaluation, RAG

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/ragas-ai/ragas/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/ragas-ai/.
