Pairwise Comparison: LLM compares two responses and selects the better one.
Best for: Subjective preferences (tone, style, persuasiveness)
Requires: Position bias mitigation (swap positions and check consistency)
Bias Mitigation
Bias
Mitigation
Position Bias
Evaluate twice with swapped positions
Length Bias
Explicit prompting to ignore length
Self-Enhancement
Use different models for generation and evaluation
Verbosity Bias
Criteria-specific rubrics
Pairwise Comparison Protocol
First pass: Response A first, Response B second
Second pass: Response B first, Response A second
Consistency check: If passes disagree, return TIE
Final verdict: Consistent winner with averaged confidence
Rubric Components
Level descriptions: Clear boundaries for each score
Characteristics: Observable features per level
Examples: Representative text (optional but valuable)
Edge cases: Guidance for ambiguous situations
Decision Framework
Is there objective ground truth?
├── Yes → Direct Scoring (factual accuracy, format compliance)
└── No → Is it preference/quality judgment?
├── Yes → Pairwise Comparison (tone, creativity)
└── No → Reference-based evaluation
Guidelines
Always require justification before scores (15-25% reliability improvement)
Always swap positions in pairwise comparison
Match scale granularity to rubric specificity
Separate objective and subjective criteria
Include confidence scores calibrated to evidence strength
1---2name: advanced-evaluation3description: Advanced Evaluation4---5# Advanced Evaluation67Production-grade techniques for evaluating LLM outputs using LLM-as-judge approaches with bias mitigation.89## Prerequisites1011- Understanding of evaluation metrics12- Access to LLM APIs for judge models1314## Instructions1516### Core Approaches1718**Direct Scoring**: Single LLM rates one response on a defined scale.19- Best for: Objective criteria (factual accuracy, instruction following)20- Requires: Clear criteria, calibrated scale, chain-of-thought justification2122**Pairwise Comparison**: LLM compares two responses and selects the better one.23- Best for: Subjective preferences (tone, style, persuasiveness)24- Requires: Position bias mitigation (swap positions and check consistency)2526### Bias Mitigation2728| Bias | Mitigation |29|------|------------|30| Position Bias | Evaluate twice with swapped positions |31| Length Bias | Explicit prompting to ignore length |32| Self-Enhancement | Use different models for generation and evaluation |33| Verbosity Bias | Criteria-specific rubrics |3435### Pairwise Comparison Protocol36371. First pass: Response A first, Response B second382. Second pass: Response B first, Response A second393. Consistency check: If passes disagree, return TIE404. Final verdict: Consistent winner with averaged confidence4142### Rubric Components43441. **Level descriptions**: Clear boundaries for each score452. **Characteristics**: Observable features per level463. **Examples**: Representative text (optional but valuable)474. **Edge cases**: Guidance for ambiguous situations4849### Decision Framework5051```52Is there objective ground truth?53├── Yes → Direct Scoring (factual accuracy, format compliance)54└── No → Is it preference/quality judgment?55 ├── Yes → Pairwise Comparison (tone, creativity)56 └── No → Reference-based evaluation57```5859## Guidelines60611. Always require justification before scores (15-25% reliability improvement)622. Always swap positions in pairwise comparison633. Match scale granularity to rubric specificity644. Separate objective and subjective criteria655. Include confidence scores calibrated to evidence strength6667## Notes6869- Chain-of-thought prompting improves evaluation reliability70- Single-pass pairwise comparison is corrupted by position bias71- Validate automated evaluation against human judgments7273Source: muratcankoylan/Agent-Skills-for-Context-Engineering
Run npx skillmds@latest add mediar-ai/advanced-evaluation in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Advanced Evaluation It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
mediar-ai (@mediar-ai) published this skill. Their other Agent Skills are listed on their SkillMD profile.