Index of every page on this site: llms.txt
All skills
confident-ai avatar

/eval-grade

@1ae0870
Run it yourself

Implement and calibrate failure-specific AI evaluators against expert labels. Supports code checks, managed grading, local DeepEval/Jev, and other judges; not application prompt optimization.

Use this Skill: https://skilld.dev/gh/confident-ai/eval-skills/eval-grade

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesdeepeval.md

≈931 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Local grading with DeepEval

This reference is only for the local DeepEval track. It does not introduce hosted tracing, reporting, synthetic generation, or a DeepEval runner. Keep the user's local data and UI independent.

Choose the judging mode

When not already settled, ask: “For local grading, I recommend Jev (system_one). Would you prefer that, hybrid judging, or an LLM judge?” No extra permission question is needed to choose DeepEval itself within this track.

The supported Python spellings inspected in the current implementation are system_one, hybrid, and llm. The library defaults to llm; this suite recommends system_one explicitly. Read current eval-mode documentation and inspect the installed metric's signature before generating code. Version support is a preflight, not an exception discovered after a full paid pass.

Jev uses a TypeSafe AI service credential; local orchestration is not local inference. Never ask users to paste secrets. Use current documented setup, such as the installed set-typesafe command when available, and the project's secret mechanism.

A narrow adapter

For a supported text metric in Python:

from deepeval.metrics import FaithfulnessMetric
from deepeval.test_case import LLMTestCase

def grade_faithfulness(case, output):
    # Use only if unsupported claims are an observed failure and the retrieved
    # evidence below is actually what the app saw during this execution.
    metric = FaithfulnessMetric(eval_mode="system_one")
    test_case = LLMTestCase(
        input=case["input"],
        actual_output=output["text"],
        retrieval_context=output["retrieval_context"],
    )
    metric.measure(test_case)
    return {
        "score": metric.score,
        "reason": metric.reason,
        "confidence": metric.confidence,
        "judge_cost_usd": metric.evaluation_cost,
    }

Create a metric per concurrent task unless its documentation guarantees safe reuse; metric instances carry mutable result state. Apply the human-calibrated threshold in the adapter and record the actual judge/model configuration. Do not replace absent retrieval context with invented documents or the expected answer.

For TypeScript use the installed supported equivalent, including its evalMode spelling; verify the current SDK rather than transliterating Python blindly. For custom criteria choose a supported custom judge. JevEval evaluates bounded questions directly and is Jev-backed regardless of eval mode; GEval does not become Jev-backed merely through a global setting. Check current docs for required question types and evaluation parameters. Plain test-case fields can avoid requiring a framework-specific trace representation.

Compatibility and failures

A metric may not support system_one, text-only Jev may not accept an image, and request/context limits can reject a long trace. Preserve the case and show the limitation. Ask for an explicit alternative when it changes the established choice: a supported grader, an LLM mode, or human review. Do not truncate relevant evidence or silently change judges.

Hybrid may fall back internally to an LLM on a failed Jev decision. Capture exposed fallback reason/model and distinguish those results. system_one does not promise such fallback. A metric's configuration and mode are part of its version; different modes can yield different score semantics.

Use deterministic code checks without Jev for objective requirements. Validate all subjective metrics against human labels using the same protocol as other judges. A prebuilt metric name is not evidence that it measures this application's actual failure.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    The skill eval-grade by Confident AI is a toolkit for developing and validating AI-based evaluators. It includes workspace setup scripts, templates for LLM and code-based graders, and utilities for statistical validation. The skill follows security best practices, such as using environment variables for secrets and implementing boundary markers to prevent prompt injection when processing untrusted trace data. All technical behaviors, including dynamic code loading and file system operations, are consistent with its primary purpose as a developer tool.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: LOW · No issues

Signed by skilld at 1ae0870. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 2 months ago
metadata
{
  "author": "Confident AI",
  "version": "1.1.0"
}

README badge

README badge for confident-ai/eval-skills/eval-grade