feat(observability): LLMOps five-dimension metric aggregation - #221
Open
raymondginger2018-sudo wants to merge 1 commit into
Open
feat(observability): LLMOps five-dimension metric aggregation#221raymondginger2018-sudo wants to merge 1 commit into
raymondginger2018-sudo wants to merge 1 commit into
Conversation
Contributor
Author
设计说明问题:agent 运行的质量、安全、诚实、成本、延迟五个维度分散在各处日志里,没有统一聚合视图。管理者难以回答"这周 agent 系统整体健康吗"。 解法:五维聚合器——每个维度定义评分函数(0-100),最终输出综合报告。价格表通过 关键设计决策:
测试建议:构造各维度的事件样本,验证评分单调性(更多坏事件 → 更低分) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds aggregation for the five LLMOps metrics: Quality / Harm / Honesty / Cost / Latency.
This module consumes recorded per-call records and aggregates them into the five dimensions:
judge_fn) for sampled labels; without a judge these stayNone(unmeasured) rather than fabricatedDesign
DEEPCODE_LLM_PRICESenv or caller-supplied tableFile
core/observability/llmops.py(new, 158 lines)Part of GenAI lesson 14 LLMOps family.