跳到正文
Skillpedia
智能体41k · #6827

analyzing-offline-evaluations

它能做什么

本技能读取你的离线 AI 评估实验,并在应用、模型或提示词的不同版本之间进行比较。适合在发布前测试 AI 功能,并希望知道某项改动是否有帮助的团队。

适用场景

  • ✓当你想知道新的提示词或模型版本,是否比上一次运行得分更高时。
  • ✓当某个特定测试用例开始失败,你需要查明原因的时候。
  • ✓当你想查看某个评估器的分数随时间如何变化的时候。

技能链接

https://github.com/PostHog/posthog/blob/master/products/ai_observability/skills/analyzing-offline-evaluations/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/PostHog/posthog/blob/master/products/ai_observability/skills/analyzing-offline-evaluations/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“与上周的运行结果相比,新的提示词版本是否提高了我们的离线评估分数?”

每周 5 个新技能,1 分钟读完。

工作原理

它会找到对应的实验运行,检查它们是否使用了相同的测试数据和评分版本,然后比较结果。在得出结论之前,它会说明测试的是哪项改动,以及哪些因素保持不变。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Analyzing offline evaluations

Offline experiments store results from applications and evaluators executed outside PostHog. Their create/upload tools record results; they do not run code or call a judge. For online Hog, LLM-judge, or sentiment evaluations on captured generations, use exploring-llm-evaluations instead.

The posthog:llma-offline-* tools exist only in projects where offline evaluations are enabled. If they are not in the tool list, tell the user that offline evaluations are not enabled for the project and stop. Do not substitute online evaluation tools.

Find the runs and establish a comparison

Use posthog:llma-offline-experiment-list to find executions, then posthog:llma-offline-experiment-get for their context and coverage. Scope searches by suite, execution dates, run source, and dataset identity/revision when known. Date ranges include date_from and exclude date_to.

Lists include all upload states by default. Prefer statuses: "completed" for a finished comparison; uploading and failed runs may be partial. Scorer history defaults to completed runs. An empty list means no matching stored experiments.

Check suite, dataset source/identifier/revision, scorer version, and trial coverage before attributing a change to an application, model, or prompt revision. State which dimension intentionally changed and which were held constant. If the cohorts differ, report the difference and avoid declaring a causal improvement. Match cases by durable case/dataset identities when available, not run-local item UUIDs or page position.

Read summaries before individual cases

Call posthog:llma-offline-experiment-scorer-summary-list for each run, or posthog:llma-offline-scorer-history for a scorer across runs. These APIs calculate over the full matching results and enforce scorer permissions; use them in SQL-first sessions too. Do not compute a whole-run rate from one item page.

Scorer definitions, version numbers, and immutable version UUIDs are different IDs. Use posthog:llma-score-definition-list / posthog:llma-score-definition-get to find definitions, and posthog:llma-score-definition-version-list / posthog:llma-score-definition-version-get to inspect versions. Filters and uploads take the exact version UUID, never its integer version number. Summaries already include the pinned configuration; fetch versions separately only when needed.

Keep versions separate even if their names or configurations match. Changing the current definition never reinterprets historical offline results.

Interpret each summary using its pinned config:

  • ok is successful execution, including scores that fail the passing rule.
  • Boolean true passes by default; true_is_failure: true reverses that polarity.
  • Numeric gte / lte thresholds define passing; higher does not always mean better.
  • Categorical passing rules apply to category keys. Multiselect frequencies can sum above 100%.
  • Numeric or categorical scores without a passing rule are neutral, with null pass rates. Null is not zero.
  • Pass rate divides passes by successful results only. Report errors, skipped, not-applicable, and missing results separately alongside the denominator.
  • Missing results count observed items without that scorer's result, not items that were never uploaded. Repeated trials each contribute an item, not a case-weighted vote.
  • Visible counts cover authorized scorers. Unavailable counts and caller-declared expected totals do not establish the reader's result coverage.

For a worked comparison, see references/comparing-runs.md.

Investigate representative cases

Page through posthog:llma-offline-experiment-item-list, selecting relevant scorer_version_ids as a comma-separated string of at most 20 UUIDs. The response keeps unscored items and supplies shared scorer_versions; cells reference those UUIDs. Use posthog:llma-offline-experiment-item-result-list for all scores on one item, or posthog:llma-offline-experiment-item-get to inspect a known item's metadata.

For more than 20 scorer versions, keep one set of item IDs and fetch additional columns with posthog:llma-offline-experiment-result-cells: at most 50 item IDs and 20 scorer-version IDs per call. Only interpret an absent cell as missing after that batch succeeds. Follow next_cursor as cursor with unchanged filters; uploading runs can change while being paged.

Fetch relevant content with `posthog:llma-

常见问题

为什么它要先检查测试数据?

只有两次运行使用相同的用例和评分器版本,分数才有意义,因此本技能会先确认这一点,再进行比较。

它会自己运行测试吗?

不会。离线结果是在 PostHog 之外生成并上传的,因此本技能只负责读取和比较。

如果我的项目没有开启离线评估怎么办?

本技能会说明这一情况并停止,因为在这种情况下所需的工具不可用。

详情

作者的原始描述

Inspect and compare offline AI evaluation experiments, diagnose case-level regressions, and follow scorer history across application, model, or prompt changes. Use when a user asks whether an offline run improved, why a case failed, how scores changed between runs, or how to publish externally computed offline results. Covers immutable scorer versions, comparable dataset cohorts, incomplete coverage, and selective payload reads.

repo: PostHog/posthog

热度

GitHub 星标
41k
排名
#6827
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能