# Ragas vs DeepEval: fresh install and no-key metrics (28 Oct 2026, IST)

Fresh venvs, `pip install ragas` and `pip install deepeval`, no API keys, no model calls. Box: Linux, Python 3.13.5. Run ~11:10-11:20 IST. Cases: the six fixed cases from our 27 Oct test (cases.json).

## Install footprint (pip list count; venv lib size incl. ~12 MB pip)
| Package | Version | Packages | Disk |
|---|---|---|---|
| ragas | 0.4.3 (PyPI 13 Jan 2026) | 92 | 770 MB (largest: pyarrow 167, scipy 109, pandas 80, numpy 43, scikit-network 35 MB) |
| deepeval | 4.3.2 (PyPI 27 Oct 2026) | 67 | 172 MB |

## Ragas: import fails on a fresh install (ragas-run1-fresh-install.txt)
The fresh install pulled langchain-community 0.4.2, and `import ragas` raised
`ModuleNotFoundError: No module named 'langchain_community.chat_models.vertexai'`.
Same error as open issue vibrantlabsai/ragas#2995 (opened 4 Sep 2026; open fix PRs #2957, #2979, #2991, #2997 on 28 Oct 2026). Workaround that worked for us: `pip install "langchain-community==0.4.1"` (ragas-run2-pinned.txt). NonLLMStringSimilarity, BleuScore and RougeScore then needed `rapidfuzz`, `sacrebleu` and `rouge_score` installed separately (ImportError otherwise; ragas-run3-extras.txt). Importing from `ragas.metrics` printed a DeprecationWarning pointing to `ragas.metrics.collections`.

## Scores on the six cases (c1..c6), no LLM
| Metric | Scores |
|---|---|
| Ragas ExactMatch | 1, 0, 1, 0, 1, 0 |
| Ragas StringPresence | 1, 0, 1, 0, 1, 0 (case-sensitive) |
| Ragas NonLLMStringSimilarity | 1.0, 0.8, 1.0, 0.5714, 1.0, 0.9375 |
| Ragas BleuScore | 0.0, 0.0, 1.0, 0.5134, 1.0, 0.5946 (one-word "Paris" = 0 BLEU) |
| Ragas RougeScore | 1.0, 1.0, 1.0, 0.6667, 1.0, 0.75 |
| DeepEval ExactMatchMetric | 1, 0, 1, 0, 1, 0 |
| DeepEval PatternMatchMetric (c5) | 0.0 (uses full match) |

Import time with the pin: ragas 1.18-1.21 s; deepeval 0.70 s. DeepEval's two metrics ran in 0.0086 s.

## LLM-judged metrics without a key
- Ragas Faithfulness without an LLM: `AssertionError: LLM is not set` when scoring.
- DeepEval `FaithfulnessMetric()`: `DeepEvalError: OpenAI API key is not configured...` when the metric object is created.
Both need a judge model (and its API cost) for faithfulness; neither score was produced here.

Files: cases.json, run_ragas.py, run_deepeval_28.py, raw outputs (*.txt, ANSI codes and local paths stripped).
