Evaluation: Improve guardrails awareness
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 15/100
- Type d'issue
- Fonctionnalité
- Clarté
- Clairement spécifiée
- Activité
- À l'abandon
- Domaine
- ai, backend-api-design
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Python
- Étoiles
- 18
- Forks
- 11
- Merge moyen
- 4 j 16 h
- PR mergées (30 j)
- 11
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de ProjectTech4DevAI/kaapi-backend
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
Les mainteneurs répondent en général sous 1 jour
-
Evaluation: Add latency summary dataPeut-être pris @Ayush8923 l’a pris il y a 1 jour. Ouverte
ProjectTech4DevAI/kaapi-backend#1253 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Guardrails: Inline validator supportPeut-être pris @AkhileshNegi l’a pris il y a 1 jour. Ouverteenhancement
ProjectTech4DevAI/kaapi-backend#1247 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Logging: Reduce INFO log noisePeut-être pris @vprashrex l’a pris il y a 5 jours. Ouvertemaintenance
ProjectTech4DevAI/kaapi-backend#1243 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
Sentry Integration: Dynamic release taggingPeut-être pris @vprashrex l’a pris il y a 5 jours. Ouverteenhancement parent
ProjectTech4DevAI/kaapi-backend#1242 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de ProjectTech4DevAI/kaapi-backend
Issues similaires
-
`burr` fails to start when the Python path has a space in itPeut-être pris @enekoreto l’a pris aujourd’hui. Ouvertestatus/needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 5 jours
-
gemini 出现了新的域名需要加入Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
-
Difficulté 2/5 Une demi-journée Accessibilité débutants 72/100
debpalash/VoiceStudio#2903 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
dagster-io/community-integrations#367 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
aws-samples/sample-per-model-bedrock#243 ·
Les mainteneurs répondent en général sous 1 jour