@absolutejs/rag 0.0.26 → 0.0.28
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/adapter-kit/index.js +122 -6
- package/dist/adapter-kit/index.js.map +14 -14
- package/dist/angular/index.js.map +6 -6
- package/dist/client/index.js.map +6 -6
- package/dist/client/ui.js.map +4 -4
- package/dist/index.js +124 -6
- package/dist/index.js.map +29 -29
- package/dist/presentation/ui.js.map +6 -6
- package/dist/quality/quality.js.map +4 -4
- package/dist/react/index.js.map +14 -14
- package/dist/src/adapter-kit/index.d.ts +1 -1
- package/dist/src/adapters/inMemory.d.ts +1 -1
- package/dist/src/adapters/sync.d.ts +1 -1
- package/dist/src/angular/ai-rag-stream.service.d.ts +9 -9
- package/dist/src/angular/ai-rag-workflow.service.d.ts +10 -10
- package/dist/src/angular/rag-client.service.d.ts +68 -68
- package/dist/src/chat/chat.d.ts +1 -1
- package/dist/src/client/createRAGAnswerWorkflow.d.ts +10 -9
- package/dist/src/client/ragClient.d.ts +41 -40
- package/dist/src/client/ui.d.ts +1 -1
- package/dist/src/index.d.ts +3 -2
- package/dist/src/ingestion/ingestion.d.ts +1 -1
- package/dist/src/internal/accessControl.d.ts +1 -1
- package/dist/src/internal/jobState.d.ts +1 -1
- package/dist/src/presentation/htmxCitationFragments.d.ts +1 -1
- package/dist/src/presentation/htmxConfig.d.ts +1 -1
- package/dist/src/presentation/htmxRenderers.d.ts +2 -1
- package/dist/src/presentation/htmxWorkflowRenderers.d.ts +1 -1
- package/dist/src/presentation/presentation.d.ts +5 -4
- package/dist/src/providers/contactProviders.d.ts +1 -1
- package/dist/src/providers/emailProviders.d.ts +1 -1
- package/dist/src/providers/embeddingProviders.d.ts +1 -1
- package/dist/src/providers/extractorProviders.d.ts +1 -1
- package/dist/src/providers/rerankerProviders.d.ts +1 -1
- package/dist/src/providers/socialProviders.d.ts +1 -1
- package/dist/src/quality/quality.d.ts +2 -1
- package/dist/src/react/useRAG.d.ts +117 -117
- package/dist/src/react/useRAGChunkPreview.d.ts +5 -5
- package/dist/src/react/useRAGCitations.d.ts +4 -4
- package/dist/src/react/useRAGDocuments.d.ts +1 -1
- package/dist/src/react/useRAGEvaluate.d.ts +4 -4
- package/dist/src/react/useRAGGrounding.d.ts +3 -3
- package/dist/src/react/useRAGIndexAdmin.d.ts +5 -5
- package/dist/src/react/useRAGIngest.d.ts +1 -1
- package/dist/src/react/useRAGOps.d.ts +1 -1
- package/dist/src/react/useRAGSearch.d.ts +2 -1
- package/dist/src/react/useRAGSources.d.ts +6 -6
- package/dist/src/react/useRAGStatus.d.ts +2 -2
- package/dist/src/react/useRAGStream.d.ts +11 -11
- package/dist/src/react/useRAGWorkflow.d.ts +12 -12
- package/dist/src/retrieval/collection.d.ts +3 -1
- package/dist/src/retrieval/context.d.ts +1 -1
- package/dist/src/retrieval/embedding.d.ts +1 -1
- package/dist/src/retrieval/grounding.d.ts +2 -1
- package/dist/src/retrieval/lexical.d.ts +2 -1
- package/dist/src/retrieval/queryTransforms.d.ts +1 -1
- package/dist/src/retrieval/reranking.d.ts +1 -1
- package/dist/src/retrieval/retrievalStrategies.d.ts +1 -1
- package/dist/src/svelte/createRAG.d.ts +109 -109
- package/dist/src/svelte/createRAGChunkPreview.d.ts +5 -5
- package/dist/src/svelte/createRAGCitations.d.ts +4 -4
- package/dist/src/svelte/createRAGDocuments.d.ts +1 -1
- package/dist/src/svelte/createRAGEvaluate.d.ts +4 -4
- package/dist/src/svelte/createRAGGrounding.d.ts +3 -3
- package/dist/src/svelte/createRAGIndexAdmin.d.ts +5 -5
- package/dist/src/svelte/createRAGIngest.d.ts +1 -1
- package/dist/src/svelte/createRAGOps.d.ts +1 -1
- package/dist/src/svelte/createRAGSearch.d.ts +2 -1
- package/dist/src/svelte/createRAGSources.d.ts +6 -6
- package/dist/src/svelte/createRAGStatus.d.ts +2 -2
- package/dist/src/svelte/createRAGStream.d.ts +8 -8
- package/dist/src/svelte/createRAGWorkflow.d.ts +9 -9
- package/dist/src/sync/sync.d.ts +2 -2
- package/dist/src/vue/useRAG.d.ts +257 -257
- package/dist/src/vue/useRAGChunkPreview.d.ts +25 -25
- package/dist/src/vue/useRAGCitations.d.ts +4 -4
- package/dist/src/vue/useRAGDocuments.d.ts +9 -9
- package/dist/src/vue/useRAGEvaluate.d.ts +50 -50
- package/dist/src/vue/useRAGGrounding.d.ts +3 -3
- package/dist/src/vue/useRAGIndexAdmin.d.ts +35 -35
- package/dist/src/vue/useRAGIngest.d.ts +1 -1
- package/dist/src/vue/useRAGOps.d.ts +9 -9
- package/dist/src/vue/useRAGSearch.d.ts +30 -29
- package/dist/src/vue/useRAGSources.d.ts +6 -6
- package/dist/src/vue/useRAGStatus.d.ts +2 -2
- package/dist/src/vue/useRAGStream.d.ts +10 -10
- package/dist/src/vue/useRAGWorkflow.d.ts +11 -11
- package/dist/svelte/index.js.map +13 -13
- package/dist/types/adapters.d.ts +1 -1
- package/dist/types/client.d.ts +2 -1
- package/dist/types/core.d.ts +1 -1
- package/dist/types/engine.d.ts +4407 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/presentation.d.ts +2 -1
- package/dist/types/retrieval.d.ts +1 -1
- package/dist/vue/index.js.map +13 -13
- package/package.json +6 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RAGBackendsResponse, RAGContentFormat, RAGChunkingStrategy, RAGMutationResponse, RAGSyncResponse, RAGSyncRunOptions } from "
|
|
1
|
+
import type { RAGBackendsResponse, RAGContentFormat, RAGChunkingStrategy, RAGMutationResponse, RAGSyncResponse, RAGSyncRunOptions } from "../../types/engine";
|
|
2
2
|
export declare const useRAGIndexAdmin: (path: string) => {
|
|
3
3
|
backends: import("vue").Ref<{
|
|
4
4
|
ok: true;
|
|
@@ -34,8 +34,8 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
34
34
|
lastHealthCheckAt?: number | undefined;
|
|
35
35
|
lastAnalyzeAt?: number | undefined;
|
|
36
36
|
resolution?: {
|
|
37
|
-
status: import("
|
|
38
|
-
source: import("
|
|
37
|
+
status: import("..").SQLiteVecResolutionStatus;
|
|
38
|
+
source: import("..").SQLiteVecResolutionSource;
|
|
39
39
|
platformKey: string;
|
|
40
40
|
packageName?: string | undefined;
|
|
41
41
|
packageVersion?: string | undefined;
|
|
@@ -56,7 +56,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
56
56
|
pushdownClauseCount: number;
|
|
57
57
|
totalFilterClauseCount: number;
|
|
58
58
|
jsRemainderClauseCount: number;
|
|
59
|
-
plannerProfileUsed?: import("
|
|
59
|
+
plannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
|
|
60
60
|
queryMultiplierUsed?: number | undefined;
|
|
61
61
|
candidateLimitUsed?: number | undefined;
|
|
62
62
|
maxBackfillsUsed?: number | undefined;
|
|
@@ -127,7 +127,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
127
127
|
pushdownClauseCount: number;
|
|
128
128
|
totalFilterClauseCount: number;
|
|
129
129
|
jsRemainderClauseCount: number;
|
|
130
|
-
plannerProfileUsed?: import("
|
|
130
|
+
plannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
|
|
131
131
|
queryMultiplierUsed?: number | undefined;
|
|
132
132
|
candidateLimitUsed?: number | undefined;
|
|
133
133
|
maxBackfillsUsed?: number | undefined;
|
|
@@ -194,8 +194,8 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
194
194
|
lastHealthCheckAt?: number | undefined;
|
|
195
195
|
lastAnalyzeAt?: number | undefined;
|
|
196
196
|
resolution?: {
|
|
197
|
-
status: import("
|
|
198
|
-
source: import("
|
|
197
|
+
status: import("..").SQLiteVecResolutionStatus;
|
|
198
|
+
source: import("..").SQLiteVecResolutionSource;
|
|
199
199
|
platformKey: string;
|
|
200
200
|
packageName?: string | undefined;
|
|
201
201
|
packageVersion?: string | undefined;
|
|
@@ -216,7 +216,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
216
216
|
pushdownClauseCount: number;
|
|
217
217
|
totalFilterClauseCount: number;
|
|
218
218
|
jsRemainderClauseCount: number;
|
|
219
|
-
plannerProfileUsed?: import("
|
|
219
|
+
plannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
|
|
220
220
|
queryMultiplierUsed?: number | undefined;
|
|
221
221
|
candidateLimitUsed?: number | undefined;
|
|
222
222
|
maxBackfillsUsed?: number | undefined;
|
|
@@ -287,7 +287,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
287
287
|
pushdownClauseCount: number;
|
|
288
288
|
totalFilterClauseCount: number;
|
|
289
289
|
jsRemainderClauseCount: number;
|
|
290
|
-
plannerProfileUsed?: import("
|
|
290
|
+
plannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
|
|
291
291
|
queryMultiplierUsed?: number | undefined;
|
|
292
292
|
candidateLimitUsed?: number | undefined;
|
|
293
293
|
maxBackfillsUsed?: number | undefined;
|
|
@@ -351,7 +351,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
351
351
|
status?: string | undefined;
|
|
352
352
|
documents?: number | undefined;
|
|
353
353
|
maintenance?: {
|
|
354
|
-
backend: Exclude<import("
|
|
354
|
+
backend: Exclude<import("..").RAGVectorStoreStatus["backend"], "in_memory">;
|
|
355
355
|
activeJobs: {
|
|
356
356
|
action: "analyze_backend" | "rebuild_native_index";
|
|
357
357
|
startedAt: number;
|
|
@@ -359,7 +359,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
359
359
|
}[];
|
|
360
360
|
recentActions: {
|
|
361
361
|
action: "analyze_backend" | "rebuild_native_index";
|
|
362
|
-
status: import("
|
|
362
|
+
status: import("..").RAGAdminActionRecord["status"];
|
|
363
363
|
finishedAt?: number | undefined;
|
|
364
364
|
target?: string | undefined;
|
|
365
365
|
error?: string | undefined;
|
|
@@ -394,8 +394,8 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
394
394
|
lastHealthCheckAt?: number | undefined;
|
|
395
395
|
lastAnalyzeAt?: number | undefined;
|
|
396
396
|
resolution?: {
|
|
397
|
-
status: import("
|
|
398
|
-
source: import("
|
|
397
|
+
status: import("..").SQLiteVecResolutionStatus;
|
|
398
|
+
source: import("..").SQLiteVecResolutionSource;
|
|
399
399
|
platformKey: string;
|
|
400
400
|
packageName?: string | undefined;
|
|
401
401
|
packageVersion?: string | undefined;
|
|
@@ -416,7 +416,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
416
416
|
pushdownClauseCount: number;
|
|
417
417
|
totalFilterClauseCount: number;
|
|
418
418
|
jsRemainderClauseCount: number;
|
|
419
|
-
plannerProfileUsed?: import("
|
|
419
|
+
plannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
|
|
420
420
|
queryMultiplierUsed?: number | undefined;
|
|
421
421
|
candidateLimitUsed?: number | undefined;
|
|
422
422
|
maxBackfillsUsed?: number | undefined;
|
|
@@ -487,7 +487,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
487
487
|
pushdownClauseCount: number;
|
|
488
488
|
totalFilterClauseCount: number;
|
|
489
489
|
jsRemainderClauseCount: number;
|
|
490
|
-
plannerProfileUsed?: import("
|
|
490
|
+
plannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
|
|
491
491
|
queryMultiplierUsed?: number | undefined;
|
|
492
492
|
candidateLimitUsed?: number | undefined;
|
|
493
493
|
maxBackfillsUsed?: number | undefined;
|
|
@@ -542,7 +542,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
542
542
|
adminJobs?: {
|
|
543
543
|
id: string;
|
|
544
544
|
action: "analyze_backend" | "rebuild_native_index" | "clear_index" | "create_document" | "delete_document" | "promote_retrieval_baseline" | "revert_retrieval_baseline" | "prune_search_traces" | "reindex_document" | "reindex_source" | "sync_all_sources" | "sync_source" | "reseed" | "reset";
|
|
545
|
-
status: import("
|
|
545
|
+
status: import("..").RAGAdminJobStatus;
|
|
546
546
|
startedAt: number;
|
|
547
547
|
finishedAt?: number | undefined;
|
|
548
548
|
elapsedMs?: number | undefined;
|
|
@@ -583,7 +583,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
583
583
|
status?: string | undefined;
|
|
584
584
|
documents?: number | undefined;
|
|
585
585
|
maintenance?: {
|
|
586
|
-
backend: Exclude<import("
|
|
586
|
+
backend: Exclude<import("..").RAGVectorStoreStatus["backend"], "in_memory">;
|
|
587
587
|
activeJobs: {
|
|
588
588
|
action: "analyze_backend" | "rebuild_native_index";
|
|
589
589
|
startedAt: number;
|
|
@@ -591,7 +591,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
591
591
|
}[];
|
|
592
592
|
recentActions: {
|
|
593
593
|
action: "analyze_backend" | "rebuild_native_index";
|
|
594
|
-
status: import("
|
|
594
|
+
status: import("..").RAGAdminActionRecord["status"];
|
|
595
595
|
finishedAt?: number | undefined;
|
|
596
596
|
target?: string | undefined;
|
|
597
597
|
error?: string | undefined;
|
|
@@ -626,8 +626,8 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
626
626
|
lastHealthCheckAt?: number | undefined;
|
|
627
627
|
lastAnalyzeAt?: number | undefined;
|
|
628
628
|
resolution?: {
|
|
629
|
-
status: import("
|
|
630
|
-
source: import("
|
|
629
|
+
status: import("..").SQLiteVecResolutionStatus;
|
|
630
|
+
source: import("..").SQLiteVecResolutionSource;
|
|
631
631
|
platformKey: string;
|
|
632
632
|
packageName?: string | undefined;
|
|
633
633
|
packageVersion?: string | undefined;
|
|
@@ -648,7 +648,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
648
648
|
pushdownClauseCount: number;
|
|
649
649
|
totalFilterClauseCount: number;
|
|
650
650
|
jsRemainderClauseCount: number;
|
|
651
|
-
plannerProfileUsed?: import("
|
|
651
|
+
plannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
|
|
652
652
|
queryMultiplierUsed?: number | undefined;
|
|
653
653
|
candidateLimitUsed?: number | undefined;
|
|
654
654
|
maxBackfillsUsed?: number | undefined;
|
|
@@ -719,7 +719,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
719
719
|
pushdownClauseCount: number;
|
|
720
720
|
totalFilterClauseCount: number;
|
|
721
721
|
jsRemainderClauseCount: number;
|
|
722
|
-
plannerProfileUsed?: import("
|
|
722
|
+
plannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
|
|
723
723
|
queryMultiplierUsed?: number | undefined;
|
|
724
724
|
candidateLimitUsed?: number | undefined;
|
|
725
725
|
maxBackfillsUsed?: number | undefined;
|
|
@@ -774,7 +774,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
774
774
|
adminJobs?: {
|
|
775
775
|
id: string;
|
|
776
776
|
action: "analyze_backend" | "rebuild_native_index" | "clear_index" | "create_document" | "delete_document" | "promote_retrieval_baseline" | "revert_retrieval_baseline" | "prune_search_traces" | "reindex_document" | "reindex_source" | "sync_all_sources" | "sync_source" | "reseed" | "reset";
|
|
777
|
-
status: import("
|
|
777
|
+
status: import("..").RAGAdminJobStatus;
|
|
778
778
|
startedAt: number;
|
|
779
779
|
finishedAt?: number | undefined;
|
|
780
780
|
elapsedMs?: number | undefined;
|
|
@@ -817,22 +817,22 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
817
817
|
resetState: () => void;
|
|
818
818
|
syncAllSources: (options?: RAGSyncRunOptions) => Promise<{
|
|
819
819
|
ok: true;
|
|
820
|
-
source: import("
|
|
820
|
+
source: import("..").RAGSyncSourceRecord;
|
|
821
821
|
partial?: boolean;
|
|
822
822
|
} | {
|
|
823
823
|
ok: true;
|
|
824
|
-
sources: import("
|
|
824
|
+
sources: import("..").RAGSyncSourceRecord[];
|
|
825
825
|
partial?: boolean;
|
|
826
826
|
failedSourceIds?: string[];
|
|
827
827
|
errorsBySource?: Record<string, string>;
|
|
828
828
|
}>;
|
|
829
829
|
syncSource: (id: string, options?: RAGSyncRunOptions) => Promise<{
|
|
830
830
|
ok: true;
|
|
831
|
-
source: import("
|
|
831
|
+
source: import("..").RAGSyncSourceRecord;
|
|
832
832
|
partial?: boolean;
|
|
833
833
|
} | {
|
|
834
834
|
ok: true;
|
|
835
|
-
sources: import("
|
|
835
|
+
sources: import("..").RAGSyncSourceRecord[];
|
|
836
836
|
partial?: boolean;
|
|
837
837
|
failedSourceIds?: string[];
|
|
838
838
|
errorsBySource?: Record<string, string>;
|
|
@@ -843,7 +843,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
843
843
|
id: string;
|
|
844
844
|
label: string;
|
|
845
845
|
kind: "directory" | "url" | "storage" | "email" | "connector" | "custom";
|
|
846
|
-
status: import("
|
|
846
|
+
status: import("..").RAGSyncSourceStatus;
|
|
847
847
|
description?: string | undefined;
|
|
848
848
|
target?: string | undefined;
|
|
849
849
|
lastStartedAt?: number | undefined;
|
|
@@ -889,7 +889,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
889
889
|
diagnostics?: {
|
|
890
890
|
summary: string;
|
|
891
891
|
entries: {
|
|
892
|
-
code: import("
|
|
892
|
+
code: import("..").RAGSyncSourceDiagnosticCode;
|
|
893
893
|
severity: "info" | "warning" | "error";
|
|
894
894
|
summary: string;
|
|
895
895
|
}[];
|
|
@@ -916,7 +916,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
916
916
|
id: string;
|
|
917
917
|
label: string;
|
|
918
918
|
kind: "directory" | "url" | "storage" | "email" | "connector" | "custom";
|
|
919
|
-
status: import("
|
|
919
|
+
status: import("..").RAGSyncSourceStatus;
|
|
920
920
|
description?: string | undefined;
|
|
921
921
|
target?: string | undefined;
|
|
922
922
|
lastStartedAt?: number | undefined;
|
|
@@ -962,7 +962,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
962
962
|
diagnostics?: {
|
|
963
963
|
summary: string;
|
|
964
964
|
entries: {
|
|
965
|
-
code: import("
|
|
965
|
+
code: import("..").RAGSyncSourceDiagnosticCode;
|
|
966
966
|
severity: "info" | "warning" | "error";
|
|
967
967
|
summary: string;
|
|
968
968
|
}[];
|
|
@@ -994,7 +994,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
994
994
|
id: string;
|
|
995
995
|
label: string;
|
|
996
996
|
kind: "directory" | "url" | "storage" | "email" | "connector" | "custom";
|
|
997
|
-
status: import("
|
|
997
|
+
status: import("..").RAGSyncSourceStatus;
|
|
998
998
|
description?: string | undefined;
|
|
999
999
|
target?: string | undefined;
|
|
1000
1000
|
lastStartedAt?: number | undefined;
|
|
@@ -1040,7 +1040,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
1040
1040
|
diagnostics?: {
|
|
1041
1041
|
summary: string;
|
|
1042
1042
|
entries: {
|
|
1043
|
-
code: import("
|
|
1043
|
+
code: import("..").RAGSyncSourceDiagnosticCode;
|
|
1044
1044
|
severity: "info" | "warning" | "error";
|
|
1045
1045
|
summary: string;
|
|
1046
1046
|
}[];
|
|
@@ -1067,7 +1067,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
1067
1067
|
id: string;
|
|
1068
1068
|
label: string;
|
|
1069
1069
|
kind: "directory" | "url" | "storage" | "email" | "connector" | "custom";
|
|
1070
|
-
status: import("
|
|
1070
|
+
status: import("..").RAGSyncSourceStatus;
|
|
1071
1071
|
description?: string | undefined;
|
|
1072
1072
|
target?: string | undefined;
|
|
1073
1073
|
lastStartedAt?: number | undefined;
|
|
@@ -1113,7 +1113,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
1113
1113
|
diagnostics?: {
|
|
1114
1114
|
summary: string;
|
|
1115
1115
|
entries: {
|
|
1116
|
-
code: import("
|
|
1116
|
+
code: import("..").RAGSyncSourceDiagnosticCode;
|
|
1117
1117
|
severity: "info" | "warning" | "error";
|
|
1118
1118
|
summary: string;
|
|
1119
1119
|
}[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RAGDocumentChunk, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUrlIngestInput, RAGIngestResponse } from "
|
|
1
|
+
import type { RAGDocumentChunk, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUrlIngestInput, RAGIngestResponse } from "../../types/engine";
|
|
2
2
|
export declare const useRAGIngest: (path: string) => {
|
|
3
3
|
clearIndex: () => Promise<{
|
|
4
4
|
ok: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGBackendMaintenanceSummary, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGSyncSourceRecord, RAGVectorStoreStatus } from "
|
|
1
|
+
import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGBackendMaintenanceSummary, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGSyncSourceRecord, RAGVectorStoreStatus } from "../../types/engine";
|
|
2
2
|
export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
3
3
|
admin: import("vue").Ref<RAGAdminCapabilities | undefined, RAGAdminCapabilities | undefined>;
|
|
4
4
|
adminActions: import("vue").Ref<{
|
|
@@ -25,7 +25,7 @@ export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
|
25
25
|
adminJobs: import("vue").Ref<{
|
|
26
26
|
id: string;
|
|
27
27
|
action: "analyze_backend" | "rebuild_native_index" | "clear_index" | "create_document" | "delete_document" | "promote_retrieval_baseline" | "revert_retrieval_baseline" | "prune_search_traces" | "reindex_document" | "reindex_source" | "sync_all_sources" | "sync_source" | "reseed" | "reset";
|
|
28
|
-
status: import("
|
|
28
|
+
status: import("..").RAGAdminJobStatus;
|
|
29
29
|
startedAt: number;
|
|
30
30
|
finishedAt?: number | undefined;
|
|
31
31
|
elapsedMs?: number | undefined;
|
|
@@ -34,7 +34,7 @@ export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
|
34
34
|
}[], RAGAdminJobRecord[] | {
|
|
35
35
|
id: string;
|
|
36
36
|
action: "analyze_backend" | "rebuild_native_index" | "clear_index" | "create_document" | "delete_document" | "promote_retrieval_baseline" | "revert_retrieval_baseline" | "prune_search_traces" | "reindex_document" | "reindex_source" | "sync_all_sources" | "sync_source" | "reseed" | "reset";
|
|
37
|
-
status: import("
|
|
37
|
+
status: import("..").RAGAdminJobStatus;
|
|
38
38
|
startedAt: number;
|
|
39
39
|
finishedAt?: number | undefined;
|
|
40
40
|
elapsedMs?: number | undefined;
|
|
@@ -47,7 +47,7 @@ export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
|
47
47
|
health: import("vue").Ref<RAGCorpusHealth | undefined, RAGCorpusHealth | undefined>;
|
|
48
48
|
ingestJobs: import("vue").Ref<{
|
|
49
49
|
id: string;
|
|
50
|
-
status: import("
|
|
50
|
+
status: import("..").RAGIngestJobStatus;
|
|
51
51
|
startedAt: number;
|
|
52
52
|
finishedAt?: number | undefined;
|
|
53
53
|
elapsedMs?: number | undefined;
|
|
@@ -59,7 +59,7 @@ export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
|
59
59
|
extractorNames?: string[] | undefined;
|
|
60
60
|
}[], RAGIngestJobRecord[] | {
|
|
61
61
|
id: string;
|
|
62
|
-
status: import("
|
|
62
|
+
status: import("..").RAGIngestJobStatus;
|
|
63
63
|
startedAt: number;
|
|
64
64
|
finishedAt?: number | undefined;
|
|
65
65
|
elapsedMs?: number | undefined;
|
|
@@ -81,7 +81,7 @@ export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
|
81
81
|
id: string;
|
|
82
82
|
label: string;
|
|
83
83
|
kind: "directory" | "url" | "storage" | "email" | "connector" | "custom";
|
|
84
|
-
status: import("
|
|
84
|
+
status: import("..").RAGSyncSourceStatus;
|
|
85
85
|
description?: string | undefined;
|
|
86
86
|
target?: string | undefined;
|
|
87
87
|
lastStartedAt?: number | undefined;
|
|
@@ -127,7 +127,7 @@ export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
|
127
127
|
diagnostics?: {
|
|
128
128
|
summary: string;
|
|
129
129
|
entries: {
|
|
130
|
-
code: import("
|
|
130
|
+
code: import("..").RAGSyncSourceDiagnosticCode;
|
|
131
131
|
severity: "info" | "warning" | "error";
|
|
132
132
|
summary: string;
|
|
133
133
|
}[];
|
|
@@ -150,7 +150,7 @@ export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
|
150
150
|
id: string;
|
|
151
151
|
label: string;
|
|
152
152
|
kind: "directory" | "url" | "storage" | "email" | "connector" | "custom";
|
|
153
|
-
status: import("
|
|
153
|
+
status: import("..").RAGSyncSourceStatus;
|
|
154
154
|
description?: string | undefined;
|
|
155
155
|
target?: string | undefined;
|
|
156
156
|
lastStartedAt?: number | undefined;
|
|
@@ -196,7 +196,7 @@ export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
|
196
196
|
diagnostics?: {
|
|
197
197
|
summary: string;
|
|
198
198
|
entries: {
|
|
199
|
-
code: import("
|
|
199
|
+
code: import("..").RAGSyncSourceDiagnosticCode;
|
|
200
200
|
severity: "info" | "warning" | "error";
|
|
201
201
|
summary: string;
|
|
202
202
|
}[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { RAGSource } from "@absolutejs/ai";
|
|
2
|
+
import type { RAGSearchRequest } from "../../types/engine";
|
|
2
3
|
import type { RAGDetailedSearchResponse } from "../../types/client";
|
|
3
4
|
type SearchRequest = Omit<RAGSearchRequest, "includeTrace">;
|
|
4
5
|
export declare const useRAGSearch: (path: string) => {
|
|
@@ -7,20 +8,26 @@ export declare const useRAGSearch: (path: string) => {
|
|
|
7
8
|
isSearching: import("vue").Ref<boolean, boolean>;
|
|
8
9
|
lastRequest: import("vue").Ref<{
|
|
9
10
|
query: string;
|
|
10
|
-
|
|
11
|
+
topK?: number | undefined;
|
|
12
|
+
candidateTopK?: number | undefined;
|
|
13
|
+
nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
|
|
14
|
+
nativeQueryMultiplier?: number | undefined;
|
|
11
15
|
nativeCandidateLimit?: number | undefined;
|
|
12
16
|
nativeMaxBackfills?: number | undefined;
|
|
13
17
|
nativeMinResults?: number | undefined;
|
|
14
18
|
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
15
19
|
filter?: Record<string, unknown> | undefined;
|
|
16
|
-
|
|
17
|
-
|
|
20
|
+
scoreThreshold?: number | undefined;
|
|
21
|
+
queryTransform?: import("..").RAGQueryTransformer | {
|
|
22
|
+
transform: import("..").RAGQueryTransformer;
|
|
18
23
|
defaultModel?: string | undefined;
|
|
19
24
|
providerName?: string | undefined;
|
|
20
25
|
} | undefined;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
26
|
+
retrievalStrategy?: import("..").RAGRetrievalStrategySelector | {
|
|
27
|
+
select: import("..").RAGRetrievalStrategySelector;
|
|
28
|
+
providerName?: string | undefined;
|
|
29
|
+
defaultLabel?: string | undefined;
|
|
30
|
+
} | undefined;
|
|
24
31
|
retrieval?: import("@absolutejs/ai").RAGHybridRetrievalMode | {
|
|
25
32
|
mode?: import("@absolutejs/ai").RAGHybridRetrievalMode | undefined;
|
|
26
33
|
lexicalTopK?: number | undefined;
|
|
@@ -28,43 +35,43 @@ export declare const useRAGSearch: (path: string) => {
|
|
|
28
35
|
sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
|
|
29
36
|
diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
|
|
30
37
|
mmrLambda?: number | undefined;
|
|
31
|
-
fusion?: import("
|
|
38
|
+
fusion?: import("..").RAGHybridFusionMode | undefined;
|
|
32
39
|
fusionConstant?: number | undefined;
|
|
33
40
|
lexicalWeight?: number | undefined;
|
|
34
41
|
vectorWeight?: number | undefined;
|
|
35
|
-
nativeQueryProfile?: import("
|
|
42
|
+
nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
|
|
36
43
|
nativeCandidateLimit?: number | undefined;
|
|
37
44
|
nativeMaxBackfills?: number | undefined;
|
|
38
45
|
nativeMinResults?: number | undefined;
|
|
39
46
|
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
40
47
|
} | undefined;
|
|
41
48
|
model?: string | undefined;
|
|
42
|
-
nativeQueryMultiplier?: number | undefined;
|
|
43
|
-
retrievalStrategy?: import("@absolutejs/ai").RAGRetrievalStrategySelector | {
|
|
44
|
-
select: import("@absolutejs/ai").RAGRetrievalStrategySelector;
|
|
45
|
-
providerName?: string | undefined;
|
|
46
|
-
defaultLabel?: string | undefined;
|
|
47
|
-
} | undefined;
|
|
48
49
|
includeTrace?: boolean | undefined;
|
|
49
50
|
persistTrace?: boolean | undefined;
|
|
50
51
|
traceGroupKey?: string | undefined;
|
|
51
52
|
traceTags?: string[] | undefined;
|
|
52
53
|
} | null, RAGSearchRequest | {
|
|
53
54
|
query: string;
|
|
54
|
-
|
|
55
|
+
topK?: number | undefined;
|
|
56
|
+
candidateTopK?: number | undefined;
|
|
57
|
+
nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
|
|
58
|
+
nativeQueryMultiplier?: number | undefined;
|
|
55
59
|
nativeCandidateLimit?: number | undefined;
|
|
56
60
|
nativeMaxBackfills?: number | undefined;
|
|
57
61
|
nativeMinResults?: number | undefined;
|
|
58
62
|
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
59
63
|
filter?: Record<string, unknown> | undefined;
|
|
60
|
-
|
|
61
|
-
|
|
64
|
+
scoreThreshold?: number | undefined;
|
|
65
|
+
queryTransform?: import("..").RAGQueryTransformer | {
|
|
66
|
+
transform: import("..").RAGQueryTransformer;
|
|
62
67
|
defaultModel?: string | undefined;
|
|
63
68
|
providerName?: string | undefined;
|
|
64
69
|
} | undefined;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
70
|
+
retrievalStrategy?: import("..").RAGRetrievalStrategySelector | {
|
|
71
|
+
select: import("..").RAGRetrievalStrategySelector;
|
|
72
|
+
providerName?: string | undefined;
|
|
73
|
+
defaultLabel?: string | undefined;
|
|
74
|
+
} | undefined;
|
|
68
75
|
retrieval?: import("@absolutejs/ai").RAGHybridRetrievalMode | {
|
|
69
76
|
mode?: import("@absolutejs/ai").RAGHybridRetrievalMode | undefined;
|
|
70
77
|
lexicalTopK?: number | undefined;
|
|
@@ -72,23 +79,17 @@ export declare const useRAGSearch: (path: string) => {
|
|
|
72
79
|
sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
|
|
73
80
|
diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
|
|
74
81
|
mmrLambda?: number | undefined;
|
|
75
|
-
fusion?: import("
|
|
82
|
+
fusion?: import("..").RAGHybridFusionMode | undefined;
|
|
76
83
|
fusionConstant?: number | undefined;
|
|
77
84
|
lexicalWeight?: number | undefined;
|
|
78
85
|
vectorWeight?: number | undefined;
|
|
79
|
-
nativeQueryProfile?: import("
|
|
86
|
+
nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
|
|
80
87
|
nativeCandidateLimit?: number | undefined;
|
|
81
88
|
nativeMaxBackfills?: number | undefined;
|
|
82
89
|
nativeMinResults?: number | undefined;
|
|
83
90
|
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
84
91
|
} | undefined;
|
|
85
92
|
model?: string | undefined;
|
|
86
|
-
nativeQueryMultiplier?: number | undefined;
|
|
87
|
-
retrievalStrategy?: import("@absolutejs/ai").RAGRetrievalStrategySelector | {
|
|
88
|
-
select: import("@absolutejs/ai").RAGRetrievalStrategySelector;
|
|
89
|
-
providerName?: string | undefined;
|
|
90
|
-
defaultLabel?: string | undefined;
|
|
91
|
-
} | undefined;
|
|
92
93
|
includeTrace?: boolean | undefined;
|
|
93
94
|
persistTrace?: boolean | undefined;
|
|
94
95
|
traceGroupKey?: string | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type Ref } from "vue";
|
|
2
2
|
import type { AIMessage } from "@absolutejs/ai";
|
|
3
3
|
export declare const useRAGSources: (messages: Ref<AIMessage[]>) => {
|
|
4
|
-
citationReferenceMap: import("vue").ComputedRef<import("
|
|
5
|
-
chunkGraph: import("vue").ComputedRef<import("
|
|
4
|
+
citationReferenceMap: import("vue").ComputedRef<import("..").RAGCitationReferenceMap>;
|
|
5
|
+
chunkGraph: import("vue").ComputedRef<import("..").RAGChunkGraph>;
|
|
6
6
|
hasSources: import("vue").ComputedRef<boolean>;
|
|
7
7
|
latestAssistantMessage: import("vue").ComputedRef<AIMessage | undefined>;
|
|
8
|
-
navigationForChunk: (chunkId?: string | null) => import("
|
|
9
|
-
sectionDiagnostics: import("vue").ComputedRef<import("
|
|
10
|
-
sourceGroups: import("vue").ComputedRef<import("
|
|
8
|
+
navigationForChunk: (chunkId?: string | null) => import("..").RAGChunkGraphNavigation;
|
|
9
|
+
sectionDiagnostics: import("vue").ComputedRef<import("..").RAGSectionRetrievalDiagnostic[]>;
|
|
10
|
+
sourceGroups: import("vue").ComputedRef<import("..").RAGSourceGroup[]>;
|
|
11
11
|
sources: import("vue").ComputedRef<import("@absolutejs/ai").RAGSource[]>;
|
|
12
|
-
sourceSummaries: import("vue").ComputedRef<import("
|
|
12
|
+
sourceSummaries: import("vue").ComputedRef<import("..").RAGSourceSummary[]>;
|
|
13
13
|
};
|
|
14
14
|
export type UseRAGSourcesResult = ReturnType<typeof useRAGSources>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { RAGBackendCapabilities, RAGVectorStoreStatus } from "
|
|
1
|
+
import type { RAGBackendCapabilities, RAGVectorStoreStatus } from "../../types/engine";
|
|
2
2
|
export declare const useRAGStatus: (path: string, autoLoad?: boolean) => {
|
|
3
3
|
capabilities: import("vue").Ref<RAGBackendCapabilities | undefined, RAGBackendCapabilities | undefined>;
|
|
4
4
|
error: import("vue").Ref<string | null, string | null>;
|
|
5
5
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
6
|
-
refresh: () => Promise<import("
|
|
6
|
+
refresh: () => Promise<import("..").RAGStatusResponse>;
|
|
7
7
|
reset: () => void;
|
|
8
8
|
status: import("vue").Ref<RAGVectorStoreStatus | undefined, RAGVectorStoreStatus | undefined>;
|
|
9
9
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { AIAttachment } from "@absolutejs/ai";
|
|
2
2
|
export declare const useRAGStream: (path: string, conversationId?: string) => {
|
|
3
|
-
citationReferenceMap: import("vue").ComputedRef<import("
|
|
4
|
-
citations: import("vue").ComputedRef<import("
|
|
5
|
-
coverage: import("vue").ComputedRef<"
|
|
6
|
-
groundedAnswer: import("vue").ComputedRef<import("
|
|
7
|
-
groundingReferences: import("vue").ComputedRef<import("
|
|
3
|
+
citationReferenceMap: import("vue").ComputedRef<import("..").RAGCitationReferenceMap>;
|
|
4
|
+
citations: import("vue").ComputedRef<import("..").RAGCitation[]>;
|
|
5
|
+
coverage: import("vue").ComputedRef<"grounded" | "partial" | "ungrounded">;
|
|
6
|
+
groundedAnswer: import("vue").ComputedRef<import("..").RAGGroundedAnswer>;
|
|
7
|
+
groundingReferences: import("vue").ComputedRef<import("..").RAGGroundingReference[]>;
|
|
8
8
|
hasGrounding: import("vue").ComputedRef<boolean>;
|
|
9
9
|
hasRetrieved: import("vue").ComputedRef<boolean>;
|
|
10
10
|
hasSources: import("vue").ComputedRef<boolean>;
|
|
@@ -17,13 +17,13 @@ export declare const useRAGStream: (path: string, conversationId?: string) => {
|
|
|
17
17
|
latestAssistantMessage: import("vue").ComputedRef<import("@absolutejs/ai").AIMessage | undefined>;
|
|
18
18
|
progress: import("vue").ComputedRef<import("../presentation/presentation").RAGStreamProgress>;
|
|
19
19
|
query: (content: string, attachments?: AIAttachment[]) => void;
|
|
20
|
-
retrieval: import("vue").ComputedRef<import("
|
|
21
|
-
sourceGroups: import("vue").ComputedRef<import("
|
|
22
|
-
sourceSummaries: import("vue").ComputedRef<import("
|
|
20
|
+
retrieval: import("vue").ComputedRef<import("..").RAGRetrievedState | null>;
|
|
21
|
+
sourceGroups: import("vue").ComputedRef<import("..").RAGSourceGroup[]>;
|
|
22
|
+
sourceSummaries: import("vue").ComputedRef<import("..").RAGSourceSummary[]>;
|
|
23
23
|
sources: import("vue").ComputedRef<import("@absolutejs/ai").RAGSource[]>;
|
|
24
|
-
stage: import("vue").ComputedRef<import("
|
|
24
|
+
stage: import("vue").ComputedRef<import("..").RAGStreamStage>;
|
|
25
25
|
ungroundedReferenceNumbers: import("vue").ComputedRef<number[]>;
|
|
26
|
-
workflow: import("vue").ComputedRef<import("
|
|
26
|
+
workflow: import("vue").ComputedRef<import("..").RAGAnswerWorkflowState>;
|
|
27
27
|
branch: (messageId: string, content: string) => void;
|
|
28
28
|
cancel: () => void;
|
|
29
29
|
destroy: () => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare const useRAGWorkflow: (path: string, conversationId?: string) => {
|
|
2
|
-
state: import("vue").ComputedRef<import("
|
|
3
|
-
citationReferenceMap: import("vue").ComputedRef<import("
|
|
4
|
-
citations: import("vue").ComputedRef<import("
|
|
5
|
-
coverage: import("vue").ComputedRef<"
|
|
6
|
-
groundedAnswer: import("vue").ComputedRef<import("
|
|
7
|
-
groundingReferences: import("vue").ComputedRef<import("
|
|
2
|
+
state: import("vue").ComputedRef<import("..").RAGAnswerWorkflowState>;
|
|
3
|
+
citationReferenceMap: import("vue").ComputedRef<import("..").RAGCitationReferenceMap>;
|
|
4
|
+
citations: import("vue").ComputedRef<import("..").RAGCitation[]>;
|
|
5
|
+
coverage: import("vue").ComputedRef<"grounded" | "partial" | "ungrounded">;
|
|
6
|
+
groundedAnswer: import("vue").ComputedRef<import("..").RAGGroundedAnswer>;
|
|
7
|
+
groundingReferences: import("vue").ComputedRef<import("..").RAGGroundingReference[]>;
|
|
8
8
|
hasGrounding: import("vue").ComputedRef<boolean>;
|
|
9
9
|
hasRetrieved: import("vue").ComputedRef<boolean>;
|
|
10
10
|
hasSources: import("vue").ComputedRef<boolean>;
|
|
@@ -17,13 +17,13 @@ export declare const useRAGWorkflow: (path: string, conversationId?: string) =>
|
|
|
17
17
|
latestAssistantMessage: import("vue").ComputedRef<import("@absolutejs/ai").AIMessage | undefined>;
|
|
18
18
|
progress: import("vue").ComputedRef<import("../presentation/presentation").RAGStreamProgress>;
|
|
19
19
|
query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
20
|
-
retrieval: import("vue").ComputedRef<import("
|
|
21
|
-
sourceGroups: import("vue").ComputedRef<import("
|
|
22
|
-
sourceSummaries: import("vue").ComputedRef<import("
|
|
20
|
+
retrieval: import("vue").ComputedRef<import("..").RAGRetrievedState | null>;
|
|
21
|
+
sourceGroups: import("vue").ComputedRef<import("..").RAGSourceGroup[]>;
|
|
22
|
+
sourceSummaries: import("vue").ComputedRef<import("..").RAGSourceSummary[]>;
|
|
23
23
|
sources: import("vue").ComputedRef<import("@absolutejs/ai").RAGSource[]>;
|
|
24
|
-
stage: import("vue").ComputedRef<import("
|
|
24
|
+
stage: import("vue").ComputedRef<import("..").RAGStreamStage>;
|
|
25
25
|
ungroundedReferenceNumbers: import("vue").ComputedRef<number[]>;
|
|
26
|
-
workflow: import("vue").ComputedRef<import("
|
|
26
|
+
workflow: import("vue").ComputedRef<import("..").RAGAnswerWorkflowState>;
|
|
27
27
|
branch: (messageId: string, content: string) => void;
|
|
28
28
|
cancel: () => void;
|
|
29
29
|
destroy: () => void;
|