Evaluation: Add latency summary data
Maintainer thường phản hồi trong vòng 2 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 18
- Fork
- 11
- Merge trung bình
- 4 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 9
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ProjectTech4DevAI/kaapi-backend
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ProjectTech4DevAI/kaapi-backend#889 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Fallback: Dynamic message translationsCó thể đã có người làm @Prajna1999 đã nhận hôm nay. Đang mở
ProjectTech4DevAI/kaapi-backend#1251 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Redaction: Verify PII entity typesCó thể đã có người làm @AkhileshNegi đã nhận hôm nay. Đang mởenhancement
ProjectTech4DevAI/kaapi-backend#1250 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Content Safety: Unified wrapper validatorCó thể đã có người làm @Prajna1999 đã nhận hôm nay. Đang mở
ProjectTech4DevAI/kaapi-backend#1249 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Documentation: Update API docs and CookbookCó thể đã có người làm @Prajna1999 đã nhận 1 ngày trước. Đang mở
ProjectTech4DevAI/kaapi-backend#1248 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của ProjectTech4DevAI/kaapi-backend
Issue tương tự
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
btclib-org/btclib-node#1955 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation v0.9.2
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
khuisman/mcp-gee-sweet#1033 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
ossf/cve-bin-tool#5966 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 2 ngày
-
write_iceberg ignores the table's write.parquet.compression-codec propertyCó thể đã có người làm @YuangGao đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Eventual-Inc/Daft#7606 ·
Maintainer thường phản hồi trong vòng 1 ngày