@absolutejs/rag 0.0.25 → 0.0.27
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 +6 -5
- 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 +6 -5
- 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 +2 -1800
- 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 +2 -1
- 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 +1 -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 +4325 -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
|
@@ -7,86 +7,86 @@ export type UseRAGOptions = {
|
|
|
7
7
|
export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
8
8
|
chunkPreview: {
|
|
9
9
|
activeChunkId: string | null;
|
|
10
|
-
activeSectionDiagnostic: import("
|
|
11
|
-
chunkGraph: import("
|
|
10
|
+
activeSectionDiagnostic: import("..").RAGSectionRetrievalDiagnostic | null;
|
|
11
|
+
chunkGraph: import("..").RAGChunkGraph | null;
|
|
12
12
|
clear: () => void;
|
|
13
13
|
error: string | null;
|
|
14
14
|
inspect: (id: string) => Promise<{
|
|
15
15
|
ok: true;
|
|
16
|
-
} & import("
|
|
16
|
+
} & import("..").RAGDocumentChunkPreview>;
|
|
17
17
|
isLoading: boolean;
|
|
18
|
-
navigation: import("
|
|
19
|
-
preview: import("
|
|
20
|
-
sectionDiagnostics: import("
|
|
18
|
+
navigation: import("..").RAGChunkGraphNavigation | null;
|
|
19
|
+
preview: import("..").RAGDocumentChunkPreview | null;
|
|
20
|
+
sectionDiagnostics: import("..").RAGSectionRetrievalDiagnostic[];
|
|
21
21
|
selectChildSection: (sectionId: string) => void;
|
|
22
22
|
selectChunk: (id: string | null) => void;
|
|
23
23
|
selectParentSection: () => void;
|
|
24
24
|
selectSiblingSection: (sectionId: string) => void;
|
|
25
25
|
};
|
|
26
26
|
citations: {
|
|
27
|
-
citationReferenceMap: import("
|
|
28
|
-
citations: import("
|
|
27
|
+
citationReferenceMap: import("..").RAGCitationReferenceMap;
|
|
28
|
+
citations: import("..").RAGCitation[];
|
|
29
29
|
hasCitations: boolean;
|
|
30
|
-
sourceGroups: import("
|
|
31
|
-
sourceSummaries: import("
|
|
30
|
+
sourceGroups: import("..").RAGSourceGroup[];
|
|
31
|
+
sourceSummaries: import("..").RAGSourceSummary[];
|
|
32
32
|
};
|
|
33
33
|
documents: {
|
|
34
|
-
documents: import("
|
|
34
|
+
documents: import("..").RAGIndexedDocument[];
|
|
35
35
|
error: string | null;
|
|
36
36
|
isLoading: boolean;
|
|
37
|
-
lastResponse: import("
|
|
38
|
-
load: (kind?: string) => Promise<import("
|
|
37
|
+
lastResponse: import("..").RAGDocumentsResponse | null;
|
|
38
|
+
load: (kind?: string) => Promise<import("..").RAGDocumentsResponse>;
|
|
39
39
|
reset: () => void;
|
|
40
40
|
};
|
|
41
41
|
evaluate: {
|
|
42
42
|
clearRuns: () => void;
|
|
43
43
|
error: string | null;
|
|
44
|
-
evaluate: (input: import("
|
|
45
|
-
evaluateStream: (input: import("
|
|
44
|
+
evaluate: (input: import("..").RAGEvaluationInput) => Promise<import("..").RAGEvaluationResponse>;
|
|
45
|
+
evaluateStream: (input: import("..").RAGEvaluationInput, options?: {
|
|
46
46
|
onCase?: (event: {
|
|
47
47
|
caseIndex: number;
|
|
48
48
|
total: number;
|
|
49
|
-
caseResult: import("
|
|
49
|
+
caseResult: import("..").RAGEvaluationCaseResult;
|
|
50
50
|
}) => void;
|
|
51
51
|
signal?: AbortSignal;
|
|
52
|
-
}) => Promise<import("
|
|
52
|
+
}) => Promise<import("..").RAGEvaluationResponse>;
|
|
53
53
|
isEvaluating: boolean;
|
|
54
|
-
lastRequest: import("
|
|
55
|
-
lastResponse: import("
|
|
56
|
-
leaderboard: import("
|
|
54
|
+
lastRequest: import("..").RAGEvaluationInput | null;
|
|
55
|
+
lastResponse: import("..").RAGEvaluationResponse | null;
|
|
56
|
+
leaderboard: import("..").RAGEvaluationLeaderboardEntry[];
|
|
57
57
|
removeSuite: (id: string) => void;
|
|
58
58
|
reset: () => void;
|
|
59
|
-
runSuite: (suite: import("
|
|
60
|
-
caseTraceSnapshots: import("
|
|
59
|
+
runSuite: (suite: import("..").RAGEvaluationSuite, overrides?: Partial<import("..").RAGEvaluationInput>) => Promise<{
|
|
60
|
+
caseTraceSnapshots: import("..").RAGEvaluationCaseTraceSnapshot[] | undefined;
|
|
61
61
|
elapsedMs: number;
|
|
62
62
|
finishedAt: number;
|
|
63
63
|
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
64
64
|
label: string;
|
|
65
65
|
metadata: Record<string, unknown> | undefined;
|
|
66
|
-
response: import("
|
|
66
|
+
response: import("..").RAGEvaluationResponse;
|
|
67
67
|
startedAt: number;
|
|
68
68
|
suiteId: string;
|
|
69
|
-
traceSummary: import("
|
|
69
|
+
traceSummary: import("..").RAGRetrievalTraceComparisonSummary | undefined;
|
|
70
70
|
}>;
|
|
71
|
-
saveSuite: (suite: import("
|
|
71
|
+
saveSuite: (suite: import("..").RAGEvaluationSuite) => import("..").RAGEvaluationSuite;
|
|
72
72
|
streamProgress: {
|
|
73
73
|
done: number;
|
|
74
74
|
total: number;
|
|
75
75
|
} | null;
|
|
76
|
-
suiteRuns: import("
|
|
77
|
-
suites: import("
|
|
76
|
+
suiteRuns: import("..").RAGEvaluationSuiteRun[];
|
|
77
|
+
suites: import("..").RAGEvaluationSuite[];
|
|
78
78
|
};
|
|
79
79
|
grounding: {
|
|
80
|
-
coverage: "
|
|
81
|
-
groundedAnswer: import("
|
|
80
|
+
coverage: "grounded" | "partial" | "ungrounded";
|
|
81
|
+
groundedAnswer: import("..").RAGGroundedAnswer;
|
|
82
82
|
hasCitations: boolean;
|
|
83
83
|
hasGrounding: boolean;
|
|
84
|
-
references: import("
|
|
84
|
+
references: import("..").RAGGroundingReference[];
|
|
85
85
|
ungroundedReferenceNumbers: number[];
|
|
86
86
|
};
|
|
87
87
|
index: {
|
|
88
|
-
backends: import("
|
|
89
|
-
analyzeBackend: () => Promise<import("
|
|
88
|
+
backends: import("..").RAGBackendsResponse | null;
|
|
89
|
+
analyzeBackend: () => Promise<import("..").RAGMutationResponse>;
|
|
90
90
|
clearIndex: () => Promise<{
|
|
91
91
|
ok: boolean;
|
|
92
92
|
}>;
|
|
@@ -95,7 +95,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
95
95
|
title?: string;
|
|
96
96
|
source?: string;
|
|
97
97
|
text: string;
|
|
98
|
-
format?: import("
|
|
98
|
+
format?: import("..").RAGContentFormat;
|
|
99
99
|
metadata?: Record<string, unknown>;
|
|
100
100
|
chunking?: {
|
|
101
101
|
maxChunkLength?: number;
|
|
@@ -103,151 +103,151 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
103
103
|
minChunkLength?: number;
|
|
104
104
|
strategy?: "paragraphs" | "sentences" | "fixed" | "source_aware";
|
|
105
105
|
};
|
|
106
|
-
}) => Promise<import("
|
|
107
|
-
deleteDocument: (id: string) => Promise<import("
|
|
106
|
+
}) => Promise<import("..").RAGMutationResponse>;
|
|
107
|
+
deleteDocument: (id: string) => Promise<import("..").RAGMutationResponse>;
|
|
108
108
|
error: string | null;
|
|
109
109
|
isLoading: boolean;
|
|
110
|
-
lastMutation: import("
|
|
111
|
-
loadBackends: () => Promise<import("
|
|
112
|
-
loadSyncSources: () => Promise<import("
|
|
113
|
-
rebuildNativeIndex: () => Promise<import("
|
|
114
|
-
reindexDocument: (id: string) => Promise<import("
|
|
115
|
-
reindexSource: (source: string) => Promise<import("
|
|
116
|
-
reseed: () => Promise<import("
|
|
117
|
-
reset: () => Promise<import("
|
|
110
|
+
lastMutation: import("..").RAGMutationResponse | null;
|
|
111
|
+
loadBackends: () => Promise<import("..").RAGBackendsResponse>;
|
|
112
|
+
loadSyncSources: () => Promise<import("..").RAGSyncResponse>;
|
|
113
|
+
rebuildNativeIndex: () => Promise<import("..").RAGMutationResponse>;
|
|
114
|
+
reindexDocument: (id: string) => Promise<import("..").RAGMutationResponse>;
|
|
115
|
+
reindexSource: (source: string) => Promise<import("..").RAGMutationResponse>;
|
|
116
|
+
reseed: () => Promise<import("..").RAGMutationResponse>;
|
|
117
|
+
reset: () => Promise<import("..").RAGMutationResponse>;
|
|
118
118
|
resetState: () => void;
|
|
119
|
-
syncAllSources: (options?: import("
|
|
119
|
+
syncAllSources: (options?: import("..").RAGSyncRunOptions) => Promise<{
|
|
120
120
|
ok: true;
|
|
121
|
-
source: import("
|
|
121
|
+
source: import("..").RAGSyncSourceRecord;
|
|
122
122
|
partial?: boolean;
|
|
123
123
|
} | {
|
|
124
124
|
ok: true;
|
|
125
|
-
sources: import("
|
|
125
|
+
sources: import("..").RAGSyncSourceRecord[];
|
|
126
126
|
partial?: boolean;
|
|
127
127
|
failedSourceIds?: string[];
|
|
128
128
|
errorsBySource?: Record<string, string>;
|
|
129
129
|
}>;
|
|
130
|
-
syncSource: (id: string, options?: import("
|
|
130
|
+
syncSource: (id: string, options?: import("..").RAGSyncRunOptions) => Promise<{
|
|
131
131
|
ok: true;
|
|
132
|
-
source: import("
|
|
132
|
+
source: import("..").RAGSyncSourceRecord;
|
|
133
133
|
partial?: boolean;
|
|
134
134
|
} | {
|
|
135
135
|
ok: true;
|
|
136
|
-
sources: import("
|
|
136
|
+
sources: import("..").RAGSyncSourceRecord[];
|
|
137
137
|
partial?: boolean;
|
|
138
138
|
failedSourceIds?: string[];
|
|
139
139
|
errorsBySource?: Record<string, string>;
|
|
140
140
|
}>;
|
|
141
|
-
syncSources: import("
|
|
141
|
+
syncSources: import("..").RAGSyncResponse | null;
|
|
142
142
|
};
|
|
143
143
|
ingest: {
|
|
144
144
|
clearIndex: () => Promise<void>;
|
|
145
145
|
error: string | null;
|
|
146
|
-
ingest: (chunks: import("
|
|
147
|
-
ingestChunks: (chunks: import("
|
|
148
|
-
ingestDocuments: (input: import("
|
|
149
|
-
ingestUploads: (input: import("
|
|
150
|
-
ingestUrls: (input: import("
|
|
146
|
+
ingest: (chunks: import("..").RAGDocumentChunk[]) => Promise<import("..").RAGIngestResponse>;
|
|
147
|
+
ingestChunks: (chunks: import("..").RAGDocumentChunk[]) => Promise<import("..").RAGIngestResponse>;
|
|
148
|
+
ingestDocuments: (input: import("..").RAGDocumentIngestInput) => Promise<import("..").RAGIngestResponse>;
|
|
149
|
+
ingestUploads: (input: import("..").RAGDocumentUploadIngestInput) => Promise<import("..").RAGIngestResponse>;
|
|
150
|
+
ingestUrls: (input: import("..").RAGDocumentUrlIngestInput) => Promise<import("..").RAGIngestResponse>;
|
|
151
151
|
isIngesting: boolean;
|
|
152
152
|
lastDocumentCount: number | null;
|
|
153
153
|
lastIngestCount: number | null;
|
|
154
|
-
lastResponse: import("
|
|
154
|
+
lastResponse: import("..").RAGIngestResponse | null;
|
|
155
155
|
reset: () => void;
|
|
156
156
|
};
|
|
157
157
|
ops: {
|
|
158
|
-
admin: import("
|
|
159
|
-
adminActions: import("
|
|
160
|
-
adminJobs: import("
|
|
161
|
-
capabilities: import("
|
|
162
|
-
documents: import("
|
|
158
|
+
admin: import("..").RAGAdminCapabilities | undefined;
|
|
159
|
+
adminActions: import("..").RAGAdminActionRecord[];
|
|
160
|
+
adminJobs: import("..").RAGAdminJobRecord[];
|
|
161
|
+
capabilities: import("..").RAGBackendCapabilities | undefined;
|
|
162
|
+
documents: import("..").RAGDocumentSummary | undefined;
|
|
163
163
|
error: string | null;
|
|
164
|
-
health: import("
|
|
165
|
-
ingestJobs: import("
|
|
164
|
+
health: import("..").RAGCorpusHealth | undefined;
|
|
165
|
+
ingestJobs: import("..").RAGIngestJobRecord[];
|
|
166
166
|
isLoading: boolean;
|
|
167
|
-
maintenance: import("
|
|
168
|
-
operations: import("
|
|
169
|
-
readiness: import("
|
|
170
|
-
refresh: () => Promise<import("
|
|
167
|
+
maintenance: import("..").RAGBackendMaintenanceSummary | undefined;
|
|
168
|
+
operations: import("..").RAGOperationsResponse | undefined;
|
|
169
|
+
readiness: import("..").RAGExtractorReadiness | undefined;
|
|
170
|
+
refresh: () => Promise<import("..").RAGOperationsResponse>;
|
|
171
171
|
reset: () => void;
|
|
172
|
-
status: import("
|
|
173
|
-
syncSources: import("
|
|
172
|
+
status: import("..").RAGVectorStoreStatus | undefined;
|
|
173
|
+
syncSources: import("..").RAGSyncSourceRecord[];
|
|
174
174
|
};
|
|
175
175
|
search: {
|
|
176
176
|
error: string | null;
|
|
177
177
|
hasSearched: boolean;
|
|
178
178
|
isSearching: boolean;
|
|
179
|
-
lastRequest: import("
|
|
179
|
+
lastRequest: import("..").RAGSearchRequest | null;
|
|
180
180
|
reset: () => void;
|
|
181
181
|
results: import("@absolutejs/ai").RAGSource[];
|
|
182
182
|
search: (input: {
|
|
183
183
|
query: string;
|
|
184
|
-
|
|
184
|
+
topK?: number | undefined;
|
|
185
|
+
candidateTopK?: number | undefined;
|
|
186
|
+
nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
|
|
187
|
+
nativeQueryMultiplier?: number | undefined;
|
|
185
188
|
nativeCandidateLimit?: number | undefined;
|
|
186
189
|
nativeMaxBackfills?: number | undefined;
|
|
187
190
|
nativeMinResults?: number | undefined;
|
|
188
191
|
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
189
192
|
filter?: Record<string, unknown> | undefined;
|
|
190
|
-
queryTransform?: import("@absolutejs/ai").RAGQueryTransformProviderLike | undefined;
|
|
191
|
-
candidateTopK?: number | undefined;
|
|
192
|
-
topK?: number | undefined;
|
|
193
193
|
scoreThreshold?: number | undefined;
|
|
194
|
-
|
|
194
|
+
queryTransform?: import("..").RAGQueryTransformProviderLike | undefined;
|
|
195
|
+
retrievalStrategy?: import("..").RAGRetrievalStrategyProviderLike | undefined;
|
|
196
|
+
retrieval?: (import("..").RAGHybridSearchOptions | import("@absolutejs/ai").RAGHybridRetrievalMode) | undefined;
|
|
195
197
|
model?: string | undefined;
|
|
196
|
-
nativeQueryMultiplier?: number | undefined;
|
|
197
198
|
persistTrace?: boolean | undefined;
|
|
198
199
|
traceGroupKey?: string | undefined;
|
|
199
200
|
traceTags?: string[] | undefined;
|
|
200
|
-
retrievalStrategy?: import("@absolutejs/ai").RAGRetrievalStrategyProviderLike | undefined;
|
|
201
201
|
}) => Promise<import("@absolutejs/ai").RAGSource[]>;
|
|
202
202
|
searchWithTrace: (input: {
|
|
203
203
|
query: string;
|
|
204
|
-
|
|
204
|
+
topK?: number | undefined;
|
|
205
|
+
candidateTopK?: number | undefined;
|
|
206
|
+
nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
|
|
207
|
+
nativeQueryMultiplier?: number | undefined;
|
|
205
208
|
nativeCandidateLimit?: number | undefined;
|
|
206
209
|
nativeMaxBackfills?: number | undefined;
|
|
207
210
|
nativeMinResults?: number | undefined;
|
|
208
211
|
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
209
212
|
filter?: Record<string, unknown> | undefined;
|
|
210
|
-
queryTransform?: import("@absolutejs/ai").RAGQueryTransformProviderLike | undefined;
|
|
211
|
-
candidateTopK?: number | undefined;
|
|
212
|
-
topK?: number | undefined;
|
|
213
213
|
scoreThreshold?: number | undefined;
|
|
214
|
-
|
|
214
|
+
queryTransform?: import("..").RAGQueryTransformProviderLike | undefined;
|
|
215
|
+
retrievalStrategy?: import("..").RAGRetrievalStrategyProviderLike | undefined;
|
|
216
|
+
retrieval?: (import("..").RAGHybridSearchOptions | import("@absolutejs/ai").RAGHybridRetrievalMode) | undefined;
|
|
215
217
|
model?: string | undefined;
|
|
216
|
-
nativeQueryMultiplier?: number | undefined;
|
|
217
218
|
persistTrace?: boolean | undefined;
|
|
218
219
|
traceGroupKey?: string | undefined;
|
|
219
220
|
traceTags?: string[] | undefined;
|
|
220
|
-
retrievalStrategy?: import("@absolutejs/ai").RAGRetrievalStrategyProviderLike | undefined;
|
|
221
221
|
}) => Promise<import("../client").RAGDetailedSearchResponse>;
|
|
222
222
|
setResults: import("react").Dispatch<import("react").SetStateAction<import("@absolutejs/ai").RAGSource[]>>;
|
|
223
223
|
trace: import("@absolutejs/ai").RAGRetrievalTrace | undefined;
|
|
224
224
|
};
|
|
225
225
|
sources: {
|
|
226
|
-
citationReferenceMap: import("
|
|
227
|
-
chunkGraph: import("
|
|
226
|
+
citationReferenceMap: import("..").RAGCitationReferenceMap;
|
|
227
|
+
chunkGraph: import("..").RAGChunkGraph;
|
|
228
228
|
hasSources: boolean;
|
|
229
229
|
latestAssistantMessage: import("@absolutejs/ai").AIMessage | undefined;
|
|
230
|
-
navigationForChunk: (chunkId?: string | null) => import("
|
|
231
|
-
sectionDiagnostics: import("
|
|
232
|
-
sourceGroups: import("
|
|
230
|
+
navigationForChunk: (chunkId?: string | null) => import("..").RAGChunkGraphNavigation;
|
|
231
|
+
sectionDiagnostics: import("..").RAGSectionRetrievalDiagnostic[];
|
|
232
|
+
sourceGroups: import("..").RAGSourceGroup[];
|
|
233
233
|
sources: import("@absolutejs/ai").RAGSource[];
|
|
234
|
-
sourceSummaries: import("
|
|
234
|
+
sourceSummaries: import("..").RAGSourceSummary[];
|
|
235
235
|
};
|
|
236
236
|
status: {
|
|
237
|
-
capabilities: import("
|
|
237
|
+
capabilities: import("..").RAGBackendCapabilities | undefined;
|
|
238
238
|
error: string | null;
|
|
239
239
|
isLoading: boolean;
|
|
240
|
-
refresh: () => Promise<import("
|
|
240
|
+
refresh: () => Promise<import("..").RAGStatusResponse>;
|
|
241
241
|
reset: () => void;
|
|
242
|
-
status: import("
|
|
242
|
+
status: import("..").RAGVectorStoreStatus | undefined;
|
|
243
243
|
};
|
|
244
244
|
stream: {
|
|
245
|
-
state: import("
|
|
246
|
-
citationReferenceMap: import("
|
|
247
|
-
citations: import("
|
|
248
|
-
coverage: "
|
|
249
|
-
groundedAnswer: import("
|
|
250
|
-
groundingReferences: import("
|
|
245
|
+
state: import("..").RAGAnswerWorkflowState;
|
|
246
|
+
citationReferenceMap: import("..").RAGCitationReferenceMap;
|
|
247
|
+
citations: import("..").RAGCitation[];
|
|
248
|
+
coverage: "grounded" | "partial" | "ungrounded";
|
|
249
|
+
groundedAnswer: import("..").RAGGroundedAnswer;
|
|
250
|
+
groundingReferences: import("..").RAGGroundingReference[];
|
|
251
251
|
hasGrounding: boolean;
|
|
252
252
|
hasRetrieved: boolean;
|
|
253
253
|
hasSources: boolean;
|
|
@@ -278,16 +278,16 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
278
278
|
retrievalStartedAt: number | undefined;
|
|
279
279
|
retrievedAt: number | undefined;
|
|
280
280
|
sourceCount: number;
|
|
281
|
-
stage: import("
|
|
281
|
+
stage: import("..").RAGStreamStage;
|
|
282
282
|
};
|
|
283
283
|
query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
284
|
-
retrieval: import("
|
|
285
|
-
sourceGroups: import("
|
|
286
|
-
sourceSummaries: import("
|
|
284
|
+
retrieval: import("..").RAGRetrievedState | null;
|
|
285
|
+
sourceGroups: import("..").RAGSourceGroup[];
|
|
286
|
+
sourceSummaries: import("..").RAGSourceSummary[];
|
|
287
287
|
sources: import("@absolutejs/ai").RAGSource[];
|
|
288
|
-
stage: import("
|
|
288
|
+
stage: import("..").RAGStreamStage;
|
|
289
289
|
ungroundedReferenceNumbers: number[];
|
|
290
|
-
workflow: import("
|
|
290
|
+
workflow: import("..").RAGAnswerWorkflowState;
|
|
291
291
|
branch: (messageId: string, content: string) => void;
|
|
292
292
|
cancel: () => void;
|
|
293
293
|
error: string | null;
|
|
@@ -296,12 +296,12 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
296
296
|
send: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
297
297
|
};
|
|
298
298
|
workflow: {
|
|
299
|
-
state: import("
|
|
300
|
-
citationReferenceMap: import("
|
|
301
|
-
citations: import("
|
|
302
|
-
coverage: "
|
|
303
|
-
groundedAnswer: import("
|
|
304
|
-
groundingReferences: import("
|
|
299
|
+
state: import("..").RAGAnswerWorkflowState;
|
|
300
|
+
citationReferenceMap: import("..").RAGCitationReferenceMap;
|
|
301
|
+
citations: import("..").RAGCitation[];
|
|
302
|
+
coverage: "grounded" | "partial" | "ungrounded";
|
|
303
|
+
groundedAnswer: import("..").RAGGroundedAnswer;
|
|
304
|
+
groundingReferences: import("..").RAGGroundingReference[];
|
|
305
305
|
hasGrounding: boolean;
|
|
306
306
|
hasRetrieved: boolean;
|
|
307
307
|
hasSources: boolean;
|
|
@@ -332,16 +332,16 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
332
332
|
retrievalStartedAt: number | undefined;
|
|
333
333
|
retrievedAt: number | undefined;
|
|
334
334
|
sourceCount: number;
|
|
335
|
-
stage: import("
|
|
335
|
+
stage: import("..").RAGStreamStage;
|
|
336
336
|
};
|
|
337
337
|
query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
338
|
-
retrieval: import("
|
|
339
|
-
sourceGroups: import("
|
|
340
|
-
sourceSummaries: import("
|
|
338
|
+
retrieval: import("..").RAGRetrievedState | null;
|
|
339
|
+
sourceGroups: import("..").RAGSourceGroup[];
|
|
340
|
+
sourceSummaries: import("..").RAGSourceSummary[];
|
|
341
341
|
sources: import("@absolutejs/ai").RAGSource[];
|
|
342
|
-
stage: import("
|
|
342
|
+
stage: import("..").RAGStreamStage;
|
|
343
343
|
ungroundedReferenceNumbers: number[];
|
|
344
|
-
workflow: import("
|
|
344
|
+
workflow: import("..").RAGAnswerWorkflowState;
|
|
345
345
|
branch: (messageId: string, content: string) => void;
|
|
346
346
|
cancel: () => void;
|
|
347
347
|
error: string | null;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { RAGDocumentChunkPreview } from "
|
|
1
|
+
import type { RAGDocumentChunkPreview } from "../../types/engine";
|
|
2
2
|
export declare const useRAGChunkPreview: (path: string) => {
|
|
3
3
|
activeChunkId: string | null;
|
|
4
|
-
activeSectionDiagnostic: import("
|
|
5
|
-
chunkGraph: import("
|
|
4
|
+
activeSectionDiagnostic: import("..").RAGSectionRetrievalDiagnostic | null;
|
|
5
|
+
chunkGraph: import("..").RAGChunkGraph | null;
|
|
6
6
|
clear: () => void;
|
|
7
7
|
error: string | null;
|
|
8
8
|
inspect: (id: string) => Promise<{
|
|
9
9
|
ok: true;
|
|
10
10
|
} & RAGDocumentChunkPreview>;
|
|
11
11
|
isLoading: boolean;
|
|
12
|
-
navigation: import("
|
|
12
|
+
navigation: import("..").RAGChunkGraphNavigation | null;
|
|
13
13
|
preview: RAGDocumentChunkPreview | null;
|
|
14
|
-
sectionDiagnostics: import("
|
|
14
|
+
sectionDiagnostics: import("..").RAGSectionRetrievalDiagnostic[];
|
|
15
15
|
selectChildSection: (sectionId: string) => void;
|
|
16
16
|
selectChunk: (id: string | null) => void;
|
|
17
17
|
selectParentSection: () => void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { RAGSource } from "@absolutejs/ai";
|
|
2
2
|
export declare const useRAGCitations: (sources: RAGSource[]) => {
|
|
3
|
-
citationReferenceMap: import("
|
|
4
|
-
citations: import("
|
|
3
|
+
citationReferenceMap: import("..").RAGCitationReferenceMap;
|
|
4
|
+
citations: import("..").RAGCitation[];
|
|
5
5
|
hasCitations: boolean;
|
|
6
|
-
sourceGroups: import("
|
|
7
|
-
sourceSummaries: import("
|
|
6
|
+
sourceGroups: import("..").RAGSourceGroup[];
|
|
7
|
+
sourceSummaries: import("..").RAGSourceSummary[];
|
|
8
8
|
};
|
|
9
9
|
export type UseRAGCitationsResult = ReturnType<typeof useRAGCitations>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RAGDocumentsResponse, RAGIndexedDocument } from "
|
|
1
|
+
import type { RAGDocumentsResponse, RAGIndexedDocument } from "../../types/engine";
|
|
2
2
|
export declare const useRAGDocuments: (path: string) => {
|
|
3
3
|
documents: RAGIndexedDocument[];
|
|
4
4
|
error: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RAGEvaluationCaseResult, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSuite, RAGEvaluationSuiteRun } from "
|
|
1
|
+
import type { RAGEvaluationCaseResult, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSuite, RAGEvaluationSuiteRun } from "../../types/engine";
|
|
2
2
|
export declare const useRAGEvaluate: (path: string) => {
|
|
3
3
|
clearRuns: () => void;
|
|
4
4
|
error: string | null;
|
|
@@ -14,11 +14,11 @@ export declare const useRAGEvaluate: (path: string) => {
|
|
|
14
14
|
isEvaluating: boolean;
|
|
15
15
|
lastRequest: RAGEvaluationInput | null;
|
|
16
16
|
lastResponse: RAGEvaluationResponse | null;
|
|
17
|
-
leaderboard: import("
|
|
17
|
+
leaderboard: import("..").RAGEvaluationLeaderboardEntry[];
|
|
18
18
|
removeSuite: (id: string) => void;
|
|
19
19
|
reset: () => void;
|
|
20
20
|
runSuite: (suite: RAGEvaluationSuite, overrides?: Partial<RAGEvaluationInput>) => Promise<{
|
|
21
|
-
caseTraceSnapshots: import("
|
|
21
|
+
caseTraceSnapshots: import("..").RAGEvaluationCaseTraceSnapshot[] | undefined;
|
|
22
22
|
elapsedMs: number;
|
|
23
23
|
finishedAt: number;
|
|
24
24
|
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
@@ -27,7 +27,7 @@ export declare const useRAGEvaluate: (path: string) => {
|
|
|
27
27
|
response: RAGEvaluationResponse;
|
|
28
28
|
startedAt: number;
|
|
29
29
|
suiteId: string;
|
|
30
|
-
traceSummary: import("
|
|
30
|
+
traceSummary: import("..").RAGRetrievalTraceComparisonSummary | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
saveSuite: (suite: RAGEvaluationSuite) => RAGEvaluationSuite;
|
|
33
33
|
streamProgress: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { RAGSource } from "@absolutejs/ai";
|
|
2
2
|
export declare const useRAGGrounding: (content: string, sources: RAGSource[]) => {
|
|
3
|
-
coverage: "
|
|
4
|
-
groundedAnswer: import("
|
|
3
|
+
coverage: "grounded" | "partial" | "ungrounded";
|
|
4
|
+
groundedAnswer: import("..").RAGGroundedAnswer;
|
|
5
5
|
hasCitations: boolean;
|
|
6
6
|
hasGrounding: boolean;
|
|
7
|
-
references: import("
|
|
7
|
+
references: import("..").RAGGroundingReference[];
|
|
8
8
|
ungroundedReferenceNumbers: number[];
|
|
9
9
|
};
|
|
10
10
|
export type UseRAGGroundingResult = ReturnType<typeof useRAGGrounding>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RAGBackendsResponse, RAGContentFormat, RAGMutationResponse, RAGSyncResponse, RAGSyncRunOptions } from "
|
|
1
|
+
import type { RAGBackendsResponse, RAGContentFormat, RAGMutationResponse, RAGSyncResponse, RAGSyncRunOptions } from "../../types/engine";
|
|
2
2
|
export declare const useRAGIndexAdmin: (path: string) => {
|
|
3
3
|
backends: RAGBackendsResponse | null;
|
|
4
4
|
analyzeBackend: () => Promise<RAGMutationResponse>;
|
|
@@ -33,22 +33,22 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
33
33
|
resetState: () => void;
|
|
34
34
|
syncAllSources: (options?: RAGSyncRunOptions) => Promise<{
|
|
35
35
|
ok: true;
|
|
36
|
-
source: import("
|
|
36
|
+
source: import("..").RAGSyncSourceRecord;
|
|
37
37
|
partial?: boolean;
|
|
38
38
|
} | {
|
|
39
39
|
ok: true;
|
|
40
|
-
sources: import("
|
|
40
|
+
sources: import("..").RAGSyncSourceRecord[];
|
|
41
41
|
partial?: boolean;
|
|
42
42
|
failedSourceIds?: string[];
|
|
43
43
|
errorsBySource?: Record<string, string>;
|
|
44
44
|
}>;
|
|
45
45
|
syncSource: (id: string, options?: RAGSyncRunOptions) => Promise<{
|
|
46
46
|
ok: true;
|
|
47
|
-
source: import("
|
|
47
|
+
source: import("..").RAGSyncSourceRecord;
|
|
48
48
|
partial?: boolean;
|
|
49
49
|
} | {
|
|
50
50
|
ok: true;
|
|
51
|
-
sources: import("
|
|
51
|
+
sources: import("..").RAGSyncSourceRecord[];
|
|
52
52
|
partial?: boolean;
|
|
53
53
|
failedSourceIds?: string[];
|
|
54
54
|
errorsBySource?: Record<string, string>;
|
|
@@ -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<void>;
|
|
4
4
|
error: string | null;
|
|
@@ -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: RAGAdminCapabilities | undefined;
|
|
4
4
|
adminActions: RAGAdminActionRecord[];
|
|
@@ -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) => {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { AIMessage } from "@absolutejs/ai";
|
|
2
2
|
export declare const useRAGSources: (messages: AIMessage[]) => {
|
|
3
|
-
citationReferenceMap: import("
|
|
4
|
-
chunkGraph: import("
|
|
3
|
+
citationReferenceMap: import("..").RAGCitationReferenceMap;
|
|
4
|
+
chunkGraph: import("..").RAGChunkGraph;
|
|
5
5
|
hasSources: boolean;
|
|
6
6
|
latestAssistantMessage: AIMessage | undefined;
|
|
7
|
-
navigationForChunk: (chunkId?: string | null) => import("
|
|
8
|
-
sectionDiagnostics: import("
|
|
9
|
-
sourceGroups: import("
|
|
7
|
+
navigationForChunk: (chunkId?: string | null) => import("..").RAGChunkGraphNavigation;
|
|
8
|
+
sectionDiagnostics: import("..").RAGSectionRetrievalDiagnostic[];
|
|
9
|
+
sourceGroups: import("..").RAGSourceGroup[];
|
|
10
10
|
sources: import("@absolutejs/ai").RAGSource[];
|
|
11
|
-
sourceSummaries: import("
|
|
11
|
+
sourceSummaries: import("..").RAGSourceSummary[];
|
|
12
12
|
};
|
|
13
13
|
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: RAGBackendCapabilities | undefined;
|
|
4
4
|
error: string | null;
|
|
5
5
|
isLoading: boolean;
|
|
6
|
-
refresh: () => Promise<import("
|
|
6
|
+
refresh: () => Promise<import("..").RAGStatusResponse>;
|
|
7
7
|
reset: () => void;
|
|
8
8
|
status: RAGVectorStoreStatus | undefined;
|
|
9
9
|
};
|