@absolutejs/absolute 0.19.0-beta.539 → 0.19.0-beta.540

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.
@@ -2292,6 +2292,19 @@ var formatEvaluationSummary = (response) => `${response.summary.passedCases}/${r
2292
2292
  var formatGroundingHistorySummaryValue = (response) => `${response.summary.passedCases}/${response.summary.totalCases} pass \xB7 grounded ${response.summary.groundedCases} \xB7 partial ${response.summary.partialCases} \xB7 ungrounded ${response.summary.ungroundedCases} \xB7 resolved citations ${(response.summary.averageResolvedCitationRate * 100).toFixed(1)}% \xB7 citation f1 ${response.summary.averageCitationF1.toFixed(3)}`;
2293
2293
  var formatHistoryCaseLabels = (cases) => cases.length > 0 ? cases.map((entry) => entry.label ?? entry.caseId).join(", ") : "none";
2294
2294
  var formatGroundingHistoryCaseLabels = (cases) => cases.length > 0 ? cases.map((entry) => entry.label ?? entry.caseId).join(", ") : "none";
2295
+ var formatRerankerComparisonHeadline = (entry) => [
2296
+ entry.label,
2297
+ `passing ${formatEvaluationPassingRate(entry.response.passingRate)}`,
2298
+ `f1 ${entry.response.summary.averageF1.toFixed(3)}`,
2299
+ `latency ${entry.response.summary.averageLatencyMs.toFixed(1)}ms`
2300
+ ].join(" \xB7 ");
2301
+ var formatRetrievalComparisonHeadline = (entry) => [
2302
+ entry.label,
2303
+ `mode ${entry.retrievalMode}`,
2304
+ `passing ${formatEvaluationPassingRate(entry.response.passingRate)}`,
2305
+ `f1 ${entry.response.summary.averageF1.toFixed(3)}`,
2306
+ `latency ${entry.response.summary.averageLatencyMs.toFixed(1)}ms`
2307
+ ].join(" \xB7 ");
2295
2308
  var formatTraceModes = (modes) => modes.length > 0 ? modes.join(" / ") : "n/a";
2296
2309
  var formatTraceStageSummary = (stageCounts) => {
2297
2310
  const topStages = Object.entries(stageCounts).sort((left, right) => right[1] - left[1]).slice(0, 3);
@@ -2374,6 +2387,28 @@ var buildRAGComparisonTraceDiffRows = (entry, leader) => {
2374
2387
  }
2375
2388
  return rows;
2376
2389
  };
2390
+ var buildRAGRetrievalComparisonCardPresentations = (comparison) => {
2391
+ const leader = comparison.entries[0];
2392
+ return comparison.entries.map((entry) => ({
2393
+ diffLabel: leader?.label ?? "Leader",
2394
+ diffRows: buildRAGComparisonTraceDiffRows(entry, leader),
2395
+ headline: formatRetrievalComparisonHeadline(entry),
2396
+ id: entry.retrievalId,
2397
+ label: entry.label,
2398
+ traceSummaryRows: buildRAGComparisonTraceSummaryRows(entry)
2399
+ }));
2400
+ };
2401
+ var buildRAGRerankerComparisonCardPresentations = (comparison) => {
2402
+ const leader = comparison.entries[0];
2403
+ return comparison.entries.map((entry) => ({
2404
+ diffLabel: leader?.label ?? "Leader",
2405
+ diffRows: buildRAGComparisonTraceDiffRows(entry, leader),
2406
+ headline: formatRerankerComparisonHeadline(entry),
2407
+ id: entry.rerankerId,
2408
+ label: entry.label,
2409
+ traceSummaryRows: buildRAGComparisonTraceSummaryRows(entry)
2410
+ }));
2411
+ };
2377
2412
  var buildRAGEvaluationHistoryRows = (history) => {
2378
2413
  if (!history?.latestRun) {
2379
2414
  return [
@@ -4181,5 +4216,5 @@ export {
4181
4216
  AIStreamProvider
4182
4217
  };
4183
4218
 
4184
- //# debugId=7E7C7A3FF0EFC10564756E2164756E21
4219
+ //# debugId=B901B6DA5FD7FB1D64756E2164756E21
4185
4220
  //# sourceMappingURL=index.js.map