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

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,
@@ -3406,5 +3440,5 @@ export {
3406
3440
  buildRAGAnswerWorkflowState
3407
3441
  };
3408
3442
 
3409
- //# debugId=1B575FBECBE745D364756E2164756E21
3443
+ //# debugId=F6E5683968DDD65C64756E2164756E21
3410
3444
  //# sourceMappingURL=index.js.map