Evaluation: Improve guardrails awareness
维护者通常 1 天内回复
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 15/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 领域
- ai, backend-api-design
调研方向
The issue says the evaluation job's v2 path and GET /api/v1/evaluations/{id} results are involved; start by tracing that evaluation path and the execute_llm_call path. Check how guardrail data passes through retries, merging, scoring, and traces. Done means fast/v2 evaluations apply input and output guardrails and expose the requested per-row fields without recording eval traffic as llm_call rows; the issue reports this work as implemented in #1208.
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem?
Text evaluations (fast run mode / v2) currently ignore the stored input and output guardrails. This leads to eval scores that don't accurately reflect the system's behavior in production.
Describe the solution you'd like
- Make fast/v2 evaluations guardrails-aware: check each dataset query against
input_guardrailsbefore the LLM call and the response againstoutput_guardrailsafter. - Use the
execute_llm_callpath instead of a separate eval-only path, avoiding the recording of eval traffic asllm_callrows. - Include per-row
guardrailstatus,input_to_llm, andoutput_from_llminGET /api/v1/evaluations/{id}results. - Carry guardrail data through retry, merge, scoring, and traces.
Original issue
Is your feature request related to a problem?
Text evaluations (fast run mode / v2) ignore the input and output guardrails stored on the config. The golden dataset query is sent straight to the LLM and the generated response is never checked by output guardrails, so eval scores don't reflect how the config actually behaves in production via /llm/call.
Describe the solution you'd like
- Make the fast/v2 evaluation run guardrails-aware: run each dataset query through the config's
input_guardrailsbefore the LLM call, and the response throughoutput_guardrailsafter. - Reuse the
execute_llm_callpath instead of a separate eval-only LLM path, without recording eval traffic asllm_callrows / production metrics. - Surface per-row
guardrailstatus,input_to_llmandoutput_from_llminGET /api/v1/evaluations/{id}results. - Carry guardrail data through retry, merge, scoring and traces.
Original issue
Earlier doing text evals v2 used not to take into account the stored input and output validators ids and instead sending the input / output straight to openAI. Now the evaluation job (v2) is guardrails aware; meaning the query in the golden dataset is passed through input guardrails if they are stored; similar functionality for responses generated (if o/p guardrails are configured).
Comments: Implemented in #1208.
- 主要语言
- Python
- 星标
- 18
- 派生
- 11
- 平均合并
- 4 天 16 小时
- 30 天内合并 PR
- 11
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
ProjectTech4DevAI/kaapi-backend 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
维护者通常 1 天内回复
-
Evaluation: Add latency summary data可能已有人在做 @Ayush8923 于 1 天前认领。 未关闭
ProjectTech4DevAI/kaapi-backend#1253 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Guardrails: Inline validator support可能已有人在做 @AkhileshNegi 于 1 天前认领。 未关闭enhancement
ProjectTech4DevAI/kaapi-backend#1247 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Logging: Reduce INFO log noise可能已有人在做 @vprashrex 于 5 天前认领。 未关闭maintenance
ProjectTech4DevAI/kaapi-backend#1243 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Sentry Integration: Dynamic release tagging可能已有人在做 @vprashrex 于 5 天前认领。 未关闭enhancement parent
ProjectTech4DevAI/kaapi-backend#1242 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 ProjectTech4DevAI/kaapi-backend 的全部 Issue
相似的 Issue
-
`burr` fails to start when the Python path has a space in it可能已有人在做 @enekoreto 今天认领。 未关闭status/needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 5 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
-
难度 2/5 半天 新手友好度 72/100
debpalash/VoiceStudio#2903 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
dagster-io/community-integrations#367 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
aws-samples/sample-per-model-bedrock#243 ·
维护者通常 1 天内回复