Logotipo de Ai Evals

Ai Evals

Comunidad
vasilyu1983
ai-evals

Diseña evaluaciones fiables para LLM, agentes, IA responsable y sistemas multimodales. Úsala para medir la calidad, la equidad, la privacidad, el anclaje en fuentes, la seguridad o la fiabilidad de los evaluadores.

Add to TypingMind

Descripción general

Editorvasilyu1983
RepositorioAI-Agents-public
Nombre de la habilidadai-evals
Estrellas
87
Forks
19
Archivos incluidos
17
LicenciaMIT
Enlaces
  • Instrucciones en Markdown

    Un archivo SKILL.md que el modelo carga cuando lo necesita, de modo que solo consume tokens cuando la petición encaja con la habilidad.

  • Funciona con cualquier LLM

    Las habilidades de IA están en Markdown, no en código específico de un proveedor, por lo que funcionan con GPT, Claude, Gemini, Grok o un modelo local.

  • Archivos incluidos: 17

    Scripts, plantillas y referencias que el modelo puede leer mientras trabaja. Los archivos son de solo lectura y nunca se ejecutan.

  • Código abierto

    Publicada por vasilyu1983 en GitHub. Revisa el contenido original antes de instalarla.

Instalación

Instala la habilidad de IA Ai Evals en TypingMind para usarla con cualquier LLM, o añádela a otro agente que lea SKILL.md.

1

Instalar en TypingMind

TypingMind instala una habilidad directamente desde su carpeta de GitHub: lee SKILL.md, empaqueta los archivos de recursos y guarda el resultado localmente.

  1. Abre la aplicación y ve a Plugins → Habilidades.
  2. Elige «Instalar desde GitHub».
  3. Pega la URL de la carpeta de la habilidad que se muestra a continuación y confirma.
    https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/ai-evals
  4. Activa la habilidad en cada chat en el que quieras tenerla disponible.
Plugins → Habilidades → Añadir habilidad → URL de GitHub; después, pega la URL de la carpeta y pulsa Continuar.
2

Instalar en otro agente

Cualquier agente que lea el formato Agent Skills puede usar esta habilidad: copia la carpeta en el directorio de habilidades de ese agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vasilyu1983/AI-Agents-public.git /tmp/AI-Agents-public
mkdir -p .claude/skills
cp -r /tmp/AI-Agents-public/frameworks/shared-skills/skills/ai-evals .claude/skills/ai-evals
Reinicia Claude Code después de copiarla para que detecte la nueva habilidad.

Úsala en TypingMind

Activa Ai Evals en cualquier chat de TypingMind y el modelo se encargará del resto. Su nombre y descripción se incluyen en el prompt del sistema y, en cuanto una petición encaja con la habilidad, el modelo carga las instrucciones completas por sí solo. No tienes que invocarla manualmente y no consume tokens hasta que se utiliza.

El modelo carga Ai Evals automáticamente en cuanto una petición es relevante para esa habilidad.

Funciona con cualquier modelo de IA

Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que Ai Evals no está vinculada al modelo para el que se creó. Instálala una sola vez en TypingMind y úsala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modelo local que ejecutes tú, todo con tus propias claves API.

  • Se carga solo cuando se necesita

    El prompt del sistema solo incluye el nombre y la descripción. Las instrucciones se cargan con la primera petición que encaja con la habilidad, por lo que una habilidad que no se usa no supone ningún coste.

  • Cambia de modelo durante el chat

    Como la habilidad contiene instrucciones y no código, cambiar de modelo no impide que funcione: el nuevo modelo lee el mismo archivo SKILL.md.

Instrucciones de la habilidad

Este es el contenido de SKILL.md que carga el modelo. Léelo antes de instalar la habilidad: contiene instrucciones que tu modelo seguirá.

AI Evaluation and Fine-Tuning Methodology Skill

Core stance: an eval is an instrument. An untrusted instrument is worse than no instrument, because it produces confident wrong numbers that ship regressions. Fine-tuning is an optimization loop around that instrument. If the instrument is weak, training just makes the model better at gaming bad measurement. This skill is the cross-domain methodology layer that domain eval and model-lifecycle skills defer to: how to keep an LLM-as-judge honest, integrate eval frameworks, choose between prompting/context/tools/test-time compute/SFT/preference/RFT/PEFT/ distillation, derive thresholds instead of guessing them, and stop flaky runs or training leakage from masquerading as progress.

This is the methodology umbrella for evals. Domain skills own what to measure; this skill owns whether you can trust the measurement.

  • Building an eval system for a coding agent -> ai-coding-agents-observability-evals
  • Evaluating RAG / retrieval / search -> ai-rag
  • Running Hub model benchmarks (inspect-ai, lighteval) -> use the huggingface-skills: plugin (external)
  • General LLM lifecycle decisions -> ai-llm
  • This skill: judge bias, framework choice, calibration, reproducibility, optimization technique gates — the parts those four share and none owns in depth.

ASCII Flow

text
eval need
  |
  v
define verifiable goal  (what would FAIL if the requirement reverted?)
  |
  v
choose grader
  deterministic check  ->  LLM-as-judge  ->  human label  (cheapest that works)
  |
  v
control judge bias
  position / length / self-preference / verbosity
  |
  v
derive thresholds from a labeled calibration set  (not vibes)
  |
  v
choose optimization path  (prompt/RAG/tools -> SFT -> preference/RFT/PEFT)
  |
  v
choose inference-time lift  (self-consistency / rerank / verify / refine)
  |
  v
control flake  (pass@k, low temp, quarantine unstable cases)
  |
  v
trustworthy gate  ->  train / block / ship / rollback

Quick Reference

TaskRead or RunOutcome
Build a (question, ideal-answer) set and tune itreferences/dataset-construction.mdSourcing, ideal-answer authoring, run→compare→tune loop, robustness slice by perturbing memorized cases
Stop a judge from rating its own output highreferences/llm-judge-bias.mdSelf-preference, position, length, verbosity controls
Pick / wire an eval frameworkreferences/framework-integration.mdinspect-ai, lighteval, Ragas, DeepEval, promptfoo, Braintrust integration snippets + when to use each
Choose a pass threshold defensiblyreferences/threshold-derivation.mdDerive thresholds from a labeled set; inter-rater agreement; gate design
Stop flaky runs reading as regressionsreferences/flake-and-reproducibility.mdpass@k, seeds, temperature, quarantine, contamination/leakage, system-benchmark hazards (hardware lottery, thermal/background load, unreported CIs)
Decide if "A beats B" is real, size the setreferences/eval-statistics.mdBootstrap CIs, McNemar, power/MDE sizing, FDR, variance reduction
Get maximum from an LLMreferences/llm-optimization-technique-map.mdTechnique ladder across prompts, data, RAG/tools, test-time compute, SFT, preference/RFT, PEFT, distillation; measured case where a confidence scorer scored below no scorer
Decide whether and how to fine-tunereferences/fine-tuning-eval-loop.mdPrompt/RAG/tool baseline, SFT vs preference/RFT vs PEFT, split hygiene, promotion gates
Evaluate on live/production trafficreferences/online-production-eval.mdOffline-online correlation, A/B+guardrails, shadow/canary, drift, regression replay, HITL
Turn user behavior into eval and preference datareferences/conversational-feedback-signals.mdImplicit NL signals, action signals, edit→preference pairs, collection timing, feedback biases
Evaluate refusals, jailbreaks, harmreferences/safety-redteam-eval.mdOver/under-refusal, ASR per attack family, injection, harm rubrics, robustness
Evaluate responsible or multimodal AIreferences/responsible-multimodal-evaluation.mdIntersectional fairness, privacy/memorization/poisoning, oversight/appeals, provenance, grounding, diffusion, multimodal attacks, latency/cost
Go beyond one judgereferences/advanced-judging.mdJuries, fine-tuned judges, CoT/probability scoring, calibration (kappa/ECE), agentic reward

When to Use This Skill

Activate when the user asks for:

  • An LLM-as-judge / LLM grader and how to keep it honest
  • Why eval scores look inflated, noisy, or contradictory
  • Which eval framework to use, or how to integrate one
  • How to set or justify a pass/fail threshold or release gate
  • Pairwise / preference evaluation between two prompts, models, or harnesses
  • Reducing eval flakiness, contamination, or testset leakage
  • Calibrating a judge against human labels
  • Deciding whether to fine-tune, how to select SFT vs preference/RFT vs PEFT, or whether a fine-tuned model is genuinely better than a prompt/RAG/tool baseline
  • Getting maximum performance from an LLM using known techniques, including prompt/context/tool changes, test-time compute, reranking, distillation, or post-training
  • Testing fairness and intersectionality, differential privacy, explanations, poisoning, memorization, human oversight/appeals, watermarking/provenance, or environmental claims
  • Evaluating image-text retrieval, VQA, documents, video/audio, fusion, diffusion generation/control, multimodal safety, or multimodal latency and cost

Scope Boundaries (Use These Skills for Depth)

  • Domain metrics for retrieval (nDCG/MRR/recall, faithfulness) -> ai-rag
  • Agent golden tasks, tool-call grading, cost ops -> ai-coding-agents-observability-evals
  • Running benchmark harnesses on Hub models -> use the huggingface-skills: plugin (external)
  • Prompt CI/CD and structured output contracts -> ai-prompt-engineering
  • General model selection, serving, quantization, and deployment economics -> ai-llm and ai-llm-inference

Workflow

  1. Transform the vague ask into a verifiable goal. "Is it good?" is not gradeable. Ask: which case would fail first if the requirement reverted?
  2. Build the dataset before the grader. Source real questions, author ideal answers from the system's allowed context, and plan the run→compare→tune loop — see references/dataset-construction.md. No dataset, no eval.
  3. Pick the cheapest grader that works. Deterministic check > LLM judge > human. Reserve the LLM judge for what code cannot decide (Rule 5: use the model only for judgment calls).
  4. If using an LLM judge, control its bias before trusting any number — see references/llm-judge-bias.md. Untreated judge bias is the #1 source of confidently-wrong eval scores. When one judge isn't enough (high stakes, weak agreement, open-ended), escalate to juries / fine-tuned judges / calibrated scoring — see references/advanced-judging.md.
  5. Control flake and leakage with pass@k, low judge temperature, seed pinning, and held-out testsets — see references/flake-and-reproducibility.md.
  6. Derive thresholds from a labeled calibration set, not intuition or copied targets — see references/threshold-derivation.md. Size the gating set and judge "A beats B" with statistics (bootstrap CIs, McNemar, power/MDE, FDR) — see references/eval-statistics.md. A score difference without a CI is not a result.
  7. Only fine-tune after the baseline has earned it. Compare prompt/RAG/tool fixes first, then choose SFT for imitation/style/format/tool-call behavior, preference/RFT for rubric-scored reasoning or tradeoffs, and PEFT/LoRA/QLoRA when adapting an open model under compute or deployment constraints — see references/fine-tuning-eval-loop.md. Training loss is telemetry; held-out behavior is the verdict.
  8. Apply the full optimization ladder, not one pet method. For maximum LLM performance, evaluate cheap prompt/context/tool fixes, then inference-time methods (self-consistency, best-of-N, rerank/verify/refine), then data/SFT, preference/RFT/RLVR, PEFT, and distillation as the evidence warrants — see references/llm-optimization-technique-map.md. Each technique gets its own failure mode and gate.
  9. Gate loudly. A gate that passes while silently skipping cases is a failure dressed as success (Rule 12: fail loud). Report skipped/quarantined cases in the gate output.
  10. Extend past the offline gate where the system warrants it. Add safety/red-team evaluation (refusal precision/recall, jailbreak ASR, injection, harm rubrics) — see references/safety-redteam-eval.md — and, once in production, online evaluation (offline-online correlation, A/B with guardrails, drift, regression replay) — see references/online-production-eval.md. The offline gate is a filter; production is the verdict.

Core Principles

  • The judge is a model with failure modes. Treat its scores as one calibrated input, never as ground truth.
  • Different judge than the one under test. Self-preference bias is real and large; never gate on a model grading its own family/config.
  • Behavior, not plausibility. Rubrics that reward "looks good" reward length and confidence. Pin rubrics to verifiable behavior.
  • No threshold without a labeled set. A copied target (">95%") is a guess until validated on your own distribution.
  • No fine-tune without a baseline and a holdout. A tuned model that beats no prompt/RAG/tool baseline, or only wins on the training/dev set, has not earned release.
  • No "maximum performance" without a technique ladder. The best result often comes from composition: cleaner data + stronger retrieval/tool contracts + calibrated judge + small test-time search + selective post-training. Test the cheapest credible lift before moving weights.
  • Optimize behavior, not hidden knowledge. Fine-tune for stable formatting, domain style, tool-use patterns, rubric-following, or compact specialized behavior. Use retrieval/context for facts that change or must be cited.
  • Flake is a broken test, not a regression. A verdict that flips run-to-run means the eval is wrong, not the system.
  • Held-out or it's contaminated. If tuning ever saw the eval cases, the scores are inflated.
  • Goodhart's Law is the default outcome, not an edge case. Any metric that becomes a target (a threshold, a bonus, a promotion gate) will eventually be gamed — by the system under test, by whoever tunes against it, or by the judge itself. Every trap and anti-pattern in this file is a specific instance of this one law; treat a metric that stops correlating with the outcome you actually care about as expected decay, and re-anchor it against production outcomes or fresh human judgment on a schedule, not only when someone notices.
  • A point estimate is not a result. Every reported number in this skill's gates — pass rate, win rate, judge-human agreement — is a sample statistic with sampling error. Report it with a confidence interval or it is not reportable; see references/eval-statistics.md.

Known Traps

  • Grading an agent with the same model that produced the output (self-preference)
  • Comparing two candidates in fixed order and trusting the winner (position bias)
  • Copying a >95% threshold from a blog without validating it on your data
  • One judge call per request with no cheap deterministic pre-filter (cost blowup)
  • Treating a run-to-run verdict flip as a real regression instead of quarantining
  • Generating a synthetic testset from the same docs used to tune the system
  • Reporting "all passed" when some cases were skipped or errored (silent success)
  • Claiming "A beats B" from a point estimate with no confidence interval or test
  • Gating a small regression on a set far too small to detect it (no power check)
  • Tuning safety to block harm without a benign set, so the model over-refuses
  • Trusting a seed for reproducibility through a hosted API that isn't deterministic
  • Fine-tuning because the prompt is messy, the retrieval is broken, or the tool contract is ambiguous
  • Declaring the fine-tune better from training loss, validation loss, or one cherry-picked demo instead of a paired held-out eval with CIs
  • Letting the training set, grader calibration set, and release gate share cases
  • Training a judge or reward model on labels produced only by the same model family it will later grade

Common Anti-Patterns

  • Vibes-based eval: spot-checking a few outputs and calling it evaluation
  • Single-metric gates: one aggregate number hiding per-slice regressions
  • LLM-judge-only: no deterministic floor, so the gate inherits the judge's noise
  • Threshold-on-the-fly: setting the cutoff after seeing results to make it pass
  • Framework-as-strategy: adopting one vendor tool as the whole eval program
  • Fine-tune-as-strategy: reaching for SFT/RFT/LoRA before proving the failure is learned behavior rather than prompt, context, tools, or product spec
  • Technique soup: stacking CoT, self-consistency, rerankers, judges, and post-training without isolating which intervention caused the lift

Navigation

Resources:

Related skills:

Fact-Checking

  • Eval framework APIs (inspect-ai, lighteval, Ragas, DeepEval, promptfoo, Braintrust) change across releases. Verify current API and version against official docs before recommending a specific call or flag.
  • Fine-tuning platform support, model eligibility, dataset schemas, and RFT/grader APIs move quickly. Verify the current official docs before recommending a specific model, endpoint, hyperparameter, or CLI.
  • Optimization-method papers from arXiv are often preprint-only and benchmark-sensitive. Treat unreplicated methods as validate, not promote, until they beat a strong local baseline with cost/latency/safety gates.
  • Judge-bias findings (position, length, self-preference) are well-replicated through 2025-2026, but specific magnitudes are model- and prompt-dependent — re-measure on your own setup; do not quote a fixed number as universal.
  • Fine-tuned-judge models (Prometheus, JudgeLM, and successors) and jailbreak attack/defense results move fast — verify the current model, license, and benchmark-agreement claims before recommending a specific judge or asserting a model is robust to a given attack family.
  • Indirect prompt injection is the dominant agentic attack as of 2026; treat any "the agent is safe against injection" claim as requiring fresh adaptive testing.
  • Statistics methods (bootstrap, McNemar, FDR, power/MDE) are stable, but verify the exact API (scipy/statsmodels) before copying a call.
  • If web access is unavailable, mark framework-version claims as unverified.

Learnings Loop

Before applying this skill on a non-trivial task, read learnings.consolidated.md (and learnings.md if present). After applying it, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py if you hit a pattern, mistake, or surprising fact. Do not modify SKILL.md itself.

Archivos incluidos

El modelo los lee según los necesita mientras la habilidad está cargada. Son archivos de solo lectura y nunca se ejecutan.

Preguntas frecuentes

¿Qué hace la habilidad de IA Ai Evals?

Diseña evaluaciones fiables para LLM, agentes, IA responsable y sistemas multimodales. Úsala para medir la calidad, la equidad, la privacidad, el anclaje en fuentes, la seguridad o la fiabilidad de los evaluadores.

¿Por qué usar Ai Evals en TypingMind?

Porque la instalas una vez y la usas con cualquier modelo. Ai Evals está escrita en Markdown, no en código específico de un proveedor, por lo que la misma habilidad funciona con GPT-5, Claude, Gemini, Grok o un modelo local, y puedes cambiar de modelo en mitad del chat sin que deje de funcionar. TypingMind utiliza tus propias claves API, de modo que pagas directamente a los proveedores en lugar de pagar una suscripción por puesto, y tus habilidades y chats permanecen en tu propio almacenamiento.

¿Cómo instalo Ai Evals en TypingMind?

Abre Plugins → Habilidades → Instalar desde GitHub en TypingMind y pega https://github.com/vasilyu1983/AI-Agents-public/tree/main/frameworks/shared-skills/skills/ai-evals. TypingMind lee el archivo SKILL.md de esa carpeta, empaqueta los archivos de la carpeta e instala el conjunto como una habilidad que puedes activar en cada chat.

¿Qué modelos de IA pueden usar Ai Evals?

Cualquier modelo que conectes en TypingMind. Las habilidades de IA son instrucciones en Markdown, no código específico de un proveedor, por lo que GPT, Claude, Gemini, Grok y los modelos locales pueden cargar esta habilidad cuando una solicitud se corresponda con ella.

¿Con cuántos modelos de IA puedo usar Ai Evals?

Con tantos como quieras. Siempre que un modelo admita habilidades, puedes usar Ai Evals con él: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama y muchos más, todos en TypingMind con tus propias claves API.

¿Es gratuita la habilidad de IA Ai Evals?

Sí. vasilyu1983 la ha publicado en GitHub bajo la licencia MIT. Solo pagas a tu proveedor de IA por los tokens que utilizas.

¿Qué son las habilidades de IA?

Una habilidad de IA es un conjunto de instrucciones reutilizables que enseña a un modelo de IA a realizar una tarea concreta. Sigue el formato abierto Agent Skills: un archivo SKILL.md con un nombre y una descripción, además de los scripts, plantillas o archivos de referencia que pueda necesitar el modelo. El modelo solo lee las instrucciones cuando tu solicitud se corresponde con la habilidad, por lo que una habilidad instalada no supone ningún coste hasta que se utiliza.

¿En qué se diferencian las habilidades de IA de los plugins o los servidores MCP?

Un plugin o un servidor MCP proporciona al modelo nuevas herramientas que puede invocar: código que se ejecuta en algún lugar y devuelve un resultado. En cambio, una habilidad de IA aporta conocimientos y procedimientos al modelo: cómo abordar una tarea, qué pasos seguir y qué se considera un buen resultado. Las habilidades son instrucciones en Markdown, por lo que no necesitan servidor, clave API ni entorno de ejecución, y funcionan con cualquier modelo.

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇