@absolutejs/absolute 0.19.0-beta.536 → 0.19.0-beta.537

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.
@@ -2453,6 +2453,64 @@ var buildRAGEvaluationHistoryRows = (history) => {
2453
2453
  }
2454
2454
  return rows;
2455
2455
  };
2456
+ var buildRAGEvaluationCaseTracePresentations = (history) => {
2457
+ if (!history?.caseTraceSnapshots.length) {
2458
+ return [];
2459
+ }
2460
+ return history.caseTraceSnapshots.map((entry) => {
2461
+ const label = entry.label ?? entry.caseId;
2462
+ const currentMode = entry.traceMode ?? "no-trace";
2463
+ const previousMode = entry.previousTraceMode ?? "n/a";
2464
+ const currentVariants = entry.variantQueries.length > 0 ? entry.variantQueries.join(", ") : "none";
2465
+ const previousVariants = entry.previousVariantQueries.length > 0 ? entry.previousVariantQueries.join(", ") : "none";
2466
+ const currentStages = Object.keys(entry.stageCounts).length > 0 ? Object.entries(entry.stageCounts).map(([stage, count]) => `${stage} ${count}`).join(", ") : "none";
2467
+ const previousStages = Object.keys(entry.previousStageCounts).length > 0 ? Object.entries(entry.previousStageCounts).map(([stage, count]) => `${stage} ${count}`).join(", ") : "none";
2468
+ return {
2469
+ caseId: entry.caseId,
2470
+ label,
2471
+ summary: `${entry.traceChange} \xB7 ${previousMode}\u2192${currentMode} \xB7 final ${entry.previousFinalCount ?? 0}\u2192${entry.finalCount}`,
2472
+ traceChange: entry.traceChange,
2473
+ rows: [
2474
+ { label: "Query", value: entry.query },
2475
+ { label: "Trace change", value: entry.traceChange },
2476
+ { label: "Mode", value: `${previousMode}\u2192${currentMode}` },
2477
+ {
2478
+ label: "Transformed query",
2479
+ value: `${entry.previousTransformedQuery?.trim() || "n/a"}\u2192${entry.transformedQuery?.trim() || "n/a"}`
2480
+ },
2481
+ {
2482
+ label: "Final",
2483
+ value: `${entry.previousFinalCount ?? 0}\u2192${entry.finalCount}`
2484
+ },
2485
+ {
2486
+ label: "Vector",
2487
+ value: `${entry.previousVectorCount ?? 0}\u2192${entry.vectorCount}`
2488
+ },
2489
+ {
2490
+ label: "Lexical",
2491
+ value: `${entry.previousLexicalCount ?? 0}\u2192${entry.lexicalCount}`
2492
+ },
2493
+ {
2494
+ label: "Candidate topK",
2495
+ value: `${entry.previousCandidateTopK ?? 0}\u2192${entry.candidateTopK}`
2496
+ },
2497
+ {
2498
+ label: "Lexical topK",
2499
+ value: `${entry.previousLexicalTopK ?? 0}\u2192${entry.lexicalTopK}`
2500
+ },
2501
+ {
2502
+ label: "Variants",
2503
+ value: `${previousVariants}\u2192${currentVariants}`
2504
+ },
2505
+ {
2506
+ label: "Stages",
2507
+ value: `${previousStages}\u2192${currentStages}`
2508
+ },
2509
+ { label: "Status", value: entry.status }
2510
+ ]
2511
+ };
2512
+ });
2513
+ };
2456
2514
  var buildRAGEvaluationRunDiff = ({
2457
2515
  current,
2458
2516
  previous
@@ -3992,5 +4050,5 @@ export {
3992
4050
  AIStreamProvider
3993
4051
  };
3994
4052
 
3995
- //# debugId=89ECE5B1D4C75C9E64756E2164756E21
4053
+ //# debugId=23034E6004312CB964756E2164756E21
3996
4054
  //# sourceMappingURL=index.js.map