Skip to content
Ragas → EvalGuard

Keep your RAG metrics. Add security and guardrails. 

Ragas is a great open-source RAG-evaluation library — faithfulness, answer relevancy, context precision, context recall, and the rest. EvalGuard imports both your evaluate() results and your evaluation datasets, then adds hosted red-team scans (300+ plugins), a runtime LLM firewall, and a SOC 2 evidence engine on the same data. No sign-up needed to run your first eval.

SOC 2 evidence engineISO 42001 mappedEU AI ActGDPR

Honest positioning

Where Ragas stops, EvalGuard keeps going

Ragas is a first-class open-source RAG-metrics library — the cleanest way to measure faithfulness and context quality on a retrieval pipeline, and the metrics are genuinely good. EvalGuard overlaps on metrics, datasets, and CI, then extends into the hosted security, runtime firewall, and compliance work you'd otherwise buy separately.

CapabilityRagasEvalGuard
Open-source RAG metrics (faithfulness, answer relevancy, context precision / recall) YesYes — 200+ scorers, incl. RAG + LLM-as-judge
Reference-free & reference-based scoring YesYes — reference, rubric, and pairwise scorers
Evaluation datasets & synthetic test generation YesYes — versioned datasets + test generators
Open source & self-hosting YesYes — Apache-2.0 core, self-host available
CI gating (fail-closed on a regression)DIY in pytestYes — `gate` command + CI action, fail-closed
Red-team & security scans Not offeredYes — 300+ attack plugins with threat-feed sync
Hosted dashboards & RBACRagas app (limited)Yes — governed dashboards, roles, audit log
Runtime LLM firewall / guardrails Not offeredYes — real-time input + output firewall
AI gateway / BYOK proxy Not offeredYes — BYOK gateway, 90+ providers, semantic cache
SOC 2 evidence engine Not offeredYes — live evidence engine + audit log

Comparison reflects each product's core offering; Ragas continues to add features (including a hosted app) — check their latest docs for details.

Migration paths

Ragas is two things. So the move is two paths.

Everything stays local until you choose to run it — we never touch your Ragas project. Convert what you export with the EvalGuard CLI. Both the old (question / contexts / ground_truth) and new (user_input / retrieved_contexts / reference) Ragas field names are supported.

A

Results — bring your evaluate() runs

Serialize a Ragas EvaluationResult (its .to_pandas() records) to JSON, then convert it to neutral-shape spans — every metric column (faithfulness, answer relevancy, context precision / recall) maps into ragas.metric.*, and your retrieved contexts and reference are preserved. Ragas rows are scores, not pass/fail — no run is flagged as an error unless it genuinely errored.

# evaluate() results → neutral spans (metric columns fanned out, no timing invented):
npx @evalguard/cli import:traces --from ragas ragas-results.json --output spans.json
B

Evaluation datasets — convert and run

Export a Ragas EvaluationDataset, convert it to a runnable EvalGuard config — inputs, references, and RAG retrieved_contexts all carry over — then run it keyless on your machine, or on the EvalGuard cloud.

1
Export your dataset from Ragas
# Python: json.dump(dataset.to_list(), f) → a JSON list of samples
2
Convert it to an EvalGuard config
npx @evalguard/cli import:ragas ragas-dataset.json -o evalguard.config.json
3
Run it keyless — no account, no API key (echo provider)
npx @evalguard/cli eval:local evalguard.config.json --provider echo

Your Ragas metrics (faithfulness and friends) are computed by Python at evaluate()time, so they don't travel inside a dataset export — the import attaches a runnable equals scorer when your samples carry a reference, and points you at semantic-similarity / llm-grader (and the RAG scorers) to re-create a faithfulness / relevancy check. The echo provider runs the whole loop with no API key — swap in --provider openai (with your key) for real model calls, or run on the cloud for shared dashboards and run history:

# Run on the EvalGuard cloud (log in first):
evalguard eval --project <id>

Want a hand with the migration?

If you have a large RAG evaluation dataset or a suite of custom Ragas metrics, send us your Ragas export and we'll help you map it and validate the first run. Free.