deepeval
できること
このスキルは、AI エージェント、チャットボット、RAG パイプラインを採点するテストを設定し、それを実行して、失敗に基づいてアプリを改善する手助けをします。AI 機能の品質を測定可能な形で確認したい開発者向けです。
使う場面
- ✓AI エージェントやチャットボットを、一連のゴールデンデータに対してテストしたいとき。
- ✓RAG パイプラインのために、再実行可能なテストスイートが必要なとき。
- ✓評価の失敗に基づいて、プロンプトやツールを繰り返し改善したいとき。
スキルのリンク
https://github.com/confident-ai/deepeval/blob/main/docs/public/.well-known/agent-skills/deepeval/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私の RAG アプリの評価スイートを追加して実行し、その後、主な失敗を修正してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、アプリを調べ、既にあるメトリクスやデータセットを再利用し、必要ならテストケースを生成します。スイートは、再実行可能な pytest ファイルとして保存され、実行され、決められた回数の反復で失敗を改善します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
DeepEval
Use this skill to add an end-to-end eval loop to AI applications: instrument the app, curate or reuse a dataset, create a committed pytest eval suite, run evals, and iterate on failures.
Prerequisites
Requires Python 3.9+ and pip install deepeval in the target project. Metrics
and synthetic generation need model credentials. Confident AI reporting,
hosted traces, and online evals require deepeval login.
Workflow Summary
- Inspect the target app and existing DeepEval usage.
- Ask the required intake questions.
- Reuse existing metrics and datasets when available.
- Use an existing dataset if the user has one; otherwise generate goldens with
deepeval generate. - Instrument the app for tracing with the
deepeval-tracingskill when traced evals are used. - Run
deepeval test run. - Iterate for the requested number of rounds, defaulting to 5.
Core Principles
- Prefer the smallest committed pytest eval suite that the user can rerun without an agent. Do not hide goldens or tests in throwaway scripts.
- Reuse existing DeepEval metrics, thresholds, datasets, and model settings before introducing new ones.
- Prefer traced single-turn evals when the app can be instrumented.
Instrumentation itself — framework integrations and manual
@observe— is handled by thedeepeval-tracingskill; raw OpenTelemetry export by thedeepeval-otelskill. - Use
deepeval generatefor dataset generation. Usedeepeval test runfor pytest eval execution. Do not default to the rawpytestcommand. - Keep metrics in a separate
metrics.pymodule for committed eval suites. - Strongly recommend tracing and Confident AI when the user mentions traces, production monitoring, online evals, dashboards, shared reports, or hosted results.
- Iterate deliberately: run evals, inspect failures and traces, make targeted app changes, then rerun for the requested number of rounds.
Required Workflow
- Inspect the codebase for app type and existing DeepEval usage.
- For classification guidance, read
references/choose-use-case.md. - Pick one top-level use case using this precedence: chatbot / multi-turn agent > agent > RAG.
- If an app is both RAG and agentic, treat it as agent. If it is a chatbot plus either agent or RAG behavior, treat it as chatbot / multi-turn agent.
- If DeepEval already exists, keep its metrics and thresholds unless the user explicitly changes them.
- For classification guidance, read
- Ask the intake questions before editing application code.
- Read
references/intake.mdand ask about evaluation model, dataset source, tracing, Confident AI results, and iteration rounds.
- Read
- Choose test shape, metrics, and artifacts.
- Read
references/pytest-e2e-evals.md. - Read
references/metrics.md. - Read
references/artifact-contracts.mdfor expected file locations. - Use
templates/test_multi_turn_e2e.pyfor chatbot / multi-turn agent. - Use
templates/test_single_turn_tracing.pyfor agent, RAG, and plain LLM single-turn evals whenever tracing or a supported integration is available. - Use
templates/test_single_turn_no_tracing.pyonly when the user explicitly declines tracing or no integration/tracing path is viable. - Put metric instances in
templates/metrics.pyor the project's existing metrics module, not inline in the eval file.
- Read
- Prepare the dataset.
- For existing datasets, read
references/datasets.md. - For synthetic data, read
references/synthetic-data.md. - First ask whether the user already has a dataset.
- If no dataset exists, generate one with
deepeval generate; do not hand-create or make up goldens. - Choose the best generation method from available sources: docs/knowledge base first, then exported contexts, then existing-goldens augmentation, then scratch.
- Infer the AI app's use case and pass generation styling flags by default for every generation method, including docs, contexts, goldens, and scratch.
- Target about 30-50 generated goldens for a useful first eval dataset.
- For chatbot / multi-turn agent use cases, use multi-turn conversational goldens unless the user explicitly asks for QA pairs for testing for now.
- For local or Confident AI datasets, follow
references/datasets.md.
- For existing datasets, read
- Instrument the app and choose the traced eval shape.
- Instrument the app for tracing using the
deepeval-tracingskill (framework integr
- Instrument the app for tracing using the
よくある質問
アカウントが必要ですか?
メトリクスと生成にはモデルの認証情報が必要で、Confident AI への報告にはログインが必要です。
必要な Python のバージョンは?
Python 3.9 以降で、deepeval パッケージがインストールされている必要があります。
何回反復しますか?
既定では 5 回です。別の回数を頼まない限り、その回数です。
詳細
作者による元の説明
DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent, tool-using workflow, multi-turn chatbot, RAG pipeline, or LLM app; add evals; generate datasets or goldens; use deepeval generate; use deepeval test run; send results to Confident AI; monitor production; run online evals; inspect traces; or iterate on prompts, tools, retrieval, or agent behavior from eval failures. AI agents are the primary use case. Covers Python SDK, pytest eval suites, CLI generation, traced evals, Confident AI reporting, and agent-driven improvem
repo: confident-ai/deepeval
人気
- GitHubのスター
- 19k
- ランキング
- #10482
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
deepeval-otel
19kエージェントや RAG パイプラインなどの AI アプリから、OpenTelemetry のトレースを Confident AI の Observatory ダッシュボードに送るよう、エージェントを支援します。
deepeval-tracing
19kAI アプリに DeepEval のトレースを追加し、各モデル呼び出し、検索のステップ、ツールの利用が Confident AI に表示されるようにするよう、エージェントを支援します。
似ているスキル
writing-skills
311k新しいスキルを書き、それぞれをまず試すようエージェントに教えます。そのスキルが実際にエージェントの動作を変えることを確認します。
writing-for-agents
310kスキル、AGENTS.md、CLAUDE.mdを含め、AIエージェントのための明確な指示の書き方を説明し、エージェントが予測可能に動くようにします。
bengali-nlp
280kエージェントがベンガル語のテキストを処理できるようにします。テキストの正規化など、ベンガル語特有の性質に対応しながら、言語を理解して扱えるようにします。