@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.
- package/dist/ai/client/index.js +10 -1
- package/dist/ai/client/index.js.map +3 -3
- package/dist/ai/client/ui.js +10 -1
- package/dist/ai/client/ui.js.map +3 -3
- package/dist/ai/index.js +46 -2
- package/dist/ai/index.js.map +5 -5
- package/dist/ai/rag/ui.js +10 -1
- package/dist/ai/rag/ui.js.map +3 -3
- package/dist/ai-client/angular/ai/index.js +9 -0
- package/dist/ai-client/react/ai/index.js +9 -0
- package/dist/ai-client/vue/ai/index.js +9 -0
- package/dist/angular/ai/index.js +10 -1
- package/dist/angular/ai/index.js.map +3 -3
- package/dist/react/ai/index.js +10 -1
- package/dist/react/ai/index.js.map +3 -3
- package/dist/svelte/ai/index.js +10 -1
- package/dist/svelte/ai/index.js.map +3 -3
- package/dist/types/ai.d.ts +11 -0
- package/dist/vue/ai/index.js +10 -1
- package/dist/vue/ai/index.js.map +3 -3
- package/package.json +1 -1
package/dist/ai/client/index.js
CHANGED
|
@@ -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=
|
|
7318
|
+
//# debugId=B8C0E5F952AE116E64756E2164756E21
|
|
7310
7319
|
//# sourceMappingURL=index.js.map
|