creating-online-evaluations
Skill này làm gì
Skill này tạo các đánh giá liên tục, tự động chấm điểm phản hồi AI mới hoặc toàn bộ cuộc hội thoại. Nó dành cho các nhóm muốn bắt những vấn đề cụ thể trong tính năng AI mà không cần đọc từng câu trả lời.
Khi nào nên dùng
- ✓Khi bạn muốn một kiểm tra tự động bắt được một vấn đề bạn đã thấy trên môi trường thực tế.
- ✓Khi bạn muốn tiếp tục kiểm tra xem phản hồi AI có đáp ứng một quy tắc theo thời gian không.
- ✓Khi bạn có danh sách các mẫu lỗi và muốn biến mỗi mẫu thành một kiểm tra được giám sát.
Liên kết skill
https://github.com/PostHog/posthog/blob/master/products/ai_observability/skills/creating-online-evaluations/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thiết lập một kiểm tra tự động để gắn cờ các phản hồi AI bỏ qua câu hỏi của người dùng.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Đầu tiên, AI đề xuất một danh sách ngắn các kiểm tra dựa trên lỗi thực tế trong dữ liệu của bạn, rồi chờ bạn chọn. Sau đó, AI tạo từng đánh giá đã chọn, giới hạn trong các phản hồi phù hợp, để các phản hồi mới tiếp tục được chấm điểm cho đến khi bạn tắt.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Creating online evaluations
An online evaluation automatically scores either each matching $ai_generation or the whole trace
containing it, until disabled. A good eval comes from a real failure mode you've found in production traffic,
not from a guess or a generic metric like "hallucination" or "helpfulness". This skill starts once those
failure modes are identified and turns them into scoped, continuously-running evals.
One eval per failure mode, and as many evals as the data justifies. How many to create is a judgment call you make from what the traces actually showed — sometimes one, often three or four. Never assume the answer is one, and never bundle unrelated modes into one evaluator. The exception is a set of modes that are outcomes of the same check, such as the reasons a reply missed the user's request: one categorical eval with a category per mode fits that (2.1).
Propose before you create. Bring the user a short list of candidate evals and let them pick which ones they want (Phase 1.1). Creating evals they didn't ask for costs them money and noise.
First, know what you're evaluating. Finding and ranking the failure modes worth catching is a
separate job. If the user doesn't specify what they want to evaluate, ask them. If they are still vague
about it and don't refer to a specific failure mode, run exploring-ai-failures to scope a use case,
find failing traces, and produce a ranked list of failure modes.
For the mechanics of writing and iterating an evaluator (Hog source vs LLM-judge prompt, dry-running,
debugging a live eval), defer to exploring-llm-evaluations.
Tools
| Tool | Purpose |
|---|---|
posthog:llma-evaluation-config-get |
Check the active provider key used by unpinned judges |
posthog:llma-provider-key-list |
Find a usable (ok state) provider key to pin |
posthog:llma-evaluation-judge-models |
List valid provider+model combos |
posthog:llma-evaluation-directory-list |
List directories available for organizing the evaluation |
posthog:llma-evaluation-directory-create |
Create a directory when the user asks for a new one |
posthog:llma-evaluation-test-hog |
Dry-run Hog source against recent generations before creating |
posthog:llma-evaluation-create |
Create the evaluation (always enabled: false first) |
posthog:llma-evaluation-run |
Spot-run a draft eval against one generation |
posthog:llma-evaluation-update |
Iterate config, then flip enabled: true |
posthog:llma-evaluation-backfill-estimate |
Count what a backfill over past data would evaluate |
posthog:llma-evaluation-backfill-create |
Evaluate past data, only after the user confirms the estimate |
posthog:llma-evaluation-backfill-get |
Track a backfill's progress and coverage |
posthog:llma-evaluation-backfill-list |
Find an evaluation's backfills, including one already running |
posthog:llma-evaluation-backfill-cancel |
Stop a running backfill when the user asks |
posthog:execute-sql |
Verify a condition matches the events and volume you expect |
posthog:generate-app-url |
Build a region- and project-qualified deep link to the eval |
The full create payload (every field, the config schemas, the exact conditions shape) is in
references/evaluation-payload.md.
Phase 1 — Decide what to propose, then let the user choose
Start from real, observed failures, not metrics you picked in advance. If you don't already have them,
run exploring-ai-failures to scope a use case, find failing traces, and produce a ranked list of failure
modes — then come back.
1.1 — Turn the failure modes into a candidate set
Let the data decide how many. One failure mode is one eval, so a ranked list of four distinct modes is a candidate set of four evals. Don't collapse them into one evaluator that tries to catch everything, and don't stop at the top mode when the traces clearly showed more worth watching. Keep a candidate when:
- **It
Câu hỏi thường gặp
Skill có tạo các kiểm tra mà tôi không yêu cầu không?
Không. Skill đề xuất một danh sách ngắn trước và chỉ tạo những kiểm tra bạn chọn.
Vì sao không dùng một kiểm tra chung như ảo giác?
Skill ưu tiên các kiểm tra dựa trên lỗi được tìm thấy trong lưu lượng của chính bạn, vì các chỉ số chung có thể không khớp với sản phẩm của bạn.
Các kiểm tra này có tốn chi phí không?
Các kiểm tra dùng AI làm người chấm sẽ gọi một mô hình mỗi lần chạy. Kiểm tra dựa trên mã thì không.
Chi tiết
Mô tả gốc của tác giả
Author continuously-running online evaluations in PostHog AI observability, grounded in real failure modes you've identified. Use when the user wants evaluations that automatically score new generations or whole traces going forward — "create an eval to catch X", "continuously check that responses do Y", "turn these failures into evals". Covers letting the explored data decide how many evals to create, proposing that set for the user to pick, choosing the target and eval type (hog / llm_judge / sentiment), configuring a provider and model for an llm_judge eval (a provider key gates enabling, n
repo: PostHog/posthog
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6828
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
depot-ci
41kGiúp agent của bạn thiết lập và chạy quy trình Depot CI, một lựa chọn thay thế GitHub Actions, gồm chuyển các quy trình hiện có và đọc nhật ký chạy.
depot-container-builds
41kGiúp agent của bạn build image Docker trên các builder từ xa của Depot, gồm image đa nền tảng, đẩy lên registry và sửa lỗi build.
depot-github-runners
41kGiúp agent của bạn chuyển các job GitHub Actions sang runner do Depot quản lý, chọn kích thước và nhãn runner, và xử lý lỗi thiết lập runner.
editing-agents-md
41kGiúp agent của bạn quyết định một quy tắc nên nằm trong file AGENTS.md hay CLAUDE.md, và viết sao cho quy tắc được tuân thủ mà file không bị phình to.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.