@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/types/ai.d.ts
CHANGED
|
@@ -88,6 +88,12 @@ export type RAGSectionRetrievalDiagnostic = {
|
|
|
88
88
|
vectorHits: number;
|
|
89
89
|
lexicalHits: number;
|
|
90
90
|
hybridHits: number;
|
|
91
|
+
stageCounts: Array<{
|
|
92
|
+
stage: RAGRetrievalTraceStage;
|
|
93
|
+
count: number;
|
|
94
|
+
}>;
|
|
95
|
+
firstSeenStage?: RAGRetrievalTraceStage;
|
|
96
|
+
lastSeenStage?: RAGRetrievalTraceStage;
|
|
91
97
|
retrievalMode?: RAGHybridRetrievalMode;
|
|
92
98
|
rerankApplied?: boolean;
|
|
93
99
|
sourceBalanceApplied?: boolean;
|
|
@@ -663,6 +669,11 @@ export type RAGRetrievalTraceStep = {
|
|
|
663
669
|
label: string;
|
|
664
670
|
durationMs?: number;
|
|
665
671
|
count?: number;
|
|
672
|
+
sectionCounts?: Array<{
|
|
673
|
+
key: string;
|
|
674
|
+
label: string;
|
|
675
|
+
count: number;
|
|
676
|
+
}>;
|
|
666
677
|
metadata?: Record<string, string | number | boolean | null>;
|
|
667
678
|
};
|
|
668
679
|
export type RAGRetrievalTrace = {
|
package/dist/vue/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,
|
|
@@ -8061,5 +8070,5 @@ export {
|
|
|
8061
8070
|
AIStreamKey
|
|
8062
8071
|
};
|
|
8063
8072
|
|
|
8064
|
-
//# debugId=
|
|
8073
|
+
//# debugId=CF22C93B26F05E2464756E2164756E21
|
|
8065
8074
|
//# sourceMappingURL=index.js.map
|