@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/ui.js
CHANGED
|
@@ -1536,6 +1536,12 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
|
|
|
1536
1536
|
totalScore: entry.totalScore
|
|
1537
1537
|
})).sort((left, right) => right.totalScore - left.totalScore) : [];
|
|
1538
1538
|
const reasons = [];
|
|
1539
|
+
const stageCounts = trace?.steps.map((step) => ({
|
|
1540
|
+
count: step.sectionCounts?.find((entry) => entry.key === section.key)?.count ?? 0,
|
|
1541
|
+
stage: step.stage
|
|
1542
|
+
})).filter((entry) => entry.count > 0) ?? [];
|
|
1543
|
+
const firstSeenStage = stageCounts[0]?.stage;
|
|
1544
|
+
const lastSeenStage = stageCounts.at(-1)?.stage;
|
|
1539
1545
|
if (section.bestScore >= strongestBestHit) {
|
|
1540
1546
|
reasons.push("best_hit");
|
|
1541
1547
|
}
|
|
@@ -1568,11 +1574,14 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
|
|
|
1568
1574
|
parentShare,
|
|
1569
1575
|
parentShareGap: typeof parentShare === "number" && strongestSibling && parentTotal > 0 ? parentShare - strongestSibling.totalScore / parentTotal : undefined,
|
|
1570
1576
|
path: section.path,
|
|
1577
|
+
firstSeenStage,
|
|
1578
|
+
lastSeenStage,
|
|
1571
1579
|
retrievalMode: trace?.mode,
|
|
1572
1580
|
reasons,
|
|
1573
1581
|
rerankApplied: trace?.steps.some((step) => step.stage === "rerank" && step.metadata?.applied === true),
|
|
1574
1582
|
scoreShare,
|
|
1575
1583
|
scoreThresholdApplied: trace?.steps.some((step) => step.stage === "score_filter"),
|
|
1584
|
+
stageCounts,
|
|
1576
1585
|
siblingCount: siblings.length,
|
|
1577
1586
|
siblingScoreGap: strongestSibling ? section.totalScore - strongestSibling.totalScore : undefined,
|
|
1578
1587
|
sourceCount: section.sourceSet.size,
|
|
@@ -2393,5 +2402,5 @@ export {
|
|
|
2393
2402
|
buildRAGAnswerWorkflowState
|
|
2394
2403
|
};
|
|
2395
2404
|
|
|
2396
|
-
//# debugId=
|
|
2405
|
+
//# debugId=99F4F5DE38F3934764756E2164756E21
|
|
2397
2406
|
//# sourceMappingURL=ui.js.map
|