Evaluation: Add latency summary data
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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.
- Vorherrschende Sprache
- Python
- Sterne
- 18
- Forks
- 11
- Ø Merge
- 4 T. 16 Std.
- Gemergte PRs (30 T.)
- 11
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ProjectTech4DevAI/kaapi-backend
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Guardrails: Inline validator supportEvtl. vergeben @AkhileshNegi hat das vor 1 Tag übernommen. Offenenhancement
ProjectTech4DevAI/kaapi-backend#1247 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Logging: Reduce INFO log noiseEvtl. vergeben @vprashrex hat das vor 5 Tagen übernommen. Offenmaintenance
ProjectTech4DevAI/kaapi-backend#1243 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Sentry Integration: Dynamic release taggingEvtl. vergeben @vprashrex hat das vor 5 Tagen übernommen. Offenenhancement parent
ProjectTech4DevAI/kaapi-backend#1242 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Sentry Integration: Track staging commitsEvtl. vergeben @vprashrex hat das vor 5 Tagen übernommen. Offenenhancement
ProjectTech4DevAI/kaapi-backend#1241 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in ProjectTech4DevAI/kaapi-backend
Ähnliche Issues
-
Path subtraction removes repeated suffix characters instead of one suffixEvtl. vergeben @Gwerdonatus hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
joke2k/django-environ#671 ·
-
good first issue help wanted windows
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
-
test_pgbouncer deploys the server under test from Charmhub instead of the local build (track/1.31)Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
canonical/temporal-k8s-operator#195 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 4 Tagen
-
`burr` fails to start when the Python path has a space in itEvtl. vergeben @enekoreto hat das heute übernommen. Offenstatus/needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 5 Tagen
-
device support request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
zigpy/zha-device-handlers#5461 ·
Maintainer antworten meist innerhalb von 4 Tagen