@absolutejs/absolute 0.19.0-beta.550 → 0.19.0-beta.552
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 +18 -4
- package/dist/ai/client/index.js.map +3 -3
- package/dist/ai/index.js +60 -7
- package/dist/ai/index.js.map +5 -5
- package/dist/angular/index.js +2 -2
- package/dist/angular/index.js.map +1 -1
- package/dist/angular/server.js +2 -2
- package/dist/angular/server.js.map +1 -1
- package/dist/build.js +2 -2
- package/dist/build.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/react/ai/index.js +18 -4
- package/dist/react/ai/index.js.map +3 -3
- package/dist/src/ai/index.d.ts +1 -1
- package/dist/src/ai/rag/index.d.ts +1 -1
- package/dist/src/ai/rag/lexical.d.ts +9 -0
- package/dist/src/ai/rag/quality.d.ts +7 -1
- package/dist/src/vue/ai/useRAG.d.ts +8 -0
- package/dist/src/vue/ai/useRAGEvaluate.d.ts +6 -0
- package/dist/src/vue/ai/useRAGSearch.d.ts +2 -0
- package/dist/svelte/ai/index.js +18 -4
- package/dist/svelte/ai/index.js.map +3 -3
- package/dist/types/ai.d.ts +6 -1
- package/dist/vue/ai/index.js +18 -4
- package/dist/vue/ai/index.js.map +3 -3
- package/package.json +7 -7
package/dist/types/ai.d.ts
CHANGED
|
@@ -338,6 +338,7 @@ export type RAGHybridFusionMode = 'rrf' | 'max';
|
|
|
338
338
|
export type RAGHybridSearchOptions = {
|
|
339
339
|
mode?: RAGHybridRetrievalMode;
|
|
340
340
|
lexicalTopK?: number;
|
|
341
|
+
maxResultsPerSource?: number;
|
|
341
342
|
fusion?: RAGHybridFusionMode;
|
|
342
343
|
fusionConstant?: number;
|
|
343
344
|
lexicalWeight?: number;
|
|
@@ -480,7 +481,7 @@ export type RAGCollectionSearchParams = {
|
|
|
480
481
|
model?: string;
|
|
481
482
|
signal?: AbortSignal;
|
|
482
483
|
};
|
|
483
|
-
export type RAGRetrievalTraceStage = 'input' | 'query_transform' | 'embed' | 'vector_search' | 'lexical_search' | 'fusion' | 'rerank' | 'score_filter' | 'finalize';
|
|
484
|
+
export type RAGRetrievalTraceStage = 'input' | 'query_transform' | 'embed' | 'vector_search' | 'lexical_search' | 'fusion' | 'rerank' | 'source_balance' | 'score_filter' | 'finalize';
|
|
484
485
|
export type RAGRetrievalTraceStep = {
|
|
485
486
|
stage: RAGRetrievalTraceStage;
|
|
486
487
|
label: string;
|
|
@@ -495,6 +496,7 @@ export type RAGRetrievalTrace = {
|
|
|
495
496
|
topK: number;
|
|
496
497
|
candidateTopK: number;
|
|
497
498
|
lexicalTopK: number;
|
|
499
|
+
maxResultsPerSource?: number;
|
|
498
500
|
mode: RAGHybridRetrievalMode;
|
|
499
501
|
runVector: boolean;
|
|
500
502
|
runLexical: boolean;
|
|
@@ -1395,6 +1397,9 @@ export type RAGGroundingProviderOverviewPresentation = {
|
|
|
1395
1397
|
export type RAGQualityOverviewPresentation = {
|
|
1396
1398
|
rows: RAGLabelValueRow[];
|
|
1397
1399
|
};
|
|
1400
|
+
export type RAGGroundingOverviewPresentation = {
|
|
1401
|
+
rows: RAGLabelValueRow[];
|
|
1402
|
+
};
|
|
1398
1403
|
export type RAGGroundingProviderCaseComparisonPresentation = {
|
|
1399
1404
|
caseId: string;
|
|
1400
1405
|
label: string;
|
package/dist/vue/ai/index.js
CHANGED
|
@@ -2847,10 +2847,14 @@ var buildRAGGroundingProviderOverviewPresentation = (input) => {
|
|
|
2847
2847
|
summary: winnerEntry ? `passing ${formatEvaluationPassingRate(winnerEntry.response.passingRate)} \xB7 citation f1 ${winnerEntry.response.summary.averageCitationF1.toFixed(3)} \xB7 resolved ${formatEvaluationPassingRate(winnerEntry.response.summary.averageResolvedCitationRate)}` : "Stored workflow evaluation"
|
|
2848
2848
|
};
|
|
2849
2849
|
};
|
|
2850
|
-
var
|
|
2850
|
+
var buildRAGRetrievalOverviewPresentation = (comparison) => ({
|
|
2851
|
+
rows: buildRAGRetrievalComparisonOverviewPresentation(comparison).rows
|
|
2852
|
+
});
|
|
2853
|
+
var buildRAGRerankerOverviewPresentation = (comparison) => ({
|
|
2854
|
+
rows: buildRAGRerankerComparisonOverviewPresentation(comparison).rows
|
|
2855
|
+
});
|
|
2856
|
+
var buildRAGGroundingOverviewPresentation = (input) => ({
|
|
2851
2857
|
rows: [
|
|
2852
|
-
...buildRAGRetrievalComparisonOverviewPresentation(input.retrievalComparison).rows,
|
|
2853
|
-
...buildRAGRerankerComparisonOverviewPresentation(input.rerankerComparison).rows,
|
|
2854
2858
|
{
|
|
2855
2859
|
label: "Grounding",
|
|
2856
2860
|
value: formatGroundingHistorySummaryValue(input.groundingEvaluation)
|
|
@@ -2863,6 +2867,16 @@ var buildRAGQualityOverviewPresentation = (input) => ({
|
|
|
2863
2867
|
]
|
|
2864
2868
|
]
|
|
2865
2869
|
});
|
|
2870
|
+
var buildRAGQualityOverviewPresentation = (input) => ({
|
|
2871
|
+
rows: [
|
|
2872
|
+
...buildRAGRetrievalOverviewPresentation(input.retrievalComparison).rows,
|
|
2873
|
+
...buildRAGRerankerOverviewPresentation(input.rerankerComparison).rows,
|
|
2874
|
+
...buildRAGGroundingOverviewPresentation({
|
|
2875
|
+
groundingEvaluation: input.groundingEvaluation,
|
|
2876
|
+
groundingProviderOverview: input.groundingProviderOverview
|
|
2877
|
+
}).rows
|
|
2878
|
+
]
|
|
2879
|
+
});
|
|
2866
2880
|
var buildRAGGroundingProviderCaseComparisonPresentations = (comparisons) => comparisons.map((comparison) => {
|
|
2867
2881
|
const resolveLabel = (key) => comparison.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
|
|
2868
2882
|
return {
|
|
@@ -4461,5 +4475,5 @@ export {
|
|
|
4461
4475
|
AIStreamKey
|
|
4462
4476
|
};
|
|
4463
4477
|
|
|
4464
|
-
//# debugId=
|
|
4478
|
+
//# debugId=BCFCEA2080243A1864756E2164756E21
|
|
4465
4479
|
//# sourceMappingURL=index.js.map
|