deepeval
Qué hace
Configura pruebas que puntúan un agente de IA, un chatbot o un pipeline RAG, después las ejecuta y ayuda a mejorar la app a partir de los fallos. Es para desarrolladores que quieren comprobaciones de calidad medibles en sus funciones de IA.
Cuándo usarla
- ✓Cuando quieres probar un agente o un chatbot de IA con un conjunto de respuestas de referencia.
- ✓Cuando necesitas un conjunto de pruebas que se pueda volver a ejecutar para un pipeline RAG.
- ✓Cuando quieres iterar sobre prompts o herramientas a partir de los fallos de evaluación.
Link de la skill
https://github.com/confident-ai/deepeval/blob/main/docs/public/.well-known/agent-skills/deepeval/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Añade un conjunto de evaluación para mi app RAG, ejecútalo y corrige los fallos principales.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill inspecciona la app, reutiliza las métricas y conjuntos de datos que ya existan y genera casos de prueba si hace falta. Guarda el conjunto como un archivo pytest que se puede volver a ejecutar, lo ejecuta e itera sobre los fallos durante un número de rondas establecido.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Necesito una cuenta?
Las métricas y la generación necesitan credenciales de modelo, y los informes de Confident AI necesitan un inicio de sesión.
¿Qué versión de Python hace falta?
Python 3.9 o posterior, con el paquete deepeval instalado.
¿Cuántas rondas hace?
Por defecto itera cinco veces, a menos que pidas otro número.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 19 mil
- Posición en el ranking
- #10482
- Licencia
- Apache-2.0
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
deepeval-otel
19 milAyuda a tu agente a enviar trazas de OpenTelemetry desde una app de IA, como un agente o un pipeline RAG, al panel de Confident AI Observatory.
deepeval-tracing
19 milAyuda a tu agente a añadir el trazado de DeepEval a una app de IA, para que cada llamada a un modelo, paso de recuperación y uso de herramienta aparezca en Confident AI.
Skills parecidas
writing-skills
311 milEnseña a tu agente a escribir skills nuevas y a probar cada una primero, comprobando que realmente cambia la forma en que se comporta el agente.
writing-for-agents
310 milExplica cómo escribir instrucciones claras para agentes de IA, incluidas las skills y los archivos AGENTS.md y CLAUDE.md, para que el agente se comporte de forma predecible.
bengali-nlp
280 milHace que tu agente procese texto en bengalí. Ayuda a entender y trabajar con el idioma, normalizando el texto y gestionando sus características propias.