Evaluation: Improve guardrails awareness
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Ambito
- ai, backend-api-design
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 18
- Fork
- 11
- Merge medio
- 3g 11h
- PR unite (30g)
- 8
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ProjectTech4DevAI/kaapi-backend
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
I maintainer di solito rispondono entro 1 giorno
-
Logging: Reduce INFO log noiseForse già presa @vprashrex l’ha presa 3 giorni fa. Apertamaintenance
ProjectTech4DevAI/kaapi-backend#1243 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Sentry Integration: Dynamic release taggingForse già presa @vprashrex l’ha presa 3 giorni fa. Apertaenhancement parent
ProjectTech4DevAI/kaapi-backend#1242 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Sentry Integration: Track staging commitsForse già presa @vprashrex l’ha presa 3 giorni fa. Apertaenhancement
ProjectTech4DevAI/kaapi-backend#1241 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Sentry release tracking for production (git sha + deploy markers)Forse già presa @vprashrex l’ha presa 3 giorni fa. Apertaenhancement
ProjectTech4DevAI/kaapi-backend#1240 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ProjectTech4DevAI/kaapi-backend
Issue simili
-
[Bug]: LangGraph Store sync put bypasses namespace validationForse già presa @ktz03 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
volcengine/OpenViking#6050 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Streamed /v1/chat/completions sends unredacted agent error text (keys) in the final chunkForse già presa @rodricksz4h5 l’ha presa oggi. Apertaarea/streaming comp/gateway P2 type/security
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NousResearch/hermes-agent#138245 ·
I maintainer di solito rispondono entro 1 giorno
-
[oblt-aw][autodoc] Update user onboarding guide for mandatory trigger CODEOWNERS stepForse già presa @github-actions l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
correction metadata
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 68/100
acl-org/acl-anthology#10378 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
cloudtrail_multi_region_enabled_logging_management_events fails when the advanced event selector has a custom nameForse già presa @12YYCCYY16 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
prowler-cloud/prowler#13033 ·
I maintainer di solito rispondono entro 1 giorno