Evaluation: Improve guardrails awareness
メンテナーはふだん 2 日以内に返信
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 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日 20時間
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ProjectTech4DevAI/kaapi-backend のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
メンテナーはふだん 2 日以内に返信
-
Evaluation: Add latency summary data対応中かも @Ayush8923 が今日担当しました。 オープン
ProjectTech4DevAI/kaapi-backend#1253 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Fallback: Dynamic message translations対応中かも @Prajna1999 が今日担当しました。 オープン
ProjectTech4DevAI/kaapi-backend#1251 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Redaction: Verify PII entity types対応中かも @AkhileshNegi が今日担当しました。 オープンenhancement
ProjectTech4DevAI/kaapi-backend#1250 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
-
Content Safety: Unified wrapper validator対応中かも @Prajna1999 が今日担当しました。 オープン
ProjectTech4DevAI/kaapi-backend#1249 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
ProjectTech4DevAI/kaapi-backend の issue をすべて見る
似ている issue
-
vis.image() reports "Unsupported number of image channels: 224" for an HxWxC image対応中かも @piyush182004 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
fossasia/visdom#1997 · コメント 3 件 ·
メンテナーはふだん 6 日以内に返信
-
Byse new domainオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Gujal00/ResolveURL#1525 ·
メンテナーはふだん 1 日以内に返信
-
Serialisation fails with pydantic 2.14: wrap serialisers pass SerializationInfo as index_key対応中かも @hugohills-regnosys が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
finos/rune-python-runtime#45 ·
-
[Bug]: LangGraph Store sync put bypasses namespace validation対応中かも @ktz03 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
volcengine/OpenViking#6050 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
hummingbot/condor#283 ·
メンテナーはふだん 1 日以内に返信