@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.
@@ -1334,6 +1334,11 @@ export type RAGGroundingProviderCardPresentation = {
1334
1334
  label: string;
1335
1335
  headline: string;
1336
1336
  };
1337
+ export type RAGGroundingProviderOverviewPresentation = {
1338
+ winnerLabel: string;
1339
+ winnerSummary: string;
1340
+ rows: RAGLabelValueRow[];
1341
+ };
1337
1342
  export type RAGGroundingProviderCaseComparisonPresentation = {
1338
1343
  caseId: string;
1339
1344
  label: string;
@@ -2444,6 +2444,33 @@ var buildRAGGroundingProviderCardPresentations = (entries) => entries.map((entry
2444
2444
  id: entry.providerKey,
2445
2445
  label: entry.label
2446
2446
  }));
2447
+ var buildRAGGroundingProviderOverviewPresentation = (input) => {
2448
+ const resolveLabel = (key) => input.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
2449
+ const winnerLabel = resolveLabel(input.summary.bestByPassingRate);
2450
+ const winnerEntry = input.entries.find((entry) => entry.providerKey === input.summary.bestByPassingRate);
2451
+ return {
2452
+ rows: [
2453
+ {
2454
+ label: "Best passing rate",
2455
+ value: resolveLabel(input.summary.bestByPassingRate)
2456
+ },
2457
+ {
2458
+ label: "Best citation F1",
2459
+ value: resolveLabel(input.summary.bestByAverageCitationF1)
2460
+ },
2461
+ {
2462
+ label: "Best resolved citations",
2463
+ value: resolveLabel(input.summary.bestByResolvedCitationRate)
2464
+ },
2465
+ {
2466
+ label: "Fastest",
2467
+ value: resolveLabel(input.summary.fastest)
2468
+ }
2469
+ ],
2470
+ winnerLabel,
2471
+ 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"
2472
+ };
2473
+ };
2447
2474
  var buildRAGGroundingProviderCaseComparisonPresentations = (comparisons) => comparisons.map((comparison) => {
2448
2475
  const resolveLabel = (key) => comparison.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
2449
2476
  return {
@@ -4042,5 +4069,5 @@ export {
4042
4069
  AIStreamKey
4043
4070
  };
4044
4071
 
4045
- //# debugId=DF602C4E06ACEC7464756E2164756E21
4072
+ //# debugId=171201D8916FD28364756E2164756E21
4046
4073
  //# sourceMappingURL=index.js.map