@absolutejs/absolute 0.19.0-beta.541 → 0.19.0-beta.542

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2420,6 +2420,33 @@ var buildRAGGroundingProviderCardPresentations = (entries) => entries.map((entry
2420
2420
  id: entry.providerKey,
2421
2421
  label: entry.label
2422
2422
  }));
2423
+ var buildRAGGroundingProviderOverviewPresentation = (input) => {
2424
+ const resolveLabel = (key) => input.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
2425
+ const winnerLabel = resolveLabel(input.summary.bestByPassingRate);
2426
+ const winnerEntry = input.entries.find((entry) => entry.providerKey === input.summary.bestByPassingRate);
2427
+ return {
2428
+ rows: [
2429
+ {
2430
+ label: "Best passing rate",
2431
+ value: resolveLabel(input.summary.bestByPassingRate)
2432
+ },
2433
+ {
2434
+ label: "Best citation F1",
2435
+ value: resolveLabel(input.summary.bestByAverageCitationF1)
2436
+ },
2437
+ {
2438
+ label: "Best resolved citations",
2439
+ value: resolveLabel(input.summary.bestByResolvedCitationRate)
2440
+ },
2441
+ {
2442
+ label: "Fastest",
2443
+ value: resolveLabel(input.summary.fastest)
2444
+ }
2445
+ ],
2446
+ winnerLabel,
2447
+ winnerSummary: winnerEntry ? `passing ${formatEvaluationPassingRate(winnerEntry.response.passingRate)} \xB7 citation f1 ${winnerEntry.response.summary.averageCitationF1.toFixed(3)} \xB7 resolved ${formatEvaluationPassingRate(winnerEntry.response.summary.averageResolvedCitationRate)}` : "Stored workflow evaluation"
2448
+ };
2449
+ };
2423
2450
  var buildRAGGroundingProviderCaseComparisonPresentations = (comparisons) => comparisons.map((comparison) => {
2424
2451
  const resolveLabel = (key) => comparison.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
2425
2452
  return {
@@ -3379,5 +3406,5 @@ export {
3379
3406
  buildRAGAnswerWorkflowState
3380
3407
  };
3381
3408
 
3382
- //# debugId=9760F75E320C2A3C64756E2164756E21
3409
+ //# debugId=1B575FBECBE745D364756E2164756E21
3383
3410
  //# sourceMappingURL=index.js.map