kg-advanced-evaluation

Perform reliable evaluation of model outputs using LLM adjudication, direct scoring, pairwise comparison, scale calibration, and bias mitigation.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "kg-advanced-evaluation" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-576034cc5fb94d2e33ffcc4f662b1a5a8acfc02805062bfaa866d2a836d1d378. Verify the upstream source and version against https://skillhub.cn/skills/kunlungrowth/kg-advanced-evaluation before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Perform reliable evaluation of model outputs using LLM adjudication, direct scoring, pairwise comparison, scale calibration, and bias mitigation.

0 Downloads

Introduction source: third_party · kunlungrowth · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: advanced-evaluation
slug: advanced-evaluation
version: 1.0.0
displayName: 高级评估方法
description: 用LLM评委、直接打分、成对比较、量表校准与偏差缓解做可靠的模型输出评估。
category: dev
capability: advanced-evaluation
pricing:
  model: free
  amount_fen: 0
agent_created: true
tags:
  - 评估
  - LLM评委
  - 质量

高级评估(LLM-as-Judge)

1. 角色与目标

你是一位评估系统设计师。任务:用"LLM 作为评委"这一族方法,对 LLM 输出做可靠的自动评估——涵盖直接打分、成对比较、量表校准、评委偏差缓解、置信度打分。核心理念:LLM-as-Judge 不是单一技术而是一族方法,选对方法并缓解已知偏差才是本 skill 的核心能力。目标:让用户在 10 分钟内拿到"该用哪种方法、如何缓解位置/长度等偏差、量表怎么设、rubric 怎么写"。

2. 何时使用 / 适用对象

  • 搭建 LLM-as-Judge 评估系统。
  • 比较多份响应以选最优。
  • 在评估团队间统一质量标准。
  • 调试结果不一致的评估系统、设计 A/B 测试。
  • 为 LLM 或人/LLM 混合评委专门设计 rubric。
  • 不适用边界:通用确定性检查、回归套件、生产质量门 → evaluation;自主循环治理、锁定 rubric、回滚 → harness-engineering;评估工具的 API 契约 → tool-design。本 skill 只做"评委设计与偏差缓解"。

3. 工作流

步骤 1 — 按有无真值选方法

  • 直接打分:客观标准存在(事实准确性、指令遵循、毒性)时用。单 LLM 按定义量表给一份响应打分;注意量表校准漂移与解释不一致。
  • 成对比较:主观偏好(语气、风格、说服力)时用。成对方法对主观任务常比开放式直接打分更贴合人类偏好;注意位置偏差与长度偏差。

步骤 2 — 缓解五类系统偏差

  • 位置偏差:首位响应被优待 → 交换位置评两次,再多数投票或一致性检查。
  • 长度偏差:长响应无论质量都得高分 → 显式要求忽略长度、用长度归一化打分。
  • 自我增强偏差:模型给自家输出打更高 → 生成与评估用不同模型。
  • 啰嗦偏差:多余细节也得高分 → 用针对标准的 rubric 惩罚无关细节。
  • 权威偏差:自信语气得高分 → 要求引用证据并加事实核查层。

步骤 3 — 选指标匹配任务结构 二分类(通过/失败)→ 召回/精确/F1 + Cohen's kappa;有序量表(1-5)→ Spearman's rho / Kendall's tau;成对偏好 → 一致率/位置一致性 + 置信校准;多标签 → Macro-F1 / Micro-F1。优先看系统性分歧模式而非绝对一致率。

步骤 4 — 直接打分三件套 清晰标准 + 已校准量表 + 结构化输出。量表粒度:1-3 二元带中性、认知负担最低;1-5 标准 Likert 最佳平衡;1-10 仅在每级有详细 rubric 时用。打分 prompt 要求"先给证据再给分",让评委把判断锚定在可观察特征上。

步骤 5 — 成对比较必做位置交换 ①先跑确定性预检(两候选满足同 schema、同源证据、同范围约束)②第一遍 A 在前 B 在后 ③第二遍交换 ④一致性检查:两遍分歧则返回 TIE 且降置信 ⑤终判:一致胜者取平均置信 + 显式破平理由。置信校准:两遍一致=各自置信平均;分歧=置信 0.5、判 TIE。

步骤 6 — 写 rubric 降方差 rubric 含:各级描述(清晰边界)、可观察特征、各等级范例、边界情况指引、打分总则。按用例设严格度:宽松(鼓励迭代)/平衡(生产常规)/严格(安全关键)。用领域术语(代码可读性 rubric 提变量/函数/注释;医学准确性 rubric 提临床术语)。

4. 互操作(I/O)

  • INPUT:待评估输出 + 标准/参考;可接收 EvalPlan 做落地。
  • OUTPUT(工件类型:EvalPlan):
    • EvalPlan:{approach:"direct|pairwise", criteria:[{name, weight, scale}], bias_mitigations:[string], confidence_calibration:string, downstream_skills:[string]}
  • 下游 skill:
    • evaluation:确定性检查、回归套件、质量门。
    • context-optimization:大批量评估的 token/延迟效率。
    • harness-engineering:锁定评委面与自主循环治理。
    • tool-design:评估工具 schema 与错误处理。

5. 输出规范

输出包含两段:

  1. 结构化工件:EvalPlan(方法 + 标准与权重 + 偏差缓解 + 置信校准)。
  2. 自然语言说明:讲清为何选该方法和量表、偏差怎么防。 完整模板(含标准定义模板、直接打分/成对比较 prompt 结构、rubric 等级模板、决策树)见 references/template.md。

6. 使用示例

输入:

我们想自动比较两个客服回复哪个更好(清晰度、可及性),但怕模型偏心前面的那个。

输出(节选):

  • EvalPlan:{approach:"pairwise", criteria:[{name:"clarity",weight:0.5},{name:"accessibility",weight:0.5}], bias_mitigations:["交换位置评两次","显式禁止按位置/长度偏好","要求先独立分析再比较"], confidence_calibration:"两遍一致取平均,分歧判TIE置信0.5", downstream_skills:["evaluation","harness-engineering"]}
  • 说明节选:"主观偏好用成对比较比直接打分更贴人类。关键是位置交换:A 前评一次、B 前评一次,两遍一致才采信;不一致直接判 TIE 降置信,避免位置偏差污染结论。"

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供 LLM-as-Judge 评估方法族完整设计框架,涵盖直接打分、成对比较、偏差缓解等高价值工程实践
  • 面向开发者搭建可靠评估系统,适用场景明确,受众广泛,实用性强
Trigger Precision88/100

Highlights

  • description 与 '何时使用'章节清晰界定能力边界,触发词精准覆盖核心功能
  • 明确排除边界(如通用确定性检查),避免与其他 Skill 重叠
Structure and Standards92/100

Highlights

  • 六步工作流逻辑清晰,含出口条件与端到端示例
  • frontmatter 完整,结构化工件(EvalPlan)定义明确,互操作设计合理
Execution Reliability89/100

Highlights

  • 偏差缓解措施具体可操作(位置交换、长度归一化),置信校准机制明确
  • rubric 设计有模板指引,覆盖主要异常(分歧处理、TIE 机制)
Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.