@absolutejs/absolute 0.19.0-beta.610 → 0.19.0-beta.611

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.
@@ -5315,6 +5315,12 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
5315
5315
  totalScore: entry.totalScore
5316
5316
  })).sort((left, right) => right.totalScore - left.totalScore) : [];
5317
5317
  const reasons = [];
5318
+ const stageCounts = trace?.steps.map((step) => ({
5319
+ count: step.sectionCounts?.find((entry) => entry.key === section.key)?.count ?? 0,
5320
+ stage: step.stage
5321
+ })).filter((entry) => entry.count > 0) ?? [];
5322
+ const firstSeenStage = stageCounts[0]?.stage;
5323
+ const lastSeenStage = stageCounts.at(-1)?.stage;
5318
5324
  if (section.bestScore >= strongestBestHit) {
5319
5325
  reasons.push("best_hit");
5320
5326
  }
@@ -5347,11 +5353,14 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
5347
5353
  parentShare,
5348
5354
  parentShareGap: typeof parentShare === "number" && strongestSibling && parentTotal > 0 ? parentShare - strongestSibling.totalScore / parentTotal : undefined,
5349
5355
  path: section.path,
5356
+ firstSeenStage,
5357
+ lastSeenStage,
5350
5358
  retrievalMode: trace?.mode,
5351
5359
  reasons,
5352
5360
  rerankApplied: trace?.steps.some((step) => step.stage === "rerank" && step.metadata?.applied === true),
5353
5361
  scoreShare,
5354
5362
  scoreThresholdApplied: trace?.steps.some((step) => step.stage === "score_filter"),
5363
+ stageCounts,
5355
5364
  siblingCount: siblings.length,
5356
5365
  siblingScoreGap: strongestSibling ? section.totalScore - strongestSibling.totalScore : undefined,
5357
5366
  sourceCount: section.sourceSet.size,
@@ -7306,5 +7315,5 @@ export {
7306
7315
  buildRAGEvaluationLeaderboard
7307
7316
  };
7308
7317
 
7309
- //# debugId=3709E5ECFB9CD0AA64756E2164756E21
7318
+ //# debugId=B8C0E5F952AE116E64756E2164756E21
7310
7319
  //# sourceMappingURL=index.js.map