@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 {
@@ -4266,5 +4293,5 @@ export {
4266
4293
  AIStreamProvider
4267
4294
  };
4268
4295
 
4269
- //# debugId=1BE4D77BFFFA427964756E2164756E21
4296
+ //# debugId=8C839BB2F157263B64756E2164756E21
4270
4297
  //# sourceMappingURL=index.js.map