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

exploring-llm-evaluations

它能做什么

本技能查看为你的 AI 回复评分的自动评估,包括基于规则的检查、AI 评审员检查和情感分析。适合希望了解某项检查为何失败、或其结果说明了什么的团队。

适用场景

  • ✓当某项评估持续失败,你想知道原因时。
  • ✓当你想查看回复未能通过检查的最常见原因时。
  • ✓当你想为某项评估的结果设置定期报告的时候。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“为什么我们的语气评估经常失败?这些失败的回复有什么共同点?”

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

工作原理

它会找到该评估并读取其设置,必要时可以对特定回复运行检查。然后,它会查看已存储的结果,用通俗的语言说明其中的规律。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Exploring AI observability evaluations

For stored offline experiment comparisons, scorer history, or externally computed result uploads, use analyzing-offline-evaluations. Offline experiments use pinned scorer configurations and separate result APIs from the online evaluations below.

PostHog evaluations score $ai_generation events. Each evaluation is one of three types:

  • hog — deterministic Hog code that returns a boolean, numeric score, or categories (and optionally N/A). Best for objective rule-based checks: format validation (JSON parses, schema matches), length limits, keyword presence/absence, regex patterns, structural assertions, latency thresholds, cost guards. Cheap, fast, reproducible — no LLM call per run. Prefer this when the criterion can be expressed as code.
  • llm_judge — an LLM scores generations against a prompt you write. Best for subjective or fuzzy checks: tone, helpfulness, hallucination detection, off-topic drift, instruction-following. Costs an LLM call per run and requires AI data processing approval at the org level.
  • sentiment — classifies sentiment from user messages on each matching generation. Returns a sentiment label and score, not a pass/fail verdict.

Results from all types land in ClickHouse as $ai_evaluation events. Boolean evaluations (llm_judge and hog) set $ai_evaluation_result; sentiment evaluations set $ai_sentiment_* properties instead. Both hog and llm_judge also support output_type: "numeric". Numeric runs store their raw score in $ai_evaluation_numeric_result, with optional $ai_evaluation_numeric_result_min and $ai_evaluation_numeric_result_max. They never set $ai_evaluation_result. Use output_config.passing_rule to interpret scores: gte means at least the threshold and lte means at most. Changing the rule reinterprets historical scores. Saved reports retain the rule and metrics used when generated. Without a passing rule, inspect score means and distributions; pass rates and reports are unavailable.

Both runtimes also support output_type: "categorical" when categorical evaluations are enabled for the project. Read output_config.options for the configured {key, label} pairs and selection_mode for single or multiple. Results store keys as a list in $ai_evaluation_categorical_result; single selection requires exactly one key, while multiple selection accepts []. Hog can also return a single key string in single mode. Use output_config.passing_rule.categories to grade results: a nonempty result passes only when every returned key is a passing category. A nonempty rule fails []; an empty rule passes only [] and is allowed only in multiple mode. Without a rule, inspect category frequencies instead of pass rates; new reports are unavailable. Rule edits reclassify historical results, while saved reports retain their rule snapshot.

This skill covers the full lifecycle: list/inspect/manage evaluation configs, run them on specific generations, query individual results, and configure evaluation reports that summarize recent runs on a schedule.

Tools

Tool Purpose
posthog:llma-evaluation-list List/search evaluation configs (filter by name, enabled flag)
posthog:llma-evaluation-get Get a single evaluation config by UUID
posthog:llma-evaluation-create Create a new llm_judge, hog, or sentiment evaluation
posthog:llma-evaluation-update Update an existing evaluation (name, prompt, enabled, …)
posthog:llma-evaluation-delete Soft-delete an evaluation
posthog:llma-evaluation-run Run an evaluation against a specific $ai_generation event
posthog:llma-evaluation-test-hog Dry-run Hog source against recent generations (no save)
posthog:llma-evaluation-report-list List the report configs attached to an evaluation
posthog:llma-evaluation-report-create Schedule an AI report on an evaluation (email or Slack)
posthog:llma-evaluation-report-run-list Past report runs, including the report content that was sent
posthog:execute-sql
常见问题

评估有哪些类型?

返回是或否结果的基于代码的检查、遵循书面提示词的 AI 评审员检查,以及对用户消息的情感检查。

AI 评审员检查需要花钱吗?

AI 评审员检查的每次运行都会进行一次模型调用,并且你的组织必须批准 AI 数据处理。

它能设置定期报告吗?

可以。它可以为某项评估的结果设置定期报告。

详情

作者的原始描述

Investigate AI observability evaluations — `hog` (deterministic code-based), `llm_judge` (LLM-prompt-based), and `sentiment` (user-message sentiment). Find existing evaluations, inspect their configuration, run them against specific generations, query individual results, and set up scheduled reports on an evaluation. Use when the user asks to debug why an evaluation is failing, surface common failure modes, compare results across filters, dry-run a Hog evaluator, prototype a new LLM-judge prompt, inspect sentiment classifications, or manage the evaluation lifecycle.

repo: PostHog/posthog

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能