@absolutejs/absolute 0.19.0-beta.497 → 0.19.0-beta.498
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 +32 -1
- package/dist/ai/client/index.js.map +3 -3
- package/dist/ai/index.js +376 -10
- package/dist/ai/index.js.map +7 -6
- package/dist/ai-client/angular/ai/index.js +40 -0
- package/dist/ai-client/react/ai/index.js +64 -2
- package/dist/ai-client/vue/ai/index.js +64 -2
- package/dist/angular/ai/index.js +41 -1
- package/dist/angular/ai/index.js.map +4 -4
- package/dist/react/ai/index.js +65 -3
- package/dist/react/ai/index.js.map +5 -5
- package/dist/src/ai/client/ragClient.d.ts +4 -1
- package/dist/src/ai/index.d.ts +2 -2
- package/dist/src/ai/rag/chat.d.ts +59 -4
- package/dist/src/ai/rag/index.d.ts +2 -1
- package/dist/src/ai/rag/sync.d.ts +4 -0
- package/dist/src/ai/rag/types.d.ts +1 -1
- package/dist/src/angular/ai/rag-client.service.d.ts +3 -0
- package/dist/src/react/ai/useRAG.d.ts +17 -0
- package/dist/src/react/ai/useRAGIndexAdmin.d.ts +17 -1
- package/dist/src/react/ai/useRAGOps.d.ts +2 -1
- package/dist/src/svelte/ai/createRAG.d.ts +17 -0
- package/dist/src/svelte/ai/createRAGIndexAdmin.d.ts +17 -1
- package/dist/src/svelte/ai/createRAGOps.d.ts +2 -1
- package/dist/src/vue/ai/useRAG.d.ts +119 -4
- package/dist/src/vue/ai/useRAGIndexAdmin.d.ts +87 -1
- package/dist/src/vue/ai/useRAGOps.d.ts +34 -5
- package/dist/svelte/ai/index.js +65 -3
- package/dist/svelte/ai/index.js.map +5 -5
- package/dist/types/ai.d.ts +85 -2
- package/dist/vue/ai/index.js +65 -3
- package/dist/vue/ai/index.js.map +5 -5
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Elysia } from 'elysia';
|
|
2
|
-
import type { AIMessage, RAGEvaluationResponse, RAGBackendsResponse, RAGDocumentChunksResponse, RAGDocumentsResponse, RAGChatPluginConfig, RAGMutationResponse, RAGOperationsResponse, RAGSource } from '../../../types/ai';
|
|
2
|
+
import type { AIMessage, RAGEvaluationResponse, RAGBackendsResponse, RAGDocumentChunksResponse, RAGDocumentsResponse, RAGChatPluginConfig, RAGMutationResponse, RAGOperationsResponse, RAGSyncResponse, RAGSource } from '../../../types/ai';
|
|
3
3
|
export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {};
|
|
@@ -167,6 +167,61 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
167
167
|
};
|
|
168
168
|
};
|
|
169
169
|
};
|
|
170
|
+
} & {
|
|
171
|
+
[x: string]: {
|
|
172
|
+
sync: {
|
|
173
|
+
get: {
|
|
174
|
+
body: unknown;
|
|
175
|
+
params: {};
|
|
176
|
+
query: unknown;
|
|
177
|
+
headers: unknown;
|
|
178
|
+
response: {
|
|
179
|
+
200: Response | RAGSyncResponse;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
} & {
|
|
185
|
+
[x: string]: {
|
|
186
|
+
sync: {
|
|
187
|
+
post: {
|
|
188
|
+
body: unknown;
|
|
189
|
+
params: {};
|
|
190
|
+
query: unknown;
|
|
191
|
+
headers: unknown;
|
|
192
|
+
response: {
|
|
193
|
+
200: Response | RAGSyncResponse;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
} & ({
|
|
199
|
+
[x: string]: {
|
|
200
|
+
sync: {
|
|
201
|
+
":id": {
|
|
202
|
+
post: {
|
|
203
|
+
body: unknown;
|
|
204
|
+
params: {
|
|
205
|
+
id: string;
|
|
206
|
+
} & {};
|
|
207
|
+
query: unknown;
|
|
208
|
+
headers: unknown;
|
|
209
|
+
response: {
|
|
210
|
+
200: Response | RAGSyncResponse;
|
|
211
|
+
422: {
|
|
212
|
+
type: "validation";
|
|
213
|
+
on: string;
|
|
214
|
+
summary?: string;
|
|
215
|
+
message?: string;
|
|
216
|
+
found?: unknown;
|
|
217
|
+
property?: string;
|
|
218
|
+
expected?: string;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
};
|
|
170
225
|
} & {
|
|
171
226
|
[x: string]: {
|
|
172
227
|
ingest: {
|
|
@@ -186,7 +241,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
186
241
|
};
|
|
187
242
|
};
|
|
188
243
|
};
|
|
189
|
-
} &
|
|
244
|
+
} & {
|
|
190
245
|
[x: string]: {
|
|
191
246
|
index: {
|
|
192
247
|
delete: {
|
|
@@ -274,7 +329,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
274
329
|
};
|
|
275
330
|
};
|
|
276
331
|
};
|
|
277
|
-
} & {
|
|
332
|
+
} & ({
|
|
278
333
|
[x: string]: {
|
|
279
334
|
reseed: {
|
|
280
335
|
post: {
|
|
@@ -288,7 +343,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
288
343
|
};
|
|
289
344
|
};
|
|
290
345
|
};
|
|
291
|
-
} &
|
|
346
|
+
} & {
|
|
292
347
|
[x: string]: {
|
|
293
348
|
reset: {
|
|
294
349
|
post: {
|
|
@@ -9,6 +9,7 @@ export { anthropicOCR, geminiOCR, ollamaOCR, ollamaTranscriber, openaiCompatible
|
|
|
9
9
|
export { buildRAGUpsertInputFromDirectory, buildRAGUpsertInputFromDocuments, buildRAGUpsertInputFromUploads, createBuiltinArchiveExpander, createEmailExtractor, createEPUBExtractor, createLegacyDocumentExtractor, createRAGPDFOCRExtractor, createRAGArchiveExpander, createRAGArchiveFileExtractor, createOfficeDocumentExtractor, createPDFFileExtractor, createRAGFileExtractor, createRAGImageOCRExtractor, createRAGMediaFileExtractor, createRAGMediaTranscriber, createRAGOCRProvider, createTextFileExtractor, loadRAGDocumentFromURL, loadRAGDocumentUpload, loadRAGDocumentsFromUploads, buildRAGUpsertInputFromURLs, loadRAGDocumentFile, loadRAGDocumentsFromDirectory, loadRAGDocumentsFromURLs, prepareRAGDirectoryDocuments, prepareRAGDocument, prepareRAGDocumentFile, prepareRAGDocuments } from './ingestion';
|
|
10
10
|
export { buildRAGAnswerWorkflowState, buildRAGCitations, buildRAGCitationReferenceMap, buildRAGGroundedAnswer, buildRAGGroundingReferences, buildRAGSourceGroups, buildRAGSourceSummaries, buildRAGStreamProgress as buildRAGTransportProgress, getLatestAssistantMessage, getLatestRAGSources, resolveRAGStreamStage } from './presentation';
|
|
11
11
|
export { buildRAGEvaluationLeaderboard, buildRAGEvaluationResponse, compareRAGRetrievalStrategies, compareRAGRerankers, createRAGEvaluationSuite, evaluateRAGCollection, executeDryRunRAGEvaluation, runRAGEvaluationSuite, summarizeRAGEvaluationCase, summarizeRAGRerankerComparison } from './quality';
|
|
12
|
+
export { createRAGDirectorySyncSource, createRAGSyncManager, createRAGUrlSyncSource } from './sync';
|
|
12
13
|
export type { RAGStreamProgress as RAGTransportProgress, RAGStreamProgressState as RAGTransportProgressState } from './presentation';
|
|
13
14
|
export { createRAGCollection, ingestDocuments, ingestRAGDocuments, searchDocuments } from './collection';
|
|
14
15
|
export { createInMemoryRAGStore } from './adapters/inMemory';
|
|
@@ -18,5 +19,5 @@ export { createRAGVector, normalizeVector, querySimilarity } from './adapters/ut
|
|
|
18
19
|
export type { GeminiEmbeddingsConfig, OllamaEmbeddingsConfig, OpenAICompatibleEmbeddingsConfig, OpenAIEmbeddingsConfig } from './embeddingProviders';
|
|
19
20
|
export type { AnthropicOCRConfig, GeminiOCRConfig, OllamaOCRConfig, OllamaTranscriptionConfig, OpenAICompatibleOCRConfig, OpenAICompatibleTranscriptionConfig, OpenAIOCRConfig, OpenAITranscriptionConfig } from './extractorProviders';
|
|
20
21
|
export type { NativeSQLiteRAGStoreOptions, SQLiteRAGStoreOptions } from './adapters/sqlite';
|
|
21
|
-
export type { AIHTMXRenderConfig, RAGAnswerWorkflowState, RAGBackendCapabilities, RAGCitation, RAGCitationReferenceMap, RAGGroundedAnswer, RAGGroundedAnswerPart, RAGGroundingReference, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGArchiveEntry, RAGArchiveExpander, RAGArchiveExpansionResult, RAGExtractedFileDocument, RAGFileExtractionInput, RAGFileExtractor, RAGPDFOCRExtractorOptions, RAGDocumentFileInput, RAGDirectoryIngestInput, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUploadInput, RAGDocumentUrlIngestInput, RAGDocumentUrlInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGEvaluationCase, RAGEvaluationCaseResult, RAGEvaluationLeaderboardEntry, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSummary, RAGEvaluationSuite, RAGEvaluationSuiteRun, RAGRetrievalCandidate, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalComparisonSummary, RAGHTMXConfig, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIngestResponse, RAGIndexedDocument, RAGHybridFusionMode, RAGHybridRetrievalMode, RAGHybridSearchOptions, RAGMediaTranscriber, RAGMediaTranscriptSegment, RAGMediaTranscriptionResult, RAGMutationResponse, RAGLexicalQueryInput, RAGOCRProvider, RAGOCRResult, RAGQueryInput, RAGQueryResult, RAGQueryTransformInput, RAGQueryTransformProvider, RAGQueryTransformProviderLike, RAGQueryTransformResult, RAGQueryTransformer, RAGPreparedDocument, RAGReranker, RAGRerankerCandidate, RAGRerankerComparison, RAGRerankerComparisonEntry, RAGRerankerComparisonSummary, RAGRerankerInput, RAGRerankerProvider, RAGRerankerProviderLike, RAGSearchRequest, RAGSource, RAGSourceGroup, RAGSourceSummary, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from './types';
|
|
22
|
+
export type { AIHTMXRenderConfig, RAGAnswerWorkflowState, RAGBackendCapabilities, RAGCitation, RAGCitationReferenceMap, RAGGroundedAnswer, RAGGroundedAnswerPart, RAGGroundingReference, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGArchiveEntry, RAGArchiveExpander, RAGArchiveExpansionResult, RAGExtractedFileDocument, RAGFileExtractionInput, RAGFileExtractor, RAGPDFOCRExtractorOptions, RAGDocumentFileInput, RAGDirectoryIngestInput, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUploadInput, RAGDocumentUrlIngestInput, RAGDocumentUrlInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGEvaluationCase, RAGEvaluationCaseResult, RAGEvaluationLeaderboardEntry, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSummary, RAGEvaluationSuite, RAGEvaluationSuiteRun, RAGRetrievalCandidate, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalComparisonSummary, RAGHTMXConfig, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIngestResponse, RAGIndexedDocument, RAGHybridFusionMode, RAGHybridRetrievalMode, RAGHybridSearchOptions, RAGMediaTranscriber, RAGMediaTranscriptSegment, RAGMediaTranscriptionResult, RAGMutationResponse, RAGLexicalQueryInput, RAGOCRProvider, RAGOCRResult, RAGQueryInput, RAGQueryResult, RAGQueryTransformInput, RAGQueryTransformProvider, RAGQueryTransformProviderLike, RAGQueryTransformResult, RAGQueryTransformer, RAGPreparedDocument, RAGReranker, RAGRerankerCandidate, RAGRerankerComparison, RAGRerankerComparisonEntry, RAGRerankerComparisonSummary, RAGRerankerInput, RAGRerankerProvider, RAGRerankerProviderLike, RAGSearchRequest, RAGSyncManager, RAGSyncResponse, RAGSyncSourceContext, RAGSyncSourceDefinition, RAGSyncSourceRecord, RAGSyncSourceRunResult, RAGDirectorySyncSourceOptions, RAGUrlSyncSourceOptions, RAGSource, RAGSourceGroup, RAGSourceSummary, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from './types';
|
|
22
23
|
export type { RAGPostgresNativeDiagnostics } from '../../../types/ai';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CreateRAGSyncManagerOptions, RAGDirectorySyncSourceOptions, RAGSyncManager, RAGSyncSourceDefinition, RAGUrlSyncSourceOptions } from '../../../types/ai';
|
|
2
|
+
export declare const createRAGDirectorySyncSource: (options: RAGDirectorySyncSourceOptions) => RAGSyncSourceDefinition;
|
|
3
|
+
export declare const createRAGUrlSyncSource: (options: RAGUrlSyncSourceOptions) => RAGSyncSourceDefinition;
|
|
4
|
+
export declare const createRAGSyncManager: (options: CreateRAGSyncManagerOptions) => RAGSyncManager;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RAGDocumentChunk, RAGQueryInput, RAGQueryResult, RAGUpsertInput } from '../../../types/ai';
|
|
2
|
-
export type { AIHTMXRenderConfig, RAGAnswerWorkflowState, RAGBackendCapabilities, RAGCitation, RAGCitationReferenceMap, RAGGroundedAnswer, RAGGroundedAnswerPart, RAGGroundingReference, RAGChunkingOptions, RAGChunkingStrategy, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGHybridFusionMode, RAGHybridRetrievalMode, RAGHybridSearchOptions, RAGDocumentChunk, RAGDocumentChunkPreview, RAGArchiveEntry, RAGArchiveExpander, RAGArchiveExpansionResult, RAGExtractedFileDocument, RAGFileExtractionInput, RAGFileExtractor, RAGPDFOCRExtractorOptions, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUploadInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGMediaTranscriber, RAGMediaTranscriptSegment, RAGMediaTranscriptionResult, RAGLexicalQueryInput, RAGDocumentUrlInput, RAGDocumentUrlIngestInput, RAGOCRProvider, RAGOCRResult, RAGPreparedDocument, RAGSource, RAGSourceGroup, RAGSourceSummary, RAGIngestResponse, RAGMutationResponse, RAGPostgresNativeDiagnostics, RAGQueryInput, RAGQueryResult, RAGQueryTransformInput, RAGQueryTransformProvider, RAGQueryTransformProviderLike, RAGQueryTransformResult, RAGQueryTransformer, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGEvaluationCase, RAGEvaluationCaseResult, RAGEvaluationLeaderboardEntry, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSummary, RAGEvaluationSuite, RAGEvaluationSuiteRun, RAGRetrievalCandidate, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalComparisonSummary, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from '../../../types/ai';
|
|
2
|
+
export type { AIHTMXRenderConfig, RAGAnswerWorkflowState, RAGBackendCapabilities, RAGCitation, RAGCitationReferenceMap, RAGGroundedAnswer, RAGGroundedAnswerPart, RAGGroundingReference, RAGChunkingOptions, RAGChunkingStrategy, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXConfig, RAGHybridFusionMode, RAGHybridRetrievalMode, RAGHybridSearchOptions, RAGDocumentChunk, RAGDocumentChunkPreview, RAGArchiveEntry, RAGArchiveExpander, RAGArchiveExpansionResult, RAGExtractedFileDocument, RAGFileExtractionInput, RAGFileExtractor, RAGPDFOCRExtractorOptions, RAGDirectoryIngestInput, RAGDirectorySyncSourceOptions, RAGDocumentFileInput, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUploadInput, RAGEmbeddingFunction, RAGEmbeddingInput, RAGEmbeddingProvider, RAGEmbeddingProviderLike, RAGBackendDescriptor, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGMediaTranscriber, RAGMediaTranscriptSegment, RAGMediaTranscriptionResult, RAGLexicalQueryInput, RAGDocumentUrlInput, RAGDocumentUrlIngestInput, RAGOCRProvider, RAGOCRResult, RAGPreparedDocument, RAGSource, RAGSourceGroup, RAGSourceSummary, RAGIngestResponse, RAGMutationResponse, RAGPostgresNativeDiagnostics, RAGQueryInput, RAGQueryResult, RAGQueryTransformInput, RAGQueryTransformProvider, RAGQueryTransformProviderLike, RAGQueryTransformResult, RAGQueryTransformer, RAGSearchRequest, RAGSyncManager, RAGSyncResponse, RAGSyncSourceContext, RAGSyncSourceDefinition, RAGSyncSourceRecord, RAGSyncSourceRunResult, RAGUrlSyncSourceOptions, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGEvaluationCase, RAGEvaluationCaseResult, RAGEvaluationLeaderboardEntry, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSummary, RAGEvaluationSuite, RAGEvaluationSuiteRun, RAGRetrievalCandidate, RAGRetrievalComparison, RAGRetrievalComparisonEntry, RAGRetrievalComparisonSummary, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from '../../../types/ai';
|
|
3
3
|
export type InternalRAGStoredChunk = RAGDocumentChunk & {
|
|
4
4
|
vector: number[];
|
|
5
5
|
sourceId: string;
|
|
@@ -10,6 +10,9 @@ export declare class RAGClientService {
|
|
|
10
10
|
evaluate(path: string, input: RAGEvaluationInput): Promise<import("../..").RAGEvaluationResponse>;
|
|
11
11
|
status(path: string): Promise<import("../..").RAGStatusResponse>;
|
|
12
12
|
ops(path: string): Promise<import("../..").RAGOperationsResponse>;
|
|
13
|
+
syncSources(path: string): Promise<import("../..").RAGSyncResponse>;
|
|
14
|
+
syncAllSources(path: string): Promise<import("../..").RAGSyncResponse>;
|
|
15
|
+
syncSource(path: string, id: string): Promise<import("../..").RAGSyncResponse>;
|
|
13
16
|
documents(path: string, kind?: string): Promise<import("../..").RAGDocumentsResponse>;
|
|
14
17
|
documentChunks(path: string, id: string): Promise<import("../..").RAGDocumentChunksResponse>;
|
|
15
18
|
createDocument(path: string, input: RAGDocumentIngestInput['documents'][number]): Promise<import("../..").RAGMutationResponse>;
|
|
@@ -90,6 +90,22 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
90
90
|
reseed: () => Promise<import("../..").RAGMutationResponse>;
|
|
91
91
|
reset: () => Promise<import("../..").RAGMutationResponse>;
|
|
92
92
|
resetState: () => void;
|
|
93
|
+
loadSyncSources: () => Promise<import("../..").RAGSyncResponse>;
|
|
94
|
+
syncAllSources: () => Promise<{
|
|
95
|
+
ok: true;
|
|
96
|
+
source: import("../..").RAGSyncSourceRecord;
|
|
97
|
+
} | {
|
|
98
|
+
ok: true;
|
|
99
|
+
sources: import("../..").RAGSyncSourceRecord[];
|
|
100
|
+
}>;
|
|
101
|
+
syncSource: (id: string) => Promise<{
|
|
102
|
+
ok: true;
|
|
103
|
+
source: import("../..").RAGSyncSourceRecord;
|
|
104
|
+
} | {
|
|
105
|
+
ok: true;
|
|
106
|
+
sources: import("../..").RAGSyncSourceRecord[];
|
|
107
|
+
}>;
|
|
108
|
+
syncSources: import("../..").RAGSyncResponse | null;
|
|
93
109
|
};
|
|
94
110
|
ingest: {
|
|
95
111
|
clearIndex: () => Promise<void>;
|
|
@@ -120,6 +136,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
120
136
|
refresh: () => Promise<import("../..").RAGOperationsResponse>;
|
|
121
137
|
reset: () => void;
|
|
122
138
|
status: import("../..").RAGVectorStoreStatus | undefined;
|
|
139
|
+
syncSources: import("../..").RAGSyncSourceRecord[];
|
|
123
140
|
};
|
|
124
141
|
search: {
|
|
125
142
|
error: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RAGBackendsResponse, RAGMutationResponse } from '../../../types/ai';
|
|
1
|
+
import type { RAGBackendsResponse, RAGMutationResponse, RAGSyncResponse } from '../../../types/ai';
|
|
2
2
|
export declare const useRAGIndexAdmin: (path: string) => {
|
|
3
3
|
backends: RAGBackendsResponse | null;
|
|
4
4
|
clearIndex: () => Promise<{
|
|
@@ -28,5 +28,21 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
28
28
|
reseed: () => Promise<RAGMutationResponse>;
|
|
29
29
|
reset: () => Promise<RAGMutationResponse>;
|
|
30
30
|
resetState: () => void;
|
|
31
|
+
loadSyncSources: () => Promise<RAGSyncResponse>;
|
|
32
|
+
syncAllSources: () => Promise<{
|
|
33
|
+
ok: true;
|
|
34
|
+
source: import("../..").RAGSyncSourceRecord;
|
|
35
|
+
} | {
|
|
36
|
+
ok: true;
|
|
37
|
+
sources: import("../..").RAGSyncSourceRecord[];
|
|
38
|
+
}>;
|
|
39
|
+
syncSource: (id: string) => Promise<{
|
|
40
|
+
ok: true;
|
|
41
|
+
source: import("../..").RAGSyncSourceRecord;
|
|
42
|
+
} | {
|
|
43
|
+
ok: true;
|
|
44
|
+
sources: import("../..").RAGSyncSourceRecord[];
|
|
45
|
+
}>;
|
|
46
|
+
syncSources: RAGSyncResponse | null;
|
|
31
47
|
};
|
|
32
48
|
export type UseRAGIndexAdminResult = ReturnType<typeof useRAGIndexAdmin>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGVectorStoreStatus } from '../../../types/ai';
|
|
1
|
+
import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGSyncSourceRecord, RAGVectorStoreStatus } from '../../../types/ai';
|
|
2
2
|
export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
3
3
|
admin: RAGAdminCapabilities | undefined;
|
|
4
4
|
adminActions: RAGAdminActionRecord[];
|
|
@@ -14,5 +14,6 @@ export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
|
14
14
|
refresh: () => Promise<RAGOperationsResponse>;
|
|
15
15
|
reset: () => void;
|
|
16
16
|
status: RAGVectorStoreStatus | undefined;
|
|
17
|
+
syncSources: RAGSyncSourceRecord[];
|
|
17
18
|
};
|
|
18
19
|
export type UseRAGOpsResult = ReturnType<typeof useRAGOps>;
|
|
@@ -85,11 +85,27 @@ export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
|
|
|
85
85
|
isLoading: import("svelte/store").Writable<boolean>;
|
|
86
86
|
lastMutation: import("svelte/store").Writable<import("../..").RAGMutationResponse | null>;
|
|
87
87
|
loadBackends: () => Promise<import("../..").RAGBackendsResponse>;
|
|
88
|
+
loadSyncSources: () => Promise<import("../..").RAGSyncResponse>;
|
|
88
89
|
reindexDocument: (id: string) => Promise<import("../..").RAGMutationResponse>;
|
|
89
90
|
reindexSource: (source: string) => Promise<import("../..").RAGMutationResponse>;
|
|
90
91
|
reseed: () => Promise<import("../..").RAGMutationResponse>;
|
|
91
92
|
reset: () => Promise<import("../..").RAGMutationResponse>;
|
|
92
93
|
resetState: () => void;
|
|
94
|
+
syncAllSources: () => Promise<{
|
|
95
|
+
ok: true;
|
|
96
|
+
source: import("../..").RAGSyncSourceRecord;
|
|
97
|
+
} | {
|
|
98
|
+
ok: true;
|
|
99
|
+
sources: import("../..").RAGSyncSourceRecord[];
|
|
100
|
+
}>;
|
|
101
|
+
syncSource: (id: string) => Promise<{
|
|
102
|
+
ok: true;
|
|
103
|
+
source: import("../..").RAGSyncSourceRecord;
|
|
104
|
+
} | {
|
|
105
|
+
ok: true;
|
|
106
|
+
sources: import("../..").RAGSyncSourceRecord[];
|
|
107
|
+
}>;
|
|
108
|
+
syncSources: import("svelte/store").Writable<import("../..").RAGSyncResponse | null>;
|
|
93
109
|
};
|
|
94
110
|
ingest: {
|
|
95
111
|
clearIndex: () => Promise<{
|
|
@@ -122,6 +138,7 @@ export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
|
|
|
122
138
|
refresh: () => Promise<import("../..").RAGOperationsResponse>;
|
|
123
139
|
reset: () => void;
|
|
124
140
|
status: import("svelte/store").Writable<import("../..").RAGVectorStoreStatus | undefined>;
|
|
141
|
+
syncSources: import("svelte/store").Writable<import("../..").RAGSyncSourceRecord[]>;
|
|
125
142
|
};
|
|
126
143
|
search: {
|
|
127
144
|
error: import("svelte/store").Writable<string | null>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RAGBackendsResponse, RAGChunkingStrategy, RAGContentFormat, RAGMutationResponse } from '../../../types/ai';
|
|
1
|
+
import type { RAGBackendsResponse, RAGChunkingStrategy, RAGContentFormat, RAGMutationResponse, RAGSyncResponse } from '../../../types/ai';
|
|
2
2
|
export declare const createRAGIndexAdmin: (path: string) => {
|
|
3
3
|
backends: import("svelte/store").Writable<RAGBackendsResponse | null>;
|
|
4
4
|
clearIndex: () => Promise<{
|
|
@@ -23,10 +23,26 @@ export declare const createRAGIndexAdmin: (path: string) => {
|
|
|
23
23
|
isLoading: import("svelte/store").Writable<boolean>;
|
|
24
24
|
lastMutation: import("svelte/store").Writable<RAGMutationResponse | null>;
|
|
25
25
|
loadBackends: () => Promise<RAGBackendsResponse>;
|
|
26
|
+
loadSyncSources: () => Promise<RAGSyncResponse>;
|
|
26
27
|
reindexDocument: (id: string) => Promise<RAGMutationResponse>;
|
|
27
28
|
reindexSource: (source: string) => Promise<RAGMutationResponse>;
|
|
28
29
|
reseed: () => Promise<RAGMutationResponse>;
|
|
29
30
|
reset: () => Promise<RAGMutationResponse>;
|
|
30
31
|
resetState: () => void;
|
|
32
|
+
syncAllSources: () => Promise<{
|
|
33
|
+
ok: true;
|
|
34
|
+
source: import("../..").RAGSyncSourceRecord;
|
|
35
|
+
} | {
|
|
36
|
+
ok: true;
|
|
37
|
+
sources: import("../..").RAGSyncSourceRecord[];
|
|
38
|
+
}>;
|
|
39
|
+
syncSource: (id: string) => Promise<{
|
|
40
|
+
ok: true;
|
|
41
|
+
source: import("../..").RAGSyncSourceRecord;
|
|
42
|
+
} | {
|
|
43
|
+
ok: true;
|
|
44
|
+
sources: import("../..").RAGSyncSourceRecord[];
|
|
45
|
+
}>;
|
|
46
|
+
syncSources: import("svelte/store").Writable<RAGSyncResponse | null>;
|
|
31
47
|
};
|
|
32
48
|
export type CreateRAGIndexAdminResult = ReturnType<typeof createRAGIndexAdmin>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGVectorStoreStatus } from '../../../types/ai';
|
|
1
|
+
import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGSyncSourceRecord, RAGVectorStoreStatus } from '../../../types/ai';
|
|
2
2
|
export declare const createRAGOps: (path: string, autoLoad?: boolean) => {
|
|
3
3
|
admin: import("svelte/store").Writable<RAGAdminCapabilities | undefined>;
|
|
4
4
|
adminActions: import("svelte/store").Writable<RAGAdminActionRecord[]>;
|
|
@@ -14,5 +14,6 @@ export declare const createRAGOps: (path: string, autoLoad?: boolean) => {
|
|
|
14
14
|
refresh: () => Promise<RAGOperationsResponse>;
|
|
15
15
|
reset: () => void;
|
|
16
16
|
status: import("svelte/store").Writable<RAGVectorStoreStatus | undefined>;
|
|
17
|
+
syncSources: import("svelte/store").Writable<RAGSyncSourceRecord[]>;
|
|
17
18
|
};
|
|
18
19
|
export type CreateRAGOpsResult = ReturnType<typeof createRAGOps>;
|
|
@@ -615,11 +615,97 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
615
615
|
} | undefined;
|
|
616
616
|
} | null>;
|
|
617
617
|
loadBackends: () => Promise<import("../..").RAGBackendsResponse>;
|
|
618
|
+
loadSyncSources: () => Promise<import("../..").RAGSyncResponse>;
|
|
618
619
|
reindexDocument: (id: string) => Promise<import("../..").RAGMutationResponse>;
|
|
619
620
|
reindexSource: (source: string) => Promise<import("../..").RAGMutationResponse>;
|
|
620
621
|
reseed: () => Promise<import("../..").RAGMutationResponse>;
|
|
621
622
|
reset: () => Promise<import("../..").RAGMutationResponse>;
|
|
622
623
|
resetState: () => void;
|
|
624
|
+
syncAllSources: () => Promise<{
|
|
625
|
+
ok: true;
|
|
626
|
+
source: import("../..").RAGSyncSourceRecord;
|
|
627
|
+
} | {
|
|
628
|
+
ok: true;
|
|
629
|
+
sources: import("../..").RAGSyncSourceRecord[];
|
|
630
|
+
}>;
|
|
631
|
+
syncSource: (id: string) => Promise<{
|
|
632
|
+
ok: true;
|
|
633
|
+
source: import("../..").RAGSyncSourceRecord;
|
|
634
|
+
} | {
|
|
635
|
+
ok: true;
|
|
636
|
+
sources: import("../..").RAGSyncSourceRecord[];
|
|
637
|
+
}>;
|
|
638
|
+
syncSources: import("vue").Ref<{
|
|
639
|
+
ok: true;
|
|
640
|
+
source: {
|
|
641
|
+
id: string;
|
|
642
|
+
label: string;
|
|
643
|
+
kind: "directory" | "url" | "storage" | "email" | "custom";
|
|
644
|
+
status: import("../..").RAGSyncSourceStatus;
|
|
645
|
+
description?: string | undefined;
|
|
646
|
+
target?: string | undefined;
|
|
647
|
+
lastSyncedAt?: number | undefined;
|
|
648
|
+
lastSyncDurationMs?: number | undefined;
|
|
649
|
+
lastError?: string | undefined;
|
|
650
|
+
documentCount?: number | undefined;
|
|
651
|
+
chunkCount?: number | undefined;
|
|
652
|
+
metadata?: Record<string, unknown> | undefined;
|
|
653
|
+
};
|
|
654
|
+
} | {
|
|
655
|
+
ok: true;
|
|
656
|
+
sources: {
|
|
657
|
+
id: string;
|
|
658
|
+
label: string;
|
|
659
|
+
kind: "directory" | "url" | "storage" | "email" | "custom";
|
|
660
|
+
status: import("../..").RAGSyncSourceStatus;
|
|
661
|
+
description?: string | undefined;
|
|
662
|
+
target?: string | undefined;
|
|
663
|
+
lastSyncedAt?: number | undefined;
|
|
664
|
+
lastSyncDurationMs?: number | undefined;
|
|
665
|
+
lastError?: string | undefined;
|
|
666
|
+
documentCount?: number | undefined;
|
|
667
|
+
chunkCount?: number | undefined;
|
|
668
|
+
metadata?: Record<string, unknown> | undefined;
|
|
669
|
+
}[];
|
|
670
|
+
} | {
|
|
671
|
+
ok: false;
|
|
672
|
+
error: string;
|
|
673
|
+
} | null, import("../..").RAGSyncResponse | {
|
|
674
|
+
ok: true;
|
|
675
|
+
source: {
|
|
676
|
+
id: string;
|
|
677
|
+
label: string;
|
|
678
|
+
kind: "directory" | "url" | "storage" | "email" | "custom";
|
|
679
|
+
status: import("../..").RAGSyncSourceStatus;
|
|
680
|
+
description?: string | undefined;
|
|
681
|
+
target?: string | undefined;
|
|
682
|
+
lastSyncedAt?: number | undefined;
|
|
683
|
+
lastSyncDurationMs?: number | undefined;
|
|
684
|
+
lastError?: string | undefined;
|
|
685
|
+
documentCount?: number | undefined;
|
|
686
|
+
chunkCount?: number | undefined;
|
|
687
|
+
metadata?: Record<string, unknown> | undefined;
|
|
688
|
+
};
|
|
689
|
+
} | {
|
|
690
|
+
ok: true;
|
|
691
|
+
sources: {
|
|
692
|
+
id: string;
|
|
693
|
+
label: string;
|
|
694
|
+
kind: "directory" | "url" | "storage" | "email" | "custom";
|
|
695
|
+
status: import("../..").RAGSyncSourceStatus;
|
|
696
|
+
description?: string | undefined;
|
|
697
|
+
target?: string | undefined;
|
|
698
|
+
lastSyncedAt?: number | undefined;
|
|
699
|
+
lastSyncDurationMs?: number | undefined;
|
|
700
|
+
lastError?: string | undefined;
|
|
701
|
+
documentCount?: number | undefined;
|
|
702
|
+
chunkCount?: number | undefined;
|
|
703
|
+
metadata?: Record<string, unknown> | undefined;
|
|
704
|
+
}[];
|
|
705
|
+
} | {
|
|
706
|
+
ok: false;
|
|
707
|
+
error: string;
|
|
708
|
+
} | null>;
|
|
623
709
|
};
|
|
624
710
|
ingest: {
|
|
625
711
|
clearIndex: () => Promise<{
|
|
@@ -651,26 +737,28 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
651
737
|
admin: import("vue").Ref<import("../..").RAGAdminCapabilities | undefined, import("../..").RAGAdminCapabilities | undefined>;
|
|
652
738
|
adminActions: import("vue").Ref<{
|
|
653
739
|
id: string;
|
|
654
|
-
action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "reseed" | "reset";
|
|
740
|
+
action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "sync_all_sources" | "sync_source" | "reseed" | "reset";
|
|
655
741
|
status: "completed" | "failed";
|
|
656
742
|
startedAt: number;
|
|
657
743
|
finishedAt?: number | undefined;
|
|
658
744
|
elapsedMs?: number | undefined;
|
|
659
745
|
documentId?: string | undefined;
|
|
746
|
+
target?: string | undefined;
|
|
660
747
|
error?: string | undefined;
|
|
661
748
|
}[], import("../..").RAGAdminActionRecord[] | {
|
|
662
749
|
id: string;
|
|
663
|
-
action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "reseed" | "reset";
|
|
750
|
+
action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "sync_all_sources" | "sync_source" | "reseed" | "reset";
|
|
664
751
|
status: "completed" | "failed";
|
|
665
752
|
startedAt: number;
|
|
666
753
|
finishedAt?: number | undefined;
|
|
667
754
|
elapsedMs?: number | undefined;
|
|
668
755
|
documentId?: string | undefined;
|
|
756
|
+
target?: string | undefined;
|
|
669
757
|
error?: string | undefined;
|
|
670
758
|
}[]>;
|
|
671
759
|
adminJobs: import("vue").Ref<{
|
|
672
760
|
id: string;
|
|
673
|
-
action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "reseed" | "reset";
|
|
761
|
+
action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "sync_all_sources" | "sync_source" | "reseed" | "reset";
|
|
674
762
|
status: import("../..").RAGAdminJobStatus;
|
|
675
763
|
startedAt: number;
|
|
676
764
|
finishedAt?: number | undefined;
|
|
@@ -679,7 +767,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
679
767
|
error?: string | undefined;
|
|
680
768
|
}[], import("../..").RAGAdminJobRecord[] | {
|
|
681
769
|
id: string;
|
|
682
|
-
action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "reseed" | "reset";
|
|
770
|
+
action: "clear_index" | "create_document" | "delete_document" | "reindex_document" | "reindex_source" | "sync_all_sources" | "sync_source" | "reseed" | "reset";
|
|
683
771
|
status: import("../..").RAGAdminJobStatus;
|
|
684
772
|
startedAt: number;
|
|
685
773
|
finishedAt?: number | undefined;
|
|
@@ -722,6 +810,33 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
722
810
|
refresh: () => Promise<import("../..").RAGOperationsResponse>;
|
|
723
811
|
reset: () => void;
|
|
724
812
|
status: import("vue").Ref<import("../..").RAGVectorStoreStatus | undefined, import("../..").RAGVectorStoreStatus | undefined>;
|
|
813
|
+
syncSources: import("vue").Ref<{
|
|
814
|
+
id: string;
|
|
815
|
+
label: string;
|
|
816
|
+
kind: "directory" | "url" | "storage" | "email" | "custom";
|
|
817
|
+
status: import("../..").RAGSyncSourceStatus;
|
|
818
|
+
description?: string | undefined;
|
|
819
|
+
target?: string | undefined;
|
|
820
|
+
lastSyncedAt?: number | undefined;
|
|
821
|
+
lastSyncDurationMs?: number | undefined;
|
|
822
|
+
lastError?: string | undefined;
|
|
823
|
+
documentCount?: number | undefined;
|
|
824
|
+
chunkCount?: number | undefined;
|
|
825
|
+
metadata?: Record<string, unknown> | undefined;
|
|
826
|
+
}[], import("../..").RAGSyncSourceRecord[] | {
|
|
827
|
+
id: string;
|
|
828
|
+
label: string;
|
|
829
|
+
kind: "directory" | "url" | "storage" | "email" | "custom";
|
|
830
|
+
status: import("../..").RAGSyncSourceStatus;
|
|
831
|
+
description?: string | undefined;
|
|
832
|
+
target?: string | undefined;
|
|
833
|
+
lastSyncedAt?: number | undefined;
|
|
834
|
+
lastSyncDurationMs?: number | undefined;
|
|
835
|
+
lastError?: string | undefined;
|
|
836
|
+
documentCount?: number | undefined;
|
|
837
|
+
chunkCount?: number | undefined;
|
|
838
|
+
metadata?: Record<string, unknown> | undefined;
|
|
839
|
+
}[]>;
|
|
725
840
|
};
|
|
726
841
|
search: {
|
|
727
842
|
error: import("vue").Ref<string | null, string | null>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RAGBackendsResponse, RAGContentFormat, RAGChunkingStrategy, RAGMutationResponse } from '../../../types/ai';
|
|
1
|
+
import type { RAGBackendsResponse, RAGContentFormat, RAGChunkingStrategy, RAGMutationResponse, RAGSyncResponse } from '../../../types/ai';
|
|
2
2
|
export declare const useRAGIndexAdmin: (path: string) => {
|
|
3
3
|
backends: import("vue").Ref<{
|
|
4
4
|
ok: true;
|
|
@@ -201,10 +201,96 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
201
201
|
} | undefined;
|
|
202
202
|
} | null>;
|
|
203
203
|
loadBackends: () => Promise<RAGBackendsResponse>;
|
|
204
|
+
loadSyncSources: () => Promise<RAGSyncResponse>;
|
|
204
205
|
reindexDocument: (id: string) => Promise<RAGMutationResponse>;
|
|
205
206
|
reindexSource: (source: string) => Promise<RAGMutationResponse>;
|
|
206
207
|
reseed: () => Promise<RAGMutationResponse>;
|
|
207
208
|
reset: () => Promise<RAGMutationResponse>;
|
|
208
209
|
resetState: () => void;
|
|
210
|
+
syncAllSources: () => Promise<{
|
|
211
|
+
ok: true;
|
|
212
|
+
source: import("../..").RAGSyncSourceRecord;
|
|
213
|
+
} | {
|
|
214
|
+
ok: true;
|
|
215
|
+
sources: import("../..").RAGSyncSourceRecord[];
|
|
216
|
+
}>;
|
|
217
|
+
syncSource: (id: string) => Promise<{
|
|
218
|
+
ok: true;
|
|
219
|
+
source: import("../..").RAGSyncSourceRecord;
|
|
220
|
+
} | {
|
|
221
|
+
ok: true;
|
|
222
|
+
sources: import("../..").RAGSyncSourceRecord[];
|
|
223
|
+
}>;
|
|
224
|
+
syncSources: import("vue").Ref<{
|
|
225
|
+
ok: true;
|
|
226
|
+
source: {
|
|
227
|
+
id: string;
|
|
228
|
+
label: string;
|
|
229
|
+
kind: "directory" | "url" | "storage" | "email" | "custom";
|
|
230
|
+
status: import("../..").RAGSyncSourceStatus;
|
|
231
|
+
description?: string | undefined;
|
|
232
|
+
target?: string | undefined;
|
|
233
|
+
lastSyncedAt?: number | undefined;
|
|
234
|
+
lastSyncDurationMs?: number | undefined;
|
|
235
|
+
lastError?: string | undefined;
|
|
236
|
+
documentCount?: number | undefined;
|
|
237
|
+
chunkCount?: number | undefined;
|
|
238
|
+
metadata?: Record<string, unknown> | undefined;
|
|
239
|
+
};
|
|
240
|
+
} | {
|
|
241
|
+
ok: true;
|
|
242
|
+
sources: {
|
|
243
|
+
id: string;
|
|
244
|
+
label: string;
|
|
245
|
+
kind: "directory" | "url" | "storage" | "email" | "custom";
|
|
246
|
+
status: import("../..").RAGSyncSourceStatus;
|
|
247
|
+
description?: string | undefined;
|
|
248
|
+
target?: string | undefined;
|
|
249
|
+
lastSyncedAt?: number | undefined;
|
|
250
|
+
lastSyncDurationMs?: number | undefined;
|
|
251
|
+
lastError?: string | undefined;
|
|
252
|
+
documentCount?: number | undefined;
|
|
253
|
+
chunkCount?: number | undefined;
|
|
254
|
+
metadata?: Record<string, unknown> | undefined;
|
|
255
|
+
}[];
|
|
256
|
+
} | {
|
|
257
|
+
ok: false;
|
|
258
|
+
error: string;
|
|
259
|
+
} | null, RAGSyncResponse | {
|
|
260
|
+
ok: true;
|
|
261
|
+
source: {
|
|
262
|
+
id: string;
|
|
263
|
+
label: string;
|
|
264
|
+
kind: "directory" | "url" | "storage" | "email" | "custom";
|
|
265
|
+
status: import("../..").RAGSyncSourceStatus;
|
|
266
|
+
description?: string | undefined;
|
|
267
|
+
target?: string | undefined;
|
|
268
|
+
lastSyncedAt?: number | undefined;
|
|
269
|
+
lastSyncDurationMs?: number | undefined;
|
|
270
|
+
lastError?: string | undefined;
|
|
271
|
+
documentCount?: number | undefined;
|
|
272
|
+
chunkCount?: number | undefined;
|
|
273
|
+
metadata?: Record<string, unknown> | undefined;
|
|
274
|
+
};
|
|
275
|
+
} | {
|
|
276
|
+
ok: true;
|
|
277
|
+
sources: {
|
|
278
|
+
id: string;
|
|
279
|
+
label: string;
|
|
280
|
+
kind: "directory" | "url" | "storage" | "email" | "custom";
|
|
281
|
+
status: import("../..").RAGSyncSourceStatus;
|
|
282
|
+
description?: string | undefined;
|
|
283
|
+
target?: string | undefined;
|
|
284
|
+
lastSyncedAt?: number | undefined;
|
|
285
|
+
lastSyncDurationMs?: number | undefined;
|
|
286
|
+
lastError?: string | undefined;
|
|
287
|
+
documentCount?: number | undefined;
|
|
288
|
+
chunkCount?: number | undefined;
|
|
289
|
+
metadata?: Record<string, unknown> | undefined;
|
|
290
|
+
}[];
|
|
291
|
+
} | {
|
|
292
|
+
ok: false;
|
|
293
|
+
error: string;
|
|
294
|
+
} | null>;
|
|
209
295
|
};
|
|
210
296
|
export type UseRAGIndexAdminResult = ReturnType<typeof useRAGIndexAdmin>;
|