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

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.
@@ -2312,6 +2312,28 @@ var formatTraceStageSummary = (stageCounts) => {
2312
2312
  };
2313
2313
  var formatTraceRatio = (count, total) => `${count}/${total}`;
2314
2314
  var formatTraceCountDelta = (value) => `${value >= 0 ? "+" : ""}${value}`;
2315
+ var buildComparisonOverviewPresentation = (input) => {
2316
+ const winnerLabel = input.resolveLabel(input.summary.bestByPassingRate);
2317
+ const winnerEntry = input.resolveEntry(input.summary.bestByPassingRate);
2318
+ return {
2319
+ rows: [
2320
+ {
2321
+ label: "Best passing rate",
2322
+ value: input.resolveLabel(input.summary.bestByPassingRate)
2323
+ },
2324
+ {
2325
+ label: "Best average F1",
2326
+ value: input.resolveLabel(input.summary.bestByAverageF1)
2327
+ },
2328
+ {
2329
+ label: "Fastest",
2330
+ value: input.resolveLabel(input.summary.fastest)
2331
+ }
2332
+ ],
2333
+ winnerLabel,
2334
+ winnerSummary: winnerEntry ? `passing ${formatEvaluationPassingRate(winnerEntry.response.passingRate)} \xB7 f1 ${winnerEntry.response.summary.averageF1.toFixed(3)} \xB7 latency ${winnerEntry.response.summary.averageLatencyMs.toFixed(1)}ms` : "Stored benchmark comparison"
2335
+ };
2336
+ };
2315
2337
  var buildRAGComparisonTraceSummaryRows = (entry) => {
2316
2338
  const trace = entry.traceSummary;
2317
2339
  if (!trace) {
@@ -2398,6 +2420,12 @@ var buildRAGRetrievalComparisonCardPresentations = (comparison) => {
2398
2420
  traceSummaryRows: buildRAGComparisonTraceSummaryRows(entry)
2399
2421
  }));
2400
2422
  };
2423
+ var buildRAGRetrievalComparisonOverviewPresentation = (comparison) => buildComparisonOverviewPresentation({
2424
+ entries: comparison.entries,
2425
+ resolveEntry: (id) => comparison.entries.find((entry) => entry.retrievalId === id),
2426
+ resolveLabel: (id) => comparison.entries.find((entry) => entry.retrievalId === id)?.label ?? id ?? "n/a",
2427
+ summary: comparison.summary
2428
+ });
2401
2429
  var buildRAGRerankerComparisonCardPresentations = (comparison) => {
2402
2430
  const leader = comparison.entries[0];
2403
2431
  return comparison.entries.map((entry) => ({
@@ -2409,6 +2437,12 @@ var buildRAGRerankerComparisonCardPresentations = (comparison) => {
2409
2437
  traceSummaryRows: buildRAGComparisonTraceSummaryRows(entry)
2410
2438
  }));
2411
2439
  };
2440
+ var buildRAGRerankerComparisonOverviewPresentation = (comparison) => buildComparisonOverviewPresentation({
2441
+ entries: comparison.entries,
2442
+ resolveEntry: (id) => comparison.entries.find((entry) => entry.rerankerId === id),
2443
+ resolveLabel: (id) => comparison.entries.find((entry) => entry.rerankerId === id)?.label ?? id ?? "n/a",
2444
+ summary: comparison.summary
2445
+ });
2412
2446
  var buildRAGGroundingProviderCardPresentations = (entries) => entries.map((entry) => ({
2413
2447
  headline: [
2414
2448
  entry.label,
@@ -2447,6 +2481,26 @@ var buildRAGGroundingProviderOverviewPresentation = (input) => {
2447
2481
  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
2482
  };
2449
2483
  };
2484
+ var buildRAGQualityOverviewPresentation = (input) => ({
2485
+ rows: [
2486
+ ...buildRAGRetrievalComparisonOverviewPresentation(input.retrievalComparison).rows,
2487
+ ...buildRAGRerankerComparisonOverviewPresentation(input.rerankerComparison).rows,
2488
+ {
2489
+ label: "Grounding",
2490
+ value: formatGroundingHistorySummaryValue(input.groundingEvaluation)
2491
+ },
2492
+ ...input.groundingProviderOverview?.rows ?? [
2493
+ {
2494
+ label: "Grounding providers",
2495
+ value: "Configure an AI provider to compare grounded answers."
2496
+ }
2497
+ ]
2498
+ ],
2499
+ insights: [
2500
+ "The example should answer three questions quickly: which strategy wins, whether grounding is stable, and whether the result regressed.",
2501
+ "Detailed case-by-case evidence stays behind collapsible sections so the page reads like a product surface instead of a console buffer."
2502
+ ]
2503
+ });
2450
2504
  var buildRAGGroundingProviderCaseComparisonPresentations = (comparisons) => comparisons.map((comparison) => {
2451
2505
  const resolveLabel = (key) => comparison.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
2452
2506
  return {
@@ -4293,5 +4347,5 @@ export {
4293
4347
  AIStreamProvider
4294
4348
  };
4295
4349
 
4296
- //# debugId=8C839BB2F157263B64756E2164756E21
4350
+ //# debugId=A5110596E7BFC49C64756E2164756E21
4297
4351
  //# sourceMappingURL=index.js.map