Promptfoo vs Ragas: open-source AI and LLM evaluation tools compared
Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.
Summary
Promptfoo: CLI and library for LLM evaluations, side-by-side model comparison and red teaming of LLM-based applications.
Ragas: Python toolkit for evaluating LLM applications with LLM-based and traditional metrics and test set generation.
Both are listed under AI and LLM evaluation. The table gives repository metrics from the GitHub API with their fetch date, then the documented facts used for every comparison in this category, each linked to the README or docs page it comes from. A cell reads "not documented" when the fact was not found in the project's documentation (1 of 12 fact cells here); that does not mean the feature is absent.
Side by side
| Fact | Promptfoo | Ragas |
|---|---|---|
| Stars | 25,3711 | 15,8241 |
| Forks | 2,3531 | 1,7181 |
| Contributors | 3491 | 2461 |
| Last release | 2026-09-181 | 2026-01-131 |
| Last commit | 2026-09-221 | 2026-02-241 |
| Commits in 90 days | 7751 | 01 |
| License | MIT1 | Apache-2.01 |
| Primary language | TypeScript1 | Python1 |
| Status | active1 | slow1 |
| Model providers | OpenAI, Anthropic, Azure, Bedrock, Ollama and others source: README | OpenAI, Anthropic, Google directly; Azure OpenAI, AWS Bedrock, Google Vertex AI and others through LiteLLM source: Docs: Customise models |
| Evaluation metrics | Assertions for equality, JSON structure, similarity and custom functions source: Docs: Assertions & metrics | Context Precision, Context Recall, Faithfulness, Response Relevancy, Tool Call Accuracy, BLEU, ROUGE, Aspect Critic and others source: Docs: List of available metrics |
| Test definition format | YAML config file (promptfooconfig.yaml) with prompts, providers and test cases source: Docs: Getting Started | Code (Python metrics API, for example DiscreteMetric); ragas quickstart project templates source: README |
| CI integration | GitHub Actions guide and GitHub Marketplace action; CI/CD guide for other platforms source: Docs: CI/CD Integration for LLM Evaluation and Security | not documentednot found in the project's documentation as of |
| Report formats | HTML, JSON, CSV, JUnit XML (promptfoo eval --output) source: Docs: Output Formats | Experiment results saved as timestamped CSV files in experiments/ source: Docs: Experimentation |
| Install method | npm (npm install -g promptfoo), Homebrew (brew install promptfoo), pip (pip install promptfoo) source: README | pip (pip install ragas), or pip install from the Git repository source: README |
1 Fetched from the GitHub or GitLab API on . Hover a value for its own date.
When each fits
Written from each project's documented scope, not from preference. Neither tool is ranked.
Promptfoo
Fits projects that test prompts and models of LLM-based apps; its README describes a CLI and library that evaluates and red-teams LLM-based apps. source: README
Ragas
Fits projects that evaluate LLM applications, including RAG systems, and generate test datasets; its README describes LLM-based and traditional metrics. source: README
More on these tools
Sources
- GitHub REST API: repository, read
- GitHub REST API: repository, read
- GitHub REST API: contributors, read
- GitHub REST API: contributors, read
- GitHub REST API: latest release, read
- GitHub REST API: latest release, read
- GitHub REST API: commits, read
- GitHub REST API: commits, read
- README, read
- Docs: Customise models, read
- Docs: Assertions & metrics, read
- Docs: List of available metrics, read
- Docs: Getting Started, read
- README, read
- Docs: CI/CD Integration for LLM Evaluation and Security, read
- Docs: Output Formats, read
- Docs: Experimentation, read
Documented facts collected 2026-09-22. See the methodology for how metrics and facts are gathered.