@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
|
@@ -1764,6 +1764,12 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
|
|
|
1764
1764
|
totalScore: entry.totalScore
|
|
1765
1765
|
})).sort((left, right) => right.totalScore - left.totalScore) : [];
|
|
1766
1766
|
const reasons = [];
|
|
1767
|
+
const stageCounts = trace?.steps.map((step) => ({
|
|
1768
|
+
count: step.sectionCounts?.find((entry) => entry.key === section.key)?.count ?? 0,
|
|
1769
|
+
stage: step.stage
|
|
1770
|
+
})).filter((entry) => entry.count > 0) ?? [];
|
|
1771
|
+
const firstSeenStage = stageCounts[0]?.stage;
|
|
1772
|
+
const lastSeenStage = stageCounts.at(-1)?.stage;
|
|
1767
1773
|
if (section.bestScore >= strongestBestHit) {
|
|
1768
1774
|
reasons.push("best_hit");
|
|
1769
1775
|
}
|
|
@@ -1796,11 +1802,14 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
|
|
|
1796
1802
|
parentShare,
|
|
1797
1803
|
parentShareGap: typeof parentShare === "number" && strongestSibling && parentTotal > 0 ? parentShare - strongestSibling.totalScore / parentTotal : undefined,
|
|
1798
1804
|
path: section.path,
|
|
1805
|
+
firstSeenStage,
|
|
1806
|
+
lastSeenStage,
|
|
1799
1807
|
retrievalMode: trace?.mode,
|
|
1800
1808
|
reasons,
|
|
1801
1809
|
rerankApplied: trace?.steps.some((step) => step.stage === "rerank" && step.metadata?.applied === true),
|
|
1802
1810
|
scoreShare,
|
|
1803
1811
|
scoreThresholdApplied: trace?.steps.some((step) => step.stage === "score_filter"),
|
|
1812
|
+
stageCounts,
|
|
1804
1813
|
siblingCount: siblings.length,
|
|
1805
1814
|
siblingScoreGap: strongestSibling ? section.totalScore - strongestSibling.totalScore : undefined,
|
|
1806
1815
|
sourceCount: section.sourceSet.size,
|
|
@@ -1724,6 +1724,12 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
|
|
|
1724
1724
|
totalScore: entry.totalScore
|
|
1725
1725
|
})).sort((left, right) => right.totalScore - left.totalScore) : [];
|
|
1726
1726
|
const reasons = [];
|
|
1727
|
+
const stageCounts = trace?.steps.map((step) => ({
|
|
1728
|
+
count: step.sectionCounts?.find((entry) => entry.key === section.key)?.count ?? 0,
|
|
1729
|
+
stage: step.stage
|
|
1730
|
+
})).filter((entry) => entry.count > 0) ?? [];
|
|
1731
|
+
const firstSeenStage = stageCounts[0]?.stage;
|
|
1732
|
+
const lastSeenStage = stageCounts.at(-1)?.stage;
|
|
1727
1733
|
if (section.bestScore >= strongestBestHit) {
|
|
1728
1734
|
reasons.push("best_hit");
|
|
1729
1735
|
}
|
|
@@ -1756,11 +1762,14 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
|
|
|
1756
1762
|
parentShare,
|
|
1757
1763
|
parentShareGap: typeof parentShare === "number" && strongestSibling && parentTotal > 0 ? parentShare - strongestSibling.totalScore / parentTotal : undefined,
|
|
1758
1764
|
path: section.path,
|
|
1765
|
+
firstSeenStage,
|
|
1766
|
+
lastSeenStage,
|
|
1759
1767
|
retrievalMode: trace?.mode,
|
|
1760
1768
|
reasons,
|
|
1761
1769
|
rerankApplied: trace?.steps.some((step) => step.stage === "rerank" && step.metadata?.applied === true),
|
|
1762
1770
|
scoreShare,
|
|
1763
1771
|
scoreThresholdApplied: trace?.steps.some((step) => step.stage === "score_filter"),
|
|
1772
|
+
stageCounts,
|
|
1764
1773
|
siblingCount: siblings.length,
|
|
1765
1774
|
siblingScoreGap: strongestSibling ? section.totalScore - strongestSibling.totalScore : undefined,
|
|
1766
1775
|
sourceCount: section.sourceSet.size,
|
|
@@ -2767,6 +2767,12 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
|
|
|
2767
2767
|
totalScore: entry.totalScore
|
|
2768
2768
|
})).sort((left, right) => right.totalScore - left.totalScore) : [];
|
|
2769
2769
|
const reasons = [];
|
|
2770
|
+
const stageCounts = trace?.steps.map((step) => ({
|
|
2771
|
+
count: step.sectionCounts?.find((entry) => entry.key === section.key)?.count ?? 0,
|
|
2772
|
+
stage: step.stage
|
|
2773
|
+
})).filter((entry) => entry.count > 0) ?? [];
|
|
2774
|
+
const firstSeenStage = stageCounts[0]?.stage;
|
|
2775
|
+
const lastSeenStage = stageCounts.at(-1)?.stage;
|
|
2770
2776
|
if (section.bestScore >= strongestBestHit) {
|
|
2771
2777
|
reasons.push("best_hit");
|
|
2772
2778
|
}
|
|
@@ -2799,11 +2805,14 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
|
|
|
2799
2805
|
parentShare,
|
|
2800
2806
|
parentShareGap: typeof parentShare === "number" && strongestSibling && parentTotal > 0 ? parentShare - strongestSibling.totalScore / parentTotal : undefined,
|
|
2801
2807
|
path: section.path,
|
|
2808
|
+
firstSeenStage,
|
|
2809
|
+
lastSeenStage,
|
|
2802
2810
|
retrievalMode: trace?.mode,
|
|
2803
2811
|
reasons,
|
|
2804
2812
|
rerankApplied: trace?.steps.some((step) => step.stage === "rerank" && step.metadata?.applied === true),
|
|
2805
2813
|
scoreShare,
|
|
2806
2814
|
scoreThresholdApplied: trace?.steps.some((step) => step.stage === "score_filter"),
|
|
2815
|
+
stageCounts,
|
|
2807
2816
|
siblingCount: siblings.length,
|
|
2808
2817
|
siblingScoreGap: strongestSibling ? section.totalScore - strongestSibling.totalScore : undefined,
|
|
2809
2818
|
sourceCount: section.sourceSet.size,
|
package/dist/angular/ai/index.js
CHANGED
|
@@ -2314,6 +2314,12 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
|
|
|
2314
2314
|
totalScore: entry.totalScore
|
|
2315
2315
|
})).sort((left, right) => right.totalScore - left.totalScore) : [];
|
|
2316
2316
|
const reasons = [];
|
|
2317
|
+
const stageCounts = trace?.steps.map((step) => ({
|
|
2318
|
+
count: step.sectionCounts?.find((entry) => entry.key === section.key)?.count ?? 0,
|
|
2319
|
+
stage: step.stage
|
|
2320
|
+
})).filter((entry) => entry.count > 0) ?? [];
|
|
2321
|
+
const firstSeenStage = stageCounts[0]?.stage;
|
|
2322
|
+
const lastSeenStage = stageCounts.at(-1)?.stage;
|
|
2317
2323
|
if (section.bestScore >= strongestBestHit) {
|
|
2318
2324
|
reasons.push("best_hit");
|
|
2319
2325
|
}
|
|
@@ -2346,11 +2352,14 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
|
|
|
2346
2352
|
parentShare,
|
|
2347
2353
|
parentShareGap: typeof parentShare === "number" && strongestSibling && parentTotal > 0 ? parentShare - strongestSibling.totalScore / parentTotal : undefined,
|
|
2348
2354
|
path: section.path,
|
|
2355
|
+
firstSeenStage,
|
|
2356
|
+
lastSeenStage,
|
|
2349
2357
|
retrievalMode: trace?.mode,
|
|
2350
2358
|
reasons,
|
|
2351
2359
|
rerankApplied: trace?.steps.some((step) => step.stage === "rerank" && step.metadata?.applied === true),
|
|
2352
2360
|
scoreShare,
|
|
2353
2361
|
scoreThresholdApplied: trace?.steps.some((step) => step.stage === "score_filter"),
|
|
2362
|
+
stageCounts,
|
|
2354
2363
|
siblingCount: siblings.length,
|
|
2355
2364
|
siblingScoreGap: strongestSibling ? section.totalScore - strongestSibling.totalScore : undefined,
|
|
2356
2365
|
sourceCount: section.sourceSet.size,
|
|
@@ -4540,5 +4549,5 @@ export {
|
|
|
4540
4549
|
AIStreamService
|
|
4541
4550
|
};
|
|
4542
4551
|
|
|
4543
|
-
//# debugId=
|
|
4552
|
+
//# debugId=458F3E73F2A0F43C64756E2164756E21
|
|
4544
4553
|
//# sourceMappingURL=index.js.map
|