@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/svelte/ai/index.js
CHANGED
|
@@ -4718,6 +4718,12 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
|
|
|
4718
4718
|
totalScore: entry.totalScore
|
|
4719
4719
|
})).sort((left, right) => right.totalScore - left.totalScore) : [];
|
|
4720
4720
|
const reasons = [];
|
|
4721
|
+
const stageCounts = trace?.steps.map((step) => ({
|
|
4722
|
+
count: step.sectionCounts?.find((entry) => entry.key === section.key)?.count ?? 0,
|
|
4723
|
+
stage: step.stage
|
|
4724
|
+
})).filter((entry) => entry.count > 0) ?? [];
|
|
4725
|
+
const firstSeenStage = stageCounts[0]?.stage;
|
|
4726
|
+
const lastSeenStage = stageCounts.at(-1)?.stage;
|
|
4721
4727
|
if (section.bestScore >= strongestBestHit) {
|
|
4722
4728
|
reasons.push("best_hit");
|
|
4723
4729
|
}
|
|
@@ -4750,11 +4756,14 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
|
|
|
4750
4756
|
parentShare,
|
|
4751
4757
|
parentShareGap: typeof parentShare === "number" && strongestSibling && parentTotal > 0 ? parentShare - strongestSibling.totalScore / parentTotal : undefined,
|
|
4752
4758
|
path: section.path,
|
|
4759
|
+
firstSeenStage,
|
|
4760
|
+
lastSeenStage,
|
|
4753
4761
|
retrievalMode: trace?.mode,
|
|
4754
4762
|
reasons,
|
|
4755
4763
|
rerankApplied: trace?.steps.some((step) => step.stage === "rerank" && step.metadata?.applied === true),
|
|
4756
4764
|
scoreShare,
|
|
4757
4765
|
scoreThresholdApplied: trace?.steps.some((step) => step.stage === "score_filter"),
|
|
4766
|
+
stageCounts,
|
|
4758
4767
|
siblingCount: siblings.length,
|
|
4759
4768
|
siblingScoreGap: strongestSibling ? section.totalScore - strongestSibling.totalScore : undefined,
|
|
4760
4769
|
sourceCount: section.sourceSet.size,
|
|
@@ -8090,5 +8099,5 @@ export {
|
|
|
8090
8099
|
createAIStream
|
|
8091
8100
|
};
|
|
8092
8101
|
|
|
8093
|
-
//# debugId=
|
|
8102
|
+
//# debugId=2E85D191A5FE00B864756E2164756E21
|
|
8094
8103
|
//# sourceMappingURL=index.js.map
|