{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "jsdhwfmax-evalforge--gate-ragas-or-deepeval-scores",
 "repo": "jsdhwfmax/EvalForge",
 "repo_url": "https://github.com/jsdhwfmax/EvalForge",
 "repo_slug": "jsdhwfmax-evalforge",
 "title": "Enforce thresholds on Ragas or DeepEval scores",
 "page_title": "How to enforce thresholds on Ragas or DeepEval scores with Eval Forge",
 "summary": "Import selected Ragas or DeepEval metrics and apply a policy gate to them.",
 "who": "A RAG team that already scores answers with Ragas or DeepEval and wants one policy check across both frameworks in CI.",
 "problem": "Framework score files mix metrics, sample text, and traces, and the score directions can differ between versions.",
 "outcome": "A portable artifact that carries only the chosen score columns, checked against a policy, with missing or errored evidence failing the import.",
 "steps": [
  "Install the gate with `pip install evalforge-ci`.",
  "Export Ragas results with `result.to_pandas().to_json(..., orient=\"records\")` and choose the score columns you need.",
  "Run `evalforge import ragas <ragas-records.json> --producer-version <version> --metric faithfulness --metric answer_relevancy --dataset-fingerprint <fingerprint> --metric-version <metric-version> --output build/ragas.json`. (inferred, check the README)",
  "Run `evalforge gate build/ragas.json --policy examples/ragas_policy.json`.",
  "For DeepEval, run `evalforge import deepeval <deepeval-result.json> --producer-version 4.2.2 --output build/deepeval.json`, then gate it with `evalforge gate build/deepeval.json --policy examples/deepeval_policy.json`. (inferred, check the README)"
 ],
 "agent_prompt": "Using https://github.com/jsdhwfmax/EvalForge, import a Ragas export at <ragas-records-path> with `evalforge import ragas` using explicit --metric flags, then run `evalforge gate` on the output with examples/ragas_policy.json. Expected result is a gate verdict built only from the selected score columns; verify that no sample text appears in the output artifact.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The repo's Ragas and DeepEval fixtures contain synthetic scores that show interoperability, not real model quality, and DeepEval support is pinned to versions 3.8.1 and 4.2.2.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3 with pip and a virtual environment",
  "A committed evaluation artifact, or results from promptfoo, Ragas, or DeepEval",
  "Git, and a GitHub repository if you want the composite Action",
  "Docker, only if you use the Compose path"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/jsdhwfmax-evalforge/gate-ragas-or-deepeval-scores/",
 "md": "https://dedupedai.com/use-cases/jsdhwfmax-evalforge/gate-ragas-or-deepeval-scores/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/jsdhwfmax-evalforge--gate-ragas-or-deepeval-scores.json",
 "api_version": "v1"
}
