@absolutejs/absolute 0.19.0-beta.644 → 0.19.0-beta.645
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 +694 -11
- package/dist/ai/client/index.js.map +6 -6
- package/dist/ai/client/ui.js +573 -11
- package/dist/ai/client/ui.js.map +5 -5
- package/dist/ai/index.js +2150 -136
- package/dist/ai/index.js.map +10 -10
- package/dist/ai/rag/quality.js +577 -11
- package/dist/ai/rag/quality.js.map +5 -5
- package/dist/ai/rag/ui.js +573 -11
- package/dist/ai/rag/ui.js.map +5 -5
- package/dist/ai-client/angular/ai/index.js +388 -8
- package/dist/ai-client/react/ai/index.js +388 -8
- package/dist/ai-client/vue/ai/index.js +388 -8
- package/dist/angular/ai/index.js +694 -11
- package/dist/angular/ai/index.js.map +6 -6
- package/dist/index.js +6 -6
- package/dist/index.js.map +2 -2
- package/dist/react/ai/index.js +694 -11
- package/dist/react/ai/index.js.map +6 -6
- package/dist/src/ai/client/ragClient.d.ts +58 -0
- package/dist/src/ai/index.d.ts +2 -1
- package/dist/src/ai/rag/chat.d.ts +90 -4
- package/dist/src/ai/rag/index.d.ts +1 -1
- package/dist/src/ai/rag/quality.d.ts +20 -1
- package/dist/src/vue/ai/useRAG.d.ts +80 -0
- package/dist/src/vue/ai/useRAGEvaluate.d.ts +70 -0
- package/dist/src/vue/ai/useRAGSearch.d.ts +10 -0
- package/dist/svelte/ai/index.js +694 -11
- package/dist/svelte/ai/index.js.map +6 -6
- package/dist/types/ai.d.ts +56 -13
- package/dist/types/index.d.ts +1 -0
- package/dist/types/session.d.ts +16 -0
- package/dist/vue/ai/index.js +694 -11
- package/dist/vue/ai/index.js.map +6 -6
- package/package.json +2 -1
package/dist/types/ai.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { SessionStore } from './session';
|
|
1
2
|
export type AIUsage = {
|
|
2
3
|
inputTokens: number;
|
|
3
4
|
outputTokens: number;
|
|
@@ -141,6 +142,7 @@ export type RAGSectionRetrievalDiagnostic = {
|
|
|
141
142
|
queryTransformProvider?: string;
|
|
142
143
|
queryTransformLabel?: string;
|
|
143
144
|
queryTransformReason?: string;
|
|
145
|
+
evidenceReconcileApplied?: boolean;
|
|
144
146
|
rerankApplied?: boolean;
|
|
145
147
|
sourceBalanceApplied?: boolean;
|
|
146
148
|
scoreThresholdApplied?: boolean;
|
|
@@ -603,6 +605,11 @@ export type RAGHybridSearchOptions = {
|
|
|
603
605
|
fusionConstant?: number;
|
|
604
606
|
lexicalWeight?: number;
|
|
605
607
|
vectorWeight?: number;
|
|
608
|
+
nativeQueryProfile?: RAGNativeQueryProfile;
|
|
609
|
+
nativeCandidateLimit?: number;
|
|
610
|
+
nativeMaxBackfills?: number;
|
|
611
|
+
nativeMinResults?: number;
|
|
612
|
+
nativeFillPolicy?: 'strict_topk' | 'satisfy_min_results';
|
|
606
613
|
};
|
|
607
614
|
export type RAGUpsertInput = {
|
|
608
615
|
chunks: RAGDocumentChunk[];
|
|
@@ -931,7 +938,7 @@ export type RAGCollectionSearchParams = {
|
|
|
931
938
|
model?: string;
|
|
932
939
|
signal?: AbortSignal;
|
|
933
940
|
};
|
|
934
|
-
export type RAGRetrievalTraceStage = 'input' | 'query_transform' | 'routing' | 'embed' | 'vector_search' | 'lexical_search' | 'fusion' | 'rerank' | 'diversity' | 'source_balance' | 'score_filter' | 'finalize';
|
|
941
|
+
export type RAGRetrievalTraceStage = 'input' | 'query_transform' | 'routing' | 'embed' | 'vector_search' | 'lexical_search' | 'fusion' | 'rerank' | 'diversity' | 'source_balance' | 'evidence_reconcile' | 'score_filter' | 'finalize';
|
|
935
942
|
export type RAGRetrievalTraceStep = {
|
|
936
943
|
stage: RAGRetrievalTraceStage;
|
|
937
944
|
label: string;
|
|
@@ -2296,6 +2303,8 @@ export type RAGEvaluationRunDiff = {
|
|
|
2296
2303
|
averageLexicalCount: number;
|
|
2297
2304
|
averageCandidateTopK: number;
|
|
2298
2305
|
averageLexicalTopK: number;
|
|
2306
|
+
officeEvidenceReconcileCasesDelta: number;
|
|
2307
|
+
pdfEvidenceReconcileCasesDelta: number;
|
|
2299
2308
|
stageCounts: Partial<Record<RAGRetrievalTraceStage, number>>;
|
|
2300
2309
|
};
|
|
2301
2310
|
};
|
|
@@ -2574,18 +2583,35 @@ export type RAGEvaluationSuiteSnapshotHistoryPresentation = {
|
|
|
2574
2583
|
export type RAGAdaptiveNativePlannerBenchmarkRuntime = {
|
|
2575
2584
|
suiteId: string;
|
|
2576
2585
|
suiteLabel: string;
|
|
2586
|
+
groupKey?: string;
|
|
2587
|
+
corpusGroupKey?: string;
|
|
2588
|
+
latestFixtureVariant?: string;
|
|
2589
|
+
fixtureVariants?: string[];
|
|
2577
2590
|
recommendedGroupKey?: string;
|
|
2578
2591
|
recommendedTags?: string[];
|
|
2592
|
+
latestRun?: RAGRetrievalComparisonRun;
|
|
2593
|
+
recentRuns?: RAGRetrievalComparisonRun[];
|
|
2594
|
+
historyPresentation?: RAGRetrievalReleaseGroupHistoryPresentation;
|
|
2579
2595
|
snapshotHistory?: RAGEvaluationSuiteSnapshotHistory;
|
|
2580
2596
|
snapshotHistoryPresentation?: RAGEvaluationSuiteSnapshotHistoryPresentation;
|
|
2581
2597
|
};
|
|
2598
|
+
export type RAGNativeBackendComparisonBenchmarkRuntime = RAGAdaptiveNativePlannerBenchmarkRuntime;
|
|
2582
2599
|
export type RAGAdaptiveNativePlannerBenchmarkResponse = {
|
|
2583
2600
|
ok: boolean;
|
|
2584
2601
|
suite?: RAGEvaluationSuite;
|
|
2602
|
+
comparison?: RAGRetrievalComparison;
|
|
2603
|
+
groupKey?: string;
|
|
2604
|
+
corpusGroupKey?: string;
|
|
2605
|
+
latestFixtureVariant?: string;
|
|
2606
|
+
fixtureVariants?: string[];
|
|
2607
|
+
latestRun?: RAGRetrievalComparisonRun;
|
|
2608
|
+
recentRuns?: RAGRetrievalComparisonRun[];
|
|
2609
|
+
historyPresentation?: RAGRetrievalReleaseGroupHistoryPresentation;
|
|
2585
2610
|
snapshotHistory?: RAGEvaluationSuiteSnapshotHistory;
|
|
2586
2611
|
snapshotHistoryPresentation?: RAGEvaluationSuiteSnapshotHistoryPresentation;
|
|
2587
2612
|
error?: string;
|
|
2588
2613
|
};
|
|
2614
|
+
export type RAGNativeBackendComparisonBenchmarkResponse = RAGAdaptiveNativePlannerBenchmarkResponse;
|
|
2589
2615
|
export type RAGAdaptiveNativePlannerBenchmarkSnapshotResponse = {
|
|
2590
2616
|
ok: boolean;
|
|
2591
2617
|
suite?: RAGEvaluationSuite;
|
|
@@ -2594,6 +2620,7 @@ export type RAGAdaptiveNativePlannerBenchmarkSnapshotResponse = {
|
|
|
2594
2620
|
snapshotHistoryPresentation?: RAGEvaluationSuiteSnapshotHistoryPresentation;
|
|
2595
2621
|
error?: string;
|
|
2596
2622
|
};
|
|
2623
|
+
export type RAGNativeBackendComparisonBenchmarkSnapshotResponse = RAGAdaptiveNativePlannerBenchmarkSnapshotResponse;
|
|
2597
2624
|
export type RAGRetrievalReleaseHistoryRunPresentation = {
|
|
2598
2625
|
runId: string;
|
|
2599
2626
|
label: string;
|
|
@@ -2720,6 +2747,8 @@ export type RAGRetrievalTraceComparisonSummary = {
|
|
|
2720
2747
|
multiVectorVectorHitCases: number;
|
|
2721
2748
|
multiVectorLexicalHitCases: number;
|
|
2722
2749
|
multiVectorCollapsedCases: number;
|
|
2750
|
+
officeEvidenceReconcileCases: number;
|
|
2751
|
+
pdfEvidenceReconcileCases: number;
|
|
2723
2752
|
runtimeCandidateBudgetExhaustedCases: number;
|
|
2724
2753
|
runtimeUnderfilledTopKCases: number;
|
|
2725
2754
|
averageFinalCount: number;
|
|
@@ -2927,6 +2956,8 @@ export type RAGRetrievalTraceComparisonSummaryDiff = {
|
|
|
2927
2956
|
multiVectorVectorHitCasesDelta: number;
|
|
2928
2957
|
multiVectorLexicalHitCasesDelta: number;
|
|
2929
2958
|
multiVectorCollapsedCasesDelta: number;
|
|
2959
|
+
officeEvidenceReconcileCasesDelta: number;
|
|
2960
|
+
pdfEvidenceReconcileCasesDelta: number;
|
|
2930
2961
|
runtimeCandidateBudgetExhaustedCasesDelta: number;
|
|
2931
2962
|
runtimeUnderfilledTopKCasesDelta: number;
|
|
2932
2963
|
modeDelta: RAGTraceSummaryListDelta<RAGHybridRetrievalMode>;
|
|
@@ -2975,6 +3006,7 @@ export type RAGRetrievalComparisonSummary = {
|
|
|
2975
3006
|
bestByMultivectorCollapsedCases?: string;
|
|
2976
3007
|
bestByMultivectorLexicalHitCases?: string;
|
|
2977
3008
|
bestByMultivectorVectorHitCases?: string;
|
|
3009
|
+
bestByEvidenceReconcileCases?: string;
|
|
2978
3010
|
bestByLowestRuntimeCandidateBudgetExhaustedCases?: string;
|
|
2979
3011
|
bestByLowestRuntimeUnderfilledTopKCases?: string;
|
|
2980
3012
|
};
|
|
@@ -2994,6 +3026,7 @@ export type RAGRetrievalComparisonCandidateInput = {
|
|
|
2994
3026
|
};
|
|
2995
3027
|
export type RAGRetrievalComparisonRequest = RAGEvaluationInput & {
|
|
2996
3028
|
retrievals: RAGRetrievalComparisonCandidateInput[];
|
|
3029
|
+
suiteId?: string;
|
|
2997
3030
|
label?: string;
|
|
2998
3031
|
persistRun?: boolean;
|
|
2999
3032
|
baselineRetrievalId?: string;
|
|
@@ -3030,6 +3063,7 @@ export type RAGRetrievalComparisonDecisionDelta = {
|
|
|
3030
3063
|
multiVectorCollapsedCasesDelta?: number;
|
|
3031
3064
|
multiVectorLexicalHitCasesDelta?: number;
|
|
3032
3065
|
multiVectorVectorHitCasesDelta?: number;
|
|
3066
|
+
evidenceReconcileCasesDelta?: number;
|
|
3033
3067
|
runtimeCandidateBudgetExhaustedCasesDelta?: number;
|
|
3034
3068
|
runtimeUnderfilledTopKCasesDelta?: number;
|
|
3035
3069
|
};
|
|
@@ -3040,6 +3074,7 @@ export type RAGRetrievalBaselineGatePolicy = {
|
|
|
3040
3074
|
minMultiVectorCollapsedCasesDelta?: number;
|
|
3041
3075
|
minMultiVectorLexicalHitCasesDelta?: number;
|
|
3042
3076
|
minMultiVectorVectorHitCasesDelta?: number;
|
|
3077
|
+
minEvidenceReconcileCasesDelta?: number;
|
|
3043
3078
|
maxRuntimeCandidateBudgetExhaustedCasesDelta?: number;
|
|
3044
3079
|
maxRuntimeUnderfilledTopKCasesDelta?: number;
|
|
3045
3080
|
severity?: 'warn' | 'fail';
|
|
@@ -3067,6 +3102,7 @@ export type RAGRetrievalComparisonDecisionSummary = {
|
|
|
3067
3102
|
winnerByMultivectorCollapsedCases?: string;
|
|
3068
3103
|
winnerByMultivectorLexicalHitCases?: string;
|
|
3069
3104
|
winnerByMultivectorVectorHitCases?: string;
|
|
3105
|
+
winnerByEvidenceReconcileCases?: string;
|
|
3070
3106
|
winnerByLowestRuntimeCandidateBudgetExhaustedCases?: string;
|
|
3071
3107
|
winnerByLowestRuntimeUnderfilledTopKCases?: string;
|
|
3072
3108
|
baseline?: {
|
|
@@ -3078,6 +3114,7 @@ export type RAGRetrievalComparisonDecisionSummary = {
|
|
|
3078
3114
|
multiVectorCollapsedCases?: number;
|
|
3079
3115
|
multiVectorLexicalHitCases?: number;
|
|
3080
3116
|
multiVectorVectorHitCases?: number;
|
|
3117
|
+
evidenceReconcileCases?: number;
|
|
3081
3118
|
runtimeCandidateBudgetExhaustedCases?: number;
|
|
3082
3119
|
runtimeUnderfilledTopKCases?: number;
|
|
3083
3120
|
};
|
|
@@ -3090,6 +3127,7 @@ export type RAGRetrievalComparisonDecisionSummary = {
|
|
|
3090
3127
|
multiVectorCollapsedCases?: number;
|
|
3091
3128
|
multiVectorLexicalHitCases?: number;
|
|
3092
3129
|
multiVectorVectorHitCases?: number;
|
|
3130
|
+
evidenceReconcileCases?: number;
|
|
3093
3131
|
runtimeCandidateBudgetExhaustedCases?: number;
|
|
3094
3132
|
runtimeUnderfilledTopKCases?: number;
|
|
3095
3133
|
};
|
|
@@ -3472,7 +3510,7 @@ export type RAGRetrievalIncidentRemediationBulkExecutionResponse = {
|
|
|
3472
3510
|
export type RAGRetrievalReleaseGroupSummary = {
|
|
3473
3511
|
corpusGroupKey?: string;
|
|
3474
3512
|
groupKey: string;
|
|
3475
|
-
classification?: 'general' | 'multivector' | 'runtime';
|
|
3513
|
+
classification?: 'general' | 'multivector' | 'runtime' | 'evidence';
|
|
3476
3514
|
escalationSeverity: 'none' | 'info' | 'warning' | 'critical';
|
|
3477
3515
|
recommendedAction: 'promote_candidate' | 'renew_approval' | 'await_approval' | 'investigate_regression' | 'monitor';
|
|
3478
3516
|
recommendedActionReasons: string[];
|
|
@@ -3600,7 +3638,7 @@ export type RAGRetrievalReleaseLaneAuditSummary = {
|
|
|
3600
3638
|
export type RAGRetrievalReleaseLaneRecommendationSummary = {
|
|
3601
3639
|
corpusGroupKey?: string;
|
|
3602
3640
|
groupKey: string;
|
|
3603
|
-
classification?: 'general' | 'multivector' | 'runtime';
|
|
3641
|
+
classification?: 'general' | 'multivector' | 'runtime' | 'evidence';
|
|
3604
3642
|
targetRolloutLabel: Exclude<RAGRetrievalBaselineRecord['rolloutLabel'], undefined>;
|
|
3605
3643
|
recommendedAction: 'promote_candidate' | 'renew_approval' | 'await_approval' | 'investigate_regression' | 'monitor';
|
|
3606
3644
|
recommendedActionReasons: string[];
|
|
@@ -3640,7 +3678,7 @@ export type RAGRetrievalReleaseLaneHandoffSummary = {
|
|
|
3640
3678
|
};
|
|
3641
3679
|
export type RAGRetrievalLanePromotionStateSummary = {
|
|
3642
3680
|
groupKey: string;
|
|
3643
|
-
classification?: 'general' | 'multivector' | 'runtime';
|
|
3681
|
+
classification?: 'general' | 'multivector' | 'runtime' | 'evidence';
|
|
3644
3682
|
targetRolloutLabel: Exclude<RAGRetrievalBaselineRecord['rolloutLabel'], undefined>;
|
|
3645
3683
|
baselineRetrievalId?: string;
|
|
3646
3684
|
candidateRetrievalId?: string;
|
|
@@ -3674,7 +3712,7 @@ export type RAGRetrievalReleaseIncidentRecord = {
|
|
|
3674
3712
|
acknowledgedBy?: string;
|
|
3675
3713
|
acknowledgementNotes?: string;
|
|
3676
3714
|
notes?: string;
|
|
3677
|
-
classification?: 'general' | 'multivector' | 'runtime';
|
|
3715
|
+
classification?: 'general' | 'multivector' | 'runtime' | 'evidence';
|
|
3678
3716
|
};
|
|
3679
3717
|
export type RAGRetrievalLaneHandoffIncidentRecord = Omit<RAGRetrievalReleaseIncidentRecord, 'kind'> & {
|
|
3680
3718
|
corpusGroupKey?: string;
|
|
@@ -3856,12 +3894,15 @@ export type RAGRetrievalIncidentClassificationSummary = {
|
|
|
3856
3894
|
totalGeneralCount: number;
|
|
3857
3895
|
totalMultiVectorCount: number;
|
|
3858
3896
|
totalRuntimeCount: number;
|
|
3897
|
+
totalEvidenceCount: number;
|
|
3859
3898
|
openGeneralCount: number;
|
|
3860
3899
|
openMultiVectorCount: number;
|
|
3861
3900
|
openRuntimeCount: number;
|
|
3901
|
+
openEvidenceCount: number;
|
|
3862
3902
|
resolvedGeneralCount: number;
|
|
3863
3903
|
resolvedMultiVectorCount: number;
|
|
3864
3904
|
resolvedRuntimeCount: number;
|
|
3905
|
+
resolvedEvidenceCount: number;
|
|
3865
3906
|
};
|
|
3866
3907
|
export type RAGRetrievalReleaseEvent = {
|
|
3867
3908
|
kind: 'incident_opened' | 'incident_resolved';
|
|
@@ -3968,6 +4009,7 @@ export type RAGRetrievalReleaseGroupHistoryResponse = {
|
|
|
3968
4009
|
timeline?: RAGRetrievalReleaseTimelineSummary;
|
|
3969
4010
|
presentation?: RAGRetrievalReleaseGroupHistoryPresentation;
|
|
3970
4011
|
adaptiveNativePlannerBenchmark?: RAGAdaptiveNativePlannerBenchmarkRuntime;
|
|
4012
|
+
nativeBackendComparisonBenchmark?: RAGNativeBackendComparisonBenchmarkRuntime;
|
|
3971
4013
|
error?: string;
|
|
3972
4014
|
};
|
|
3973
4015
|
export type RAGRetrievalPromotionCandidateListResponse = {
|
|
@@ -3991,6 +4033,7 @@ export type RAGRetrievalComparisonLatestSummary = {
|
|
|
3991
4033
|
bestByMultivectorCollapsedCases?: string;
|
|
3992
4034
|
bestByMultivectorLexicalHitCases?: string;
|
|
3993
4035
|
bestByMultivectorVectorHitCases?: string;
|
|
4036
|
+
bestByEvidenceReconcileCases?: string;
|
|
3994
4037
|
bestByLowestRuntimeCandidateBudgetExhaustedCases?: string;
|
|
3995
4038
|
bestByLowestRuntimeUnderfilledTopKCases?: string;
|
|
3996
4039
|
decisionSummary?: RAGRetrievalComparisonDecisionSummary;
|
|
@@ -4014,13 +4057,14 @@ export type RAGRetrievalComparisonAlert = {
|
|
|
4014
4057
|
candidateRetrievalId?: string;
|
|
4015
4058
|
delta?: RAGRetrievalComparisonDecisionDelta;
|
|
4016
4059
|
gate?: RAGRetrievalComparisonGateResult;
|
|
4017
|
-
classification?: 'general' | 'multivector' | 'runtime';
|
|
4060
|
+
classification?: 'general' | 'multivector' | 'runtime' | 'evidence';
|
|
4018
4061
|
};
|
|
4019
4062
|
export type RAGRetrievalComparisonRuntime = {
|
|
4020
4063
|
configured: boolean;
|
|
4021
4064
|
recentRuns?: RAGRetrievalComparisonRun[];
|
|
4022
4065
|
latest?: RAGRetrievalComparisonLatestSummary;
|
|
4023
4066
|
adaptiveNativePlannerBenchmark?: RAGAdaptiveNativePlannerBenchmarkRuntime;
|
|
4067
|
+
nativeBackendComparisonBenchmark?: RAGNativeBackendComparisonBenchmarkRuntime;
|
|
4024
4068
|
stableWinnerByPassingRate?: RAGRetrievalComparisonWinnerTrend;
|
|
4025
4069
|
alerts?: RAGRetrievalComparisonAlert[];
|
|
4026
4070
|
activeBaselines?: RAGRetrievalBaselineRecord[];
|
|
@@ -4414,13 +4458,7 @@ export type AIWebSocket = {
|
|
|
4414
4458
|
send(data: string): void;
|
|
4415
4459
|
readyState: number;
|
|
4416
4460
|
};
|
|
4417
|
-
export type AIConversationStore =
|
|
4418
|
-
get: (id: string) => Promise<AIConversation | undefined>;
|
|
4419
|
-
getOrCreate: (id: string) => Promise<AIConversation>;
|
|
4420
|
-
set: (id: string, conversation: AIConversation) => Promise<void>;
|
|
4421
|
-
list: () => Promise<AIConversationSummary[]>;
|
|
4422
|
-
remove: (id: string) => Promise<void>;
|
|
4423
|
-
};
|
|
4461
|
+
export type AIConversationStore = SessionStore<AIConversation, AIConversationSummary>;
|
|
4424
4462
|
export type AIHTMXRenderConfig = {
|
|
4425
4463
|
messageStart?: (input: {
|
|
4426
4464
|
conversationId: string;
|
|
@@ -4486,6 +4524,10 @@ export type RAGHTMXWorkflowRenderConfig = {
|
|
|
4486
4524
|
cases: RAGEvaluationCaseResult[];
|
|
4487
4525
|
summary: RAGEvaluationSummary;
|
|
4488
4526
|
}) => string;
|
|
4527
|
+
adaptiveNativePlannerBenchmark?: (input: RAGAdaptiveNativePlannerBenchmarkResponse) => string;
|
|
4528
|
+
nativeBackendComparisonBenchmark?: (input: RAGNativeBackendComparisonBenchmarkResponse) => string;
|
|
4529
|
+
adaptiveNativePlannerBenchmarkSnapshot?: (input: RAGAdaptiveNativePlannerBenchmarkSnapshotResponse) => string;
|
|
4530
|
+
nativeBackendComparisonBenchmarkSnapshot?: (input: RAGNativeBackendComparisonBenchmarkSnapshotResponse) => string;
|
|
4489
4531
|
mutationResult?: (input: RAGMutationResponse) => string;
|
|
4490
4532
|
emptyState?: (kind: 'documents' | 'searchResults' | 'chunkPreview' | 'status' | 'evaluation') => string;
|
|
4491
4533
|
error?: (message: string) => string;
|
|
@@ -4552,6 +4594,7 @@ export type RAGChatPluginConfig = AIChatPluginConfig & {
|
|
|
4552
4594
|
retrievalReleasePoliciesByRolloutLabel?: Partial<Record<Exclude<RAGRetrievalBaselineRecord['rolloutLabel'], undefined>, RAGRetrievalReleasePolicy>>;
|
|
4553
4595
|
retrievalReleasePoliciesByGroupAndRolloutLabel?: Record<string, Partial<Record<Exclude<RAGRetrievalBaselineRecord['rolloutLabel'], undefined>, RAGRetrievalReleasePolicy>>>;
|
|
4554
4596
|
retrievalBaselineGatePoliciesByRolloutLabel?: Partial<Record<Exclude<RAGRetrievalBaselineRecord['rolloutLabel'], undefined>, RAGRetrievalBaselineGatePolicy>>;
|
|
4597
|
+
retrievalBaselineGatePoliciesByGroup?: Record<string, RAGRetrievalBaselineGatePolicy>;
|
|
4555
4598
|
retrievalBaselineGatePoliciesByGroupAndRolloutLabel?: Record<string, Partial<Record<Exclude<RAGRetrievalBaselineRecord['rolloutLabel'], undefined>, RAGRetrievalBaselineGatePolicy>>>;
|
|
4556
4599
|
onRetrievalReleaseEvent?: (event: RAGRetrievalReleaseEvent) => void | Promise<void>;
|
|
4557
4600
|
extractors?: RAGFileExtractor[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type SessionStore<TSession extends {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: number;
|
|
4
|
+
}, TSummary extends {
|
|
5
|
+
id: string;
|
|
6
|
+
createdAt: number;
|
|
7
|
+
} = {
|
|
8
|
+
id: string;
|
|
9
|
+
createdAt: number;
|
|
10
|
+
}> = {
|
|
11
|
+
get: (id: string) => Promise<TSession | undefined>;
|
|
12
|
+
getOrCreate: (id: string) => Promise<TSession>;
|
|
13
|
+
set: (id: string, value: TSession) => Promise<void>;
|
|
14
|
+
list: () => Promise<TSummary[]>;
|
|
15
|
+
remove: (id: string) => Promise<void>;
|
|
16
|
+
};
|