@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.
@@ -1329,6 +1329,11 @@ export type RAGComparisonCardPresentation = {
1329
1329
  diffLabel: string;
1330
1330
  diffRows: RAGLabelValueRow[];
1331
1331
  };
1332
+ export type RAGComparisonOverviewPresentation = {
1333
+ winnerLabel: string;
1334
+ winnerSummary: string;
1335
+ rows: RAGLabelValueRow[];
1336
+ };
1332
1337
  export type RAGGroundingProviderCardPresentation = {
1333
1338
  id: string;
1334
1339
  label: string;
@@ -1339,6 +1344,10 @@ export type RAGGroundingProviderOverviewPresentation = {
1339
1344
  winnerSummary: string;
1340
1345
  rows: RAGLabelValueRow[];
1341
1346
  };
1347
+ export type RAGQualityOverviewPresentation = {
1348
+ rows: RAGLabelValueRow[];
1349
+ insights: string[];
1350
+ };
1342
1351
  export type RAGGroundingProviderCaseComparisonPresentation = {
1343
1352
  caseId: string;
1344
1353
  label: string;
@@ -2336,6 +2336,28 @@ var formatTraceStageSummary = (stageCounts) => {
2336
2336
  };
2337
2337
  var formatTraceRatio = (count, total) => `${count}/${total}`;
2338
2338
  var formatTraceCountDelta = (value) => `${value >= 0 ? "+" : ""}${value}`;
2339
+ var buildComparisonOverviewPresentation = (input) => {
2340
+ const winnerLabel = input.resolveLabel(input.summary.bestByPassingRate);
2341
+ const winnerEntry = input.resolveEntry(input.summary.bestByPassingRate);
2342
+ return {
2343
+ rows: [
2344
+ {
2345
+ label: "Best passing rate",
2346
+ value: input.resolveLabel(input.summary.bestByPassingRate)
2347
+ },
2348
+ {
2349
+ label: "Best average F1",
2350
+ value: input.resolveLabel(input.summary.bestByAverageF1)
2351
+ },
2352
+ {
2353
+ label: "Fastest",
2354
+ value: input.resolveLabel(input.summary.fastest)
2355
+ }
2356
+ ],
2357
+ winnerLabel,
2358
+ 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"
2359
+ };
2360
+ };
2339
2361
  var buildRAGComparisonTraceSummaryRows = (entry) => {
2340
2362
  const trace = entry.traceSummary;
2341
2363
  if (!trace) {
@@ -2422,6 +2444,12 @@ var buildRAGRetrievalComparisonCardPresentations = (comparison) => {
2422
2444
  traceSummaryRows: buildRAGComparisonTraceSummaryRows(entry)
2423
2445
  }));
2424
2446
  };
2447
+ var buildRAGRetrievalComparisonOverviewPresentation = (comparison) => buildComparisonOverviewPresentation({
2448
+ entries: comparison.entries,
2449
+ resolveEntry: (id) => comparison.entries.find((entry) => entry.retrievalId === id),
2450
+ resolveLabel: (id) => comparison.entries.find((entry) => entry.retrievalId === id)?.label ?? id ?? "n/a",
2451
+ summary: comparison.summary
2452
+ });
2425
2453
  var buildRAGRerankerComparisonCardPresentations = (comparison) => {
2426
2454
  const leader = comparison.entries[0];
2427
2455
  return comparison.entries.map((entry) => ({
@@ -2433,6 +2461,12 @@ var buildRAGRerankerComparisonCardPresentations = (comparison) => {
2433
2461
  traceSummaryRows: buildRAGComparisonTraceSummaryRows(entry)
2434
2462
  }));
2435
2463
  };
2464
+ var buildRAGRerankerComparisonOverviewPresentation = (comparison) => buildComparisonOverviewPresentation({
2465
+ entries: comparison.entries,
2466
+ resolveEntry: (id) => comparison.entries.find((entry) => entry.rerankerId === id),
2467
+ resolveLabel: (id) => comparison.entries.find((entry) => entry.rerankerId === id)?.label ?? id ?? "n/a",
2468
+ summary: comparison.summary
2469
+ });
2436
2470
  var buildRAGGroundingProviderCardPresentations = (entries) => entries.map((entry) => ({
2437
2471
  headline: [
2438
2472
  entry.label,
@@ -2471,6 +2505,26 @@ var buildRAGGroundingProviderOverviewPresentation = (input) => {
2471
2505
  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
2506
  };
2473
2507
  };
2508
+ var buildRAGQualityOverviewPresentation = (input) => ({
2509
+ rows: [
2510
+ ...buildRAGRetrievalComparisonOverviewPresentation(input.retrievalComparison).rows,
2511
+ ...buildRAGRerankerComparisonOverviewPresentation(input.rerankerComparison).rows,
2512
+ {
2513
+ label: "Grounding",
2514
+ value: formatGroundingHistorySummaryValue(input.groundingEvaluation)
2515
+ },
2516
+ ...input.groundingProviderOverview?.rows ?? [
2517
+ {
2518
+ label: "Grounding providers",
2519
+ value: "Configure an AI provider to compare grounded answers."
2520
+ }
2521
+ ]
2522
+ ],
2523
+ insights: [
2524
+ "The example should answer three questions quickly: which strategy wins, whether grounding is stable, and whether the result regressed.",
2525
+ "Detailed case-by-case evidence stays behind collapsible sections so the page reads like a product surface instead of a console buffer."
2526
+ ]
2527
+ });
2474
2528
  var buildRAGGroundingProviderCaseComparisonPresentations = (comparisons) => comparisons.map((comparison) => {
2475
2529
  const resolveLabel = (key) => comparison.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
2476
2530
  return {
@@ -4069,5 +4123,5 @@ export {
4069
4123
  AIStreamKey
4070
4124
  };
4071
4125
 
4072
- //# debugId=171201D8916FD28364756E2164756E21
4126
+ //# debugId=D34D0E54CA12CE9564756E2164756E21
4073
4127
  //# sourceMappingURL=index.js.map