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

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.
@@ -2409,6 +2409,56 @@ var buildRAGRerankerComparisonCardPresentations = (comparison) => {
2409
2409
  traceSummaryRows: buildRAGComparisonTraceSummaryRows(entry)
2410
2410
  }));
2411
2411
  };
2412
+ var buildRAGGroundingProviderCardPresentations = (entries) => entries.map((entry) => ({
2413
+ headline: [
2414
+ entry.label,
2415
+ `passing ${formatEvaluationPassingRate(entry.response.passingRate)}`,
2416
+ `citation f1 ${entry.response.summary.averageCitationF1.toFixed(3)}`,
2417
+ `resolved ${formatEvaluationPassingRate(entry.response.summary.averageResolvedCitationRate)}`,
2418
+ `latency ${entry.elapsedMs.toFixed(1)}ms`
2419
+ ].join(" \xB7 "),
2420
+ id: entry.providerKey,
2421
+ label: entry.label
2422
+ }));
2423
+ var buildRAGGroundingProviderCaseComparisonPresentations = (comparisons) => comparisons.map((comparison) => {
2424
+ const resolveLabel = (key) => comparison.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
2425
+ return {
2426
+ caseId: comparison.caseId,
2427
+ label: comparison.label,
2428
+ rows: [
2429
+ {
2430
+ label: "Best grounded",
2431
+ value: resolveLabel(comparison.summary.bestByStatus)
2432
+ },
2433
+ {
2434
+ label: "Best citation F1",
2435
+ value: resolveLabel(comparison.summary.bestByCitationF1)
2436
+ },
2437
+ {
2438
+ label: "Best resolved citations",
2439
+ value: resolveLabel(comparison.summary.bestByResolvedCitationRate)
2440
+ },
2441
+ ...comparison.entries.map((entry) => ({
2442
+ label: entry.label,
2443
+ value: [
2444
+ entry.status.toUpperCase(),
2445
+ `coverage ${entry.coverage}`,
2446
+ `f1 ${entry.citationF1.toFixed(3)}`,
2447
+ `resolved ${formatEvaluationPassingRate(entry.resolvedCitationRate)}`,
2448
+ `matched ${entry.matchedIds.join(", ") || "none"}`,
2449
+ `missing ${entry.missingIds.join(", ") || "none"}`,
2450
+ `extra ${entry.extraIds.join(", ") || "none"}`,
2451
+ `answer ${entry.answerExcerpt || "n/a"}`
2452
+ ].join(" \xB7 ")
2453
+ }))
2454
+ ],
2455
+ summary: [
2456
+ `Best grounded: ${resolveLabel(comparison.summary.bestByStatus)}`,
2457
+ `Best citation F1: ${resolveLabel(comparison.summary.bestByCitationF1)}`,
2458
+ `Best resolved citations: ${resolveLabel(comparison.summary.bestByResolvedCitationRate)}`
2459
+ ].join(" \xB7 ")
2460
+ };
2461
+ });
2412
2462
  var buildRAGEvaluationHistoryRows = (history) => {
2413
2463
  if (!history?.latestRun) {
2414
2464
  return [
@@ -3329,5 +3379,5 @@ export {
3329
3379
  buildRAGAnswerWorkflowState
3330
3380
  };
3331
3381
 
3332
- //# debugId=D55AF772AC72311664756E2164756E21
3382
+ //# debugId=9760F75E320C2A3C64756E2164756E21
3333
3383
  //# sourceMappingURL=index.js.map