DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to enforce thresholds on Ragas or DeepEval scores with Eval Forge

Import selected Ragas or DeepEval metrics and apply a policy gate to them.

Short answer: Install the gate with pip install evalforge-ci; then 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. All steps.

Who it is forA RAG team that already scores answers with Ragas or DeepEval and wants one policy check across both frameworks in CI.

The problemFramework score files mix metrics, sample text, and traces, and the score directions can differ between versions.

The outcomeA portable artifact that carries only the chosen score columns, checked against a policy, with missing or errored evidence failing the import.

What you need first

  • 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

Steps

  1. Install the gate with pip install evalforge-ci.
  2. Export Ragas results with result.to_pandas().to_json(..., orient="records") and choose the score columns you need.
  3. 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)
  4. Run evalforge gate build/ragas.json --policy examples/ragas_policy.json.
  5. 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)

Prompt for your agent

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.

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.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for jsdhwfmax/EvalForge and "Enforce thresholds on Ragas or DeepEval scores"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer