Commit b7b068a
refactor: extract rubric data to AIQuantitativeOutput and simplify Analytics (#80)
- Add new AIQuantitativeOutput struct for rubric-based LLM-as-a-judge data
- Move rubric_scores and rubric_summary from QualitativeOutput to AIQuantitativeOutput
- Remove quantitative_input and qualitative_input from Analytics struct
(can be reconstructed from session_id)
- Update Analytics::new() to accept AIQuantitativeOutput and Metrics directly
- Add migration 014 to restructure analytics table
- Update database repository and service layer accordingly
- Simplify formatters to use metrics field instead of quantitative_input
- Update TypeScript types for frontend compatibility
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7a86214 commit b7b068a
File tree
13 files changed
+223
-312
lines changed- .sqlx
- migrations
- src
- database
- models
- services
- analytics
- ui-react
- src/types
- types
13 files changed
+223
-312
lines changedLines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 12 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | 394 | | |
399 | 395 | | |
400 | 396 | | |
401 | 397 | | |
| 398 | + | |
| 399 | + | |
402 | 400 | | |
403 | 401 | | |
404 | 402 | | |
405 | 403 | | |
406 | 404 | | |
407 | 405 | | |
408 | | - | |
409 | 406 | | |
| 407 | + | |
410 | 408 | | |
411 | | - | |
| 409 | + | |
412 | 410 | | |
413 | 411 | | |
414 | 412 | | |
415 | 413 | | |
416 | 414 | | |
417 | 415 | | |
418 | 416 | | |
419 | | - | |
420 | | - | |
421 | 417 | | |
422 | 418 | | |
| 419 | + | |
423 | 420 | | |
424 | 421 | | |
425 | 422 | | |
| |||
436 | 433 | | |
437 | 434 | | |
438 | 435 | | |
439 | | - | |
440 | 436 | | |
| 437 | + | |
441 | 438 | | |
442 | 439 | | |
443 | 440 | | |
| |||
456 | 453 | | |
457 | 454 | | |
458 | 455 | | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | 456 | | |
466 | 457 | | |
467 | 458 | | |
468 | 459 | | |
469 | 460 | | |
470 | 461 | | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
471 | 465 | | |
472 | 466 | | |
473 | 467 | | |
| |||
489 | 483 | | |
490 | 484 | | |
491 | 485 | | |
492 | | - | |
493 | | - | |
494 | 486 | | |
495 | 487 | | |
| 488 | + | |
496 | 489 | | |
497 | 490 | | |
498 | 491 | | |
| |||
510 | 503 | | |
511 | 504 | | |
512 | 505 | | |
513 | | - | |
514 | 506 | | |
| 507 | + | |
515 | 508 | | |
516 | 509 | | |
517 | 510 | | |
| |||
532 | 525 | | |
533 | 526 | | |
534 | 527 | | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | 528 | | |
542 | 529 | | |
543 | 530 | | |
544 | 531 | | |
545 | 532 | | |
546 | 533 | | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
547 | 537 | | |
548 | 538 | | |
549 | 539 | | |
| |||
565 | 555 | | |
566 | 556 | | |
567 | 557 | | |
568 | | - | |
569 | | - | |
570 | 558 | | |
571 | 559 | | |
| 560 | + | |
572 | 561 | | |
573 | 562 | | |
574 | 563 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
48 | | - | |
| 46 | + | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
63 | | - | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 84 | + | |
95 | 85 | | |
96 | 86 | | |
| 87 | + | |
97 | 88 | | |
98 | 89 | | |
99 | 90 | | |
| |||
0 commit comments