Evaluation: Add latency summary data
Los mantenedores suelen responder en 2 días
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Is your feature request related to a problem?
Evaluation runs provide cost information for OpenAI calls but lack latency data. This prevents us from identifying which configurations or prompts are slower, impacting our ability to optimize evaluations effectively.
Describe the solution you'd like
Add a latency summary to each evaluation run next to the cost, including:
- Average time of OpenAI calls in milliseconds, plus the number of calls for each step:
- response: generating the answer
- embedding: similarity scoring (v1 runs)
- judge: LLM-as-judge scoring (v2 runs)
- One overall average across all successful calls.
- Display this data on existing run endpoints for frontend integration.
- Ensure runs complete even if latency calculation fails.
Original issue
Is your feature request related to a problem? Please describe.
Evaluation runs show how much the OpenAI calls cost, but not how long they took. When we compare configs or prompts, we can't tell whether one setup is slower than another, or which step of the evaluation is slow: generating answers, embeddings, or judging. Response time is one of the main reasons fast evaluations exist, but we don't report it anywhere.
Describe the solution you'd like
Add a latency summary to each evaluation run, next to the existing cost:
- The average time of an OpenAI call in milliseconds, plus the number of calls, for each step:
- response: generating the answer for each question
- embedding: similarity scoring (v1 runs)
- judge: LLM-as-judge scoring (v2 runs)
- One overall average across all calls in the run.
- Only successful calls count. Failed calls and questions blocked by a guardrail are left out.
- Shown on the existing run endpoints, so the frontend can display it on the run card next to cost.
- If working out latency fails, the run should still complete.
Describe alternatives you've considered
- Storing latency inside the cost field. Rejected: a problem with one could wipe out the other. Keeping them separate keeps them independent.
- Using the total batch duration for batch runs. Rejected: batch time is mostly OpenAI queue time, not call time, so it would be misleading. Batch runs will show no latency.
- Adding p95 / max / per-question latency now. Deferred: we'll start with averages. The call counts and per-question timings are stored so these can be added later.
- Lenguaje dominante
- Python
- Estrellas
- 18
- Forks
- 11
- Merge medio
- 4 d 20 h
- PR fusionados (30 d)
- 9
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ProjectTech4DevAI/kaapi-backend
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
Los mantenedores suelen responder en 2 días
-
Fallback: Dynamic message translationsPosiblemente ocupada @Prajna1999 la tomó hoy. Abierto
ProjectTech4DevAI/kaapi-backend#1251 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Redaction: Verify PII entity typesPosiblemente ocupada @AkhileshNegi la tomó hoy. Abiertoenhancement
ProjectTech4DevAI/kaapi-backend#1250 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Content Safety: Unified wrapper validatorPosiblemente ocupada @Prajna1999 la tomó hoy. Abierto
ProjectTech4DevAI/kaapi-backend#1249 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Documentation: Update API docs and CookbookPosiblemente ocupada @Prajna1999 la tomó hoy. Abierto
ProjectTech4DevAI/kaapi-backend#1248 · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de ProjectTech4DevAI/kaapi-backend
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
-
[Bug]: Importing weave changes the process-wide localePosiblemente ocupada @himanshu748 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
-
UX
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
mediajunkie/piper-morgan-product#2008 · 2 comentarios ·