@absolutejs/absolute 0.19.0-beta.439 → 0.19.0-beta.440

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.
@@ -1,5 +1,11 @@
1
1
  export { useAIStream, AIStreamKey } from './useAIStream';
2
+ export { useRAGChunkPreview } from './useRAGChunkPreview';
3
+ export { useRAG } from './useRAG';
4
+ export { useRAGCitations } from './useRAGCitations';
5
+ export { useRAGDocuments } from './useRAGDocuments';
2
6
  export { useRAGIngest } from './useRAGIngest';
7
+ export { useRAGIndexAdmin } from './useRAGIndexAdmin';
3
8
  export { useRAGSearch } from './useRAGSearch';
9
+ export { useRAGSources } from './useRAGSources';
4
10
  export { useRAGStatus } from './useRAGStatus';
5
11
  export { useRAGStream } from './useRAGStream';
@@ -0,0 +1,434 @@
1
+ export type UseRAGOptions = {
2
+ autoLoadStatus?: boolean;
3
+ conversationId?: string;
4
+ streamPath?: string;
5
+ };
6
+ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
7
+ citations: {
8
+ citations: import("vue").ComputedRef<import("../..").RAGCitation[]>;
9
+ hasCitations: import("vue").ComputedRef<boolean>;
10
+ sourceGroups: import("vue").ComputedRef<import("../..").RAGSourceGroup[]>;
11
+ };
12
+ chunkPreview: {
13
+ clear: () => void;
14
+ error: import("vue").Ref<string | null, string | null>;
15
+ inspect: (id: string) => Promise<{
16
+ ok: true;
17
+ } & import("../..").RAGDocumentChunkPreview>;
18
+ isLoading: import("vue").Ref<boolean, boolean>;
19
+ preview: import("vue").Ref<{
20
+ document: {
21
+ source: string;
22
+ title: string;
23
+ kind?: string | undefined;
24
+ id: string;
25
+ format?: import("../..").RAGContentFormat | undefined;
26
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
27
+ chunkSize?: number | undefined;
28
+ chunkCount?: number | undefined;
29
+ createdAt?: number | undefined;
30
+ updatedAt?: number | undefined;
31
+ metadata?: Record<string, unknown> | undefined;
32
+ };
33
+ normalizedText: string;
34
+ chunks: {
35
+ chunkId: string;
36
+ text: string;
37
+ title?: string | undefined;
38
+ source?: string | undefined;
39
+ metadata?: Record<string, unknown> | undefined;
40
+ embedding?: number[] | undefined;
41
+ }[];
42
+ } | null, import("../..").RAGDocumentChunkPreview | {
43
+ document: {
44
+ source: string;
45
+ title: string;
46
+ kind?: string | undefined;
47
+ id: string;
48
+ format?: import("../..").RAGContentFormat | undefined;
49
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
50
+ chunkSize?: number | undefined;
51
+ chunkCount?: number | undefined;
52
+ createdAt?: number | undefined;
53
+ updatedAt?: number | undefined;
54
+ metadata?: Record<string, unknown> | undefined;
55
+ };
56
+ normalizedText: string;
57
+ chunks: {
58
+ chunkId: string;
59
+ text: string;
60
+ title?: string | undefined;
61
+ source?: string | undefined;
62
+ metadata?: Record<string, unknown> | undefined;
63
+ embedding?: number[] | undefined;
64
+ }[];
65
+ } | null>;
66
+ };
67
+ documents: {
68
+ documents: import("vue").Ref<{
69
+ id: string;
70
+ title: string;
71
+ source: string;
72
+ text?: string | undefined;
73
+ kind?: string | undefined;
74
+ format?: import("../..").RAGContentFormat | undefined;
75
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
76
+ chunkSize?: number | undefined;
77
+ chunkCount?: number | undefined;
78
+ createdAt?: number | undefined;
79
+ updatedAt?: number | undefined;
80
+ metadata?: Record<string, unknown> | undefined;
81
+ }[], import("../..").RAGIndexedDocument[] | {
82
+ id: string;
83
+ title: string;
84
+ source: string;
85
+ text?: string | undefined;
86
+ kind?: string | undefined;
87
+ format?: import("../..").RAGContentFormat | undefined;
88
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
89
+ chunkSize?: number | undefined;
90
+ chunkCount?: number | undefined;
91
+ createdAt?: number | undefined;
92
+ updatedAt?: number | undefined;
93
+ metadata?: Record<string, unknown> | undefined;
94
+ }[]>;
95
+ error: import("vue").Ref<string | null, string | null>;
96
+ isLoading: import("vue").Ref<boolean, boolean>;
97
+ lastResponse: import("vue").Ref<{
98
+ ok: true;
99
+ documents: {
100
+ id: string;
101
+ title: string;
102
+ source: string;
103
+ text?: string | undefined;
104
+ kind?: string | undefined;
105
+ format?: import("../..").RAGContentFormat | undefined;
106
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
107
+ chunkSize?: number | undefined;
108
+ chunkCount?: number | undefined;
109
+ createdAt?: number | undefined;
110
+ updatedAt?: number | undefined;
111
+ metadata?: Record<string, unknown> | undefined;
112
+ }[];
113
+ lastSeedMsByMode?: Record<string, number> | undefined;
114
+ } | null, import("../..").RAGDocumentsResponse | {
115
+ ok: true;
116
+ documents: {
117
+ id: string;
118
+ title: string;
119
+ source: string;
120
+ text?: string | undefined;
121
+ kind?: string | undefined;
122
+ format?: import("../..").RAGContentFormat | undefined;
123
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
124
+ chunkSize?: number | undefined;
125
+ chunkCount?: number | undefined;
126
+ createdAt?: number | undefined;
127
+ updatedAt?: number | undefined;
128
+ metadata?: Record<string, unknown> | undefined;
129
+ }[];
130
+ lastSeedMsByMode?: Record<string, number> | undefined;
131
+ } | null>;
132
+ load: (kind?: string) => Promise<import("../..").RAGDocumentsResponse>;
133
+ reset: () => void;
134
+ };
135
+ ingest: {
136
+ clearIndex: () => Promise<{
137
+ ok: boolean;
138
+ }>;
139
+ error: import("vue").Ref<string | null, string | null>;
140
+ ingest: (chunks: import("../..").RAGDocumentChunk[]) => Promise<import("../..").RAGIngestResponse>;
141
+ ingestChunks: (chunks: import("../..").RAGDocumentChunk[]) => Promise<import("../..").RAGIngestResponse>;
142
+ ingestDocuments: (input: import("../..").RAGDocumentIngestInput) => Promise<import("../..").RAGIngestResponse>;
143
+ isIngesting: import("vue").Ref<boolean, boolean>;
144
+ lastDocumentCount: import("vue").Ref<number | null, number | null>;
145
+ lastIngestCount: import("vue").Ref<number | null, number | null>;
146
+ lastResponse: import("vue").Ref<{
147
+ ok: boolean;
148
+ count?: number | undefined;
149
+ documentCount?: number | undefined;
150
+ error?: string | undefined;
151
+ } | null, import("../..").RAGIngestResponse | {
152
+ ok: boolean;
153
+ count?: number | undefined;
154
+ documentCount?: number | undefined;
155
+ error?: string | undefined;
156
+ } | null>;
157
+ reset: () => void;
158
+ };
159
+ index: {
160
+ backends: import("vue").Ref<{
161
+ ok: true;
162
+ defaultMode?: string | undefined;
163
+ activeModeCookie?: string | undefined;
164
+ backends: {
165
+ id: string;
166
+ label: string;
167
+ path?: string | undefined;
168
+ available: boolean;
169
+ reason?: string | undefined;
170
+ lastSeedMs?: number | undefined;
171
+ status?: {
172
+ backend: "in_memory" | "sqlite" | "postgres";
173
+ vectorMode: "in_memory" | "json_fallback" | "native_vec0" | "native_pgvector";
174
+ dimensions?: number | undefined;
175
+ native?: {
176
+ requested: boolean;
177
+ available: boolean;
178
+ active: boolean;
179
+ mode?: "vec0" | undefined;
180
+ tableName?: string | undefined;
181
+ distanceMetric?: "cosine" | "l2" | undefined;
182
+ resolution?: {
183
+ status: import("../..").SQLiteVecResolutionStatus;
184
+ source: import("../..").SQLiteVecResolutionSource;
185
+ platformKey: string;
186
+ packageName?: string | undefined;
187
+ packageVersion?: string | undefined;
188
+ packageRoot?: string | undefined;
189
+ libraryFile?: string | undefined;
190
+ libraryPath?: string | undefined;
191
+ reason?: string | undefined;
192
+ } | undefined;
193
+ fallbackReason?: string | undefined;
194
+ lastLoadError?: string | undefined;
195
+ lastQueryError?: string | undefined;
196
+ lastUpsertError?: string | undefined;
197
+ } | {
198
+ requested: boolean;
199
+ available: boolean;
200
+ active: boolean;
201
+ mode?: "pgvector" | undefined;
202
+ extensionName?: string | undefined;
203
+ schemaName?: string | undefined;
204
+ tableName?: string | undefined;
205
+ distanceMetric?: "cosine" | "l2" | "inner_product" | undefined;
206
+ indexType?: "none" | "hnsw" | "ivfflat" | undefined;
207
+ fallbackReason?: string | undefined;
208
+ lastInitError?: string | undefined;
209
+ lastQueryError?: string | undefined;
210
+ lastUpsertError?: string | undefined;
211
+ lastMigrationError?: string | undefined;
212
+ } | undefined;
213
+ } | undefined;
214
+ capabilities?: {
215
+ backend: "in_memory" | "sqlite" | "postgres" | "custom";
216
+ persistence: "memory_only" | "embedded" | "external";
217
+ nativeVectorSearch: boolean;
218
+ serverSideFiltering: boolean;
219
+ streamingIngestStatus: boolean;
220
+ } | undefined;
221
+ }[];
222
+ } | null, import("../..").RAGBackendsResponse | {
223
+ ok: true;
224
+ defaultMode?: string | undefined;
225
+ activeModeCookie?: string | undefined;
226
+ backends: {
227
+ id: string;
228
+ label: string;
229
+ path?: string | undefined;
230
+ available: boolean;
231
+ reason?: string | undefined;
232
+ lastSeedMs?: number | undefined;
233
+ status?: {
234
+ backend: "in_memory" | "sqlite" | "postgres";
235
+ vectorMode: "in_memory" | "json_fallback" | "native_vec0" | "native_pgvector";
236
+ dimensions?: number | undefined;
237
+ native?: {
238
+ requested: boolean;
239
+ available: boolean;
240
+ active: boolean;
241
+ mode?: "vec0" | undefined;
242
+ tableName?: string | undefined;
243
+ distanceMetric?: "cosine" | "l2" | undefined;
244
+ resolution?: {
245
+ status: import("../..").SQLiteVecResolutionStatus;
246
+ source: import("../..").SQLiteVecResolutionSource;
247
+ platformKey: string;
248
+ packageName?: string | undefined;
249
+ packageVersion?: string | undefined;
250
+ packageRoot?: string | undefined;
251
+ libraryFile?: string | undefined;
252
+ libraryPath?: string | undefined;
253
+ reason?: string | undefined;
254
+ } | undefined;
255
+ fallbackReason?: string | undefined;
256
+ lastLoadError?: string | undefined;
257
+ lastQueryError?: string | undefined;
258
+ lastUpsertError?: string | undefined;
259
+ } | {
260
+ requested: boolean;
261
+ available: boolean;
262
+ active: boolean;
263
+ mode?: "pgvector" | undefined;
264
+ extensionName?: string | undefined;
265
+ schemaName?: string | undefined;
266
+ tableName?: string | undefined;
267
+ distanceMetric?: "cosine" | "l2" | "inner_product" | undefined;
268
+ indexType?: "none" | "hnsw" | "ivfflat" | undefined;
269
+ fallbackReason?: string | undefined;
270
+ lastInitError?: string | undefined;
271
+ lastQueryError?: string | undefined;
272
+ lastUpsertError?: string | undefined;
273
+ lastMigrationError?: string | undefined;
274
+ } | undefined;
275
+ } | undefined;
276
+ capabilities?: {
277
+ backend: "in_memory" | "sqlite" | "postgres" | "custom";
278
+ persistence: "memory_only" | "embedded" | "external";
279
+ nativeVectorSearch: boolean;
280
+ serverSideFiltering: boolean;
281
+ streamingIngestStatus: boolean;
282
+ } | undefined;
283
+ }[];
284
+ } | null>;
285
+ clearIndex: () => Promise<{
286
+ ok: boolean;
287
+ }>;
288
+ createDocument: (input: {
289
+ id?: string;
290
+ title?: string;
291
+ source?: string;
292
+ text: string;
293
+ format?: import("../..").RAGContentFormat;
294
+ metadata?: Record<string, unknown>;
295
+ chunking?: {
296
+ maxChunkLength?: number;
297
+ chunkOverlap?: number;
298
+ minChunkLength?: number;
299
+ strategy?: import("../..").RAGChunkingStrategy;
300
+ };
301
+ }) => Promise<import("../..").RAGMutationResponse>;
302
+ deleteDocument: (id: string) => Promise<import("../..").RAGMutationResponse>;
303
+ error: import("vue").Ref<string | null, string | null>;
304
+ isLoading: import("vue").Ref<boolean, boolean>;
305
+ lastMutation: import("vue").Ref<{
306
+ ok: boolean;
307
+ error?: string | undefined;
308
+ deleted?: string | undefined;
309
+ inserted?: string | undefined;
310
+ status?: string | undefined;
311
+ documents?: number | undefined;
312
+ backendStats?: Record<string, {
313
+ chunkCount: number;
314
+ totalDocuments: number;
315
+ elapsedMs: number;
316
+ }> | undefined;
317
+ document?: {
318
+ id: string;
319
+ title: string;
320
+ source: string;
321
+ text?: string | undefined;
322
+ kind?: string | undefined;
323
+ format?: import("../..").RAGContentFormat | undefined;
324
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
325
+ chunkSize?: number | undefined;
326
+ chunkCount?: number | undefined;
327
+ createdAt?: number | undefined;
328
+ updatedAt?: number | undefined;
329
+ metadata?: Record<string, unknown> | undefined;
330
+ } | undefined;
331
+ } | null, import("../..").RAGMutationResponse | {
332
+ ok: boolean;
333
+ error?: string | undefined;
334
+ deleted?: string | undefined;
335
+ inserted?: string | undefined;
336
+ status?: string | undefined;
337
+ documents?: number | undefined;
338
+ backendStats?: Record<string, {
339
+ chunkCount: number;
340
+ totalDocuments: number;
341
+ elapsedMs: number;
342
+ }> | undefined;
343
+ document?: {
344
+ id: string;
345
+ title: string;
346
+ source: string;
347
+ text?: string | undefined;
348
+ kind?: string | undefined;
349
+ format?: import("../..").RAGContentFormat | undefined;
350
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
351
+ chunkSize?: number | undefined;
352
+ chunkCount?: number | undefined;
353
+ createdAt?: number | undefined;
354
+ updatedAt?: number | undefined;
355
+ metadata?: Record<string, unknown> | undefined;
356
+ } | undefined;
357
+ } | null>;
358
+ loadBackends: () => Promise<import("../..").RAGBackendsResponse>;
359
+ reseed: () => Promise<import("../..").RAGMutationResponse>;
360
+ reset: () => Promise<import("../..").RAGMutationResponse>;
361
+ resetState: () => void;
362
+ };
363
+ search: {
364
+ error: import("vue").Ref<string | null, string | null>;
365
+ hasSearched: import("vue").Ref<boolean, boolean>;
366
+ isSearching: import("vue").Ref<boolean, boolean>;
367
+ lastRequest: import("vue").Ref<{
368
+ filter?: Record<string, unknown> | undefined;
369
+ query: string;
370
+ topK?: number | undefined;
371
+ scoreThreshold?: number | undefined;
372
+ model?: string | undefined;
373
+ } | null, import("../..").RAGSearchRequest | {
374
+ filter?: Record<string, unknown> | undefined;
375
+ query: string;
376
+ topK?: number | undefined;
377
+ scoreThreshold?: number | undefined;
378
+ model?: string | undefined;
379
+ } | null>;
380
+ reset: () => void;
381
+ results: import("vue").Ref<{
382
+ chunkId: string;
383
+ score: number;
384
+ text: string;
385
+ title?: string | undefined;
386
+ source?: string | undefined;
387
+ metadata?: Record<string, unknown> | undefined;
388
+ }[], import("../..").RAGSource[] | {
389
+ chunkId: string;
390
+ score: number;
391
+ text: string;
392
+ title?: string | undefined;
393
+ source?: string | undefined;
394
+ metadata?: Record<string, unknown> | undefined;
395
+ }[]>;
396
+ search: (input: import("../..").RAGSearchRequest) => Promise<import("../..").RAGSource[]>;
397
+ };
398
+ sources: {
399
+ hasSources: import("vue").ComputedRef<boolean>;
400
+ latestAssistantMessage: import("vue").ComputedRef<import("../..").AIMessage | undefined>;
401
+ sourceGroups: import("vue").ComputedRef<import("../..").RAGSourceGroup[]>;
402
+ sources: import("vue").ComputedRef<import("../..").RAGSource[]>;
403
+ };
404
+ status: {
405
+ capabilities: import("vue").Ref<import("../..").RAGBackendCapabilities | undefined, import("../..").RAGBackendCapabilities | undefined>;
406
+ error: import("vue").Ref<string | null, string | null>;
407
+ isLoading: import("vue").Ref<boolean, boolean>;
408
+ refresh: () => Promise<import("../..").RAGStatusResponse>;
409
+ reset: () => void;
410
+ status: import("vue").Ref<import("../..").RAGVectorStoreStatus | undefined, import("../..").RAGVectorStoreStatus | undefined>;
411
+ };
412
+ stream: {
413
+ citations: import("vue").ComputedRef<import("../..").RAGCitation[]>;
414
+ hasRetrieved: import("vue").ComputedRef<boolean>;
415
+ hasSources: import("vue").ComputedRef<boolean>;
416
+ isAnswerStreaming: import("vue").ComputedRef<boolean>;
417
+ isComplete: import("vue").ComputedRef<boolean>;
418
+ isRetrieving: import("vue").ComputedRef<boolean>;
419
+ latestAssistantMessage: import("vue").ComputedRef<import("../..").AIMessage | undefined>;
420
+ query: (content: string, attachments?: import("../..").AIAttachment[]) => void;
421
+ retrieval: import("vue").ComputedRef<import("../..").RAGRetrievedState | null>;
422
+ sourceGroups: import("vue").ComputedRef<import("../..").RAGSourceGroup[]>;
423
+ sources: import("vue").ComputedRef<import("../..").RAGSource[]>;
424
+ stage: import("vue").ComputedRef<import("../..").RAGStreamStage>;
425
+ branch: (messageId: string, content: string) => void;
426
+ cancel: () => void;
427
+ destroy: () => void;
428
+ error: import("vue").Ref<string | null, string | null>;
429
+ isStreaming: import("vue").Ref<boolean, boolean>;
430
+ messages: import("vue").ShallowRef<import("../..").AIMessage[], import("../..").AIMessage[]>;
431
+ send: (content: string, attachments?: import("../..").AIAttachment[]) => void;
432
+ };
433
+ };
434
+ export type UseRAGResult = ReturnType<typeof useRAG>;
@@ -0,0 +1,57 @@
1
+ import type { RAGDocumentChunkPreview } from '../../../types/ai';
2
+ export declare const useRAGChunkPreview: (path: string) => {
3
+ clear: () => void;
4
+ error: import("vue").Ref<string | null, string | null>;
5
+ inspect: (id: string) => Promise<{
6
+ ok: true;
7
+ } & RAGDocumentChunkPreview>;
8
+ isLoading: import("vue").Ref<boolean, boolean>;
9
+ preview: import("vue").Ref<{
10
+ document: {
11
+ source: string;
12
+ title: string;
13
+ kind?: string | undefined;
14
+ id: string;
15
+ format?: import("../..").RAGContentFormat | undefined;
16
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
17
+ chunkSize?: number | undefined;
18
+ chunkCount?: number | undefined;
19
+ createdAt?: number | undefined;
20
+ updatedAt?: number | undefined;
21
+ metadata?: Record<string, unknown> | undefined;
22
+ };
23
+ normalizedText: string;
24
+ chunks: {
25
+ chunkId: string;
26
+ text: string;
27
+ title?: string | undefined;
28
+ source?: string | undefined;
29
+ metadata?: Record<string, unknown> | undefined;
30
+ embedding?: number[] | undefined;
31
+ }[];
32
+ } | null, RAGDocumentChunkPreview | {
33
+ document: {
34
+ source: string;
35
+ title: string;
36
+ kind?: string | undefined;
37
+ id: string;
38
+ format?: import("../..").RAGContentFormat | undefined;
39
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
40
+ chunkSize?: number | undefined;
41
+ chunkCount?: number | undefined;
42
+ createdAt?: number | undefined;
43
+ updatedAt?: number | undefined;
44
+ metadata?: Record<string, unknown> | undefined;
45
+ };
46
+ normalizedText: string;
47
+ chunks: {
48
+ chunkId: string;
49
+ text: string;
50
+ title?: string | undefined;
51
+ source?: string | undefined;
52
+ metadata?: Record<string, unknown> | undefined;
53
+ embedding?: number[] | undefined;
54
+ }[];
55
+ } | null>;
56
+ };
57
+ export type UseRAGChunkPreviewResult = ReturnType<typeof useRAGChunkPreview>;
@@ -0,0 +1,8 @@
1
+ import { type Ref } from 'vue';
2
+ import type { RAGSource } from '../../../types/ai';
3
+ export declare const useRAGCitations: (sources: Ref<RAGSource[]>) => {
4
+ citations: import("vue").ComputedRef<import("../..").RAGCitation[]>;
5
+ hasCitations: import("vue").ComputedRef<boolean>;
6
+ sourceGroups: import("vue").ComputedRef<import("../..").RAGSourceGroup[]>;
7
+ };
8
+ export type UseRAGCitationsResult = ReturnType<typeof useRAGCitations>;
@@ -0,0 +1,70 @@
1
+ import type { RAGDocumentsResponse, RAGIndexedDocument } from '../../../types/ai';
2
+ export declare const useRAGDocuments: (path: string) => {
3
+ documents: import("vue").Ref<{
4
+ id: string;
5
+ title: string;
6
+ source: string;
7
+ text?: string | undefined;
8
+ kind?: string | undefined;
9
+ format?: import("../..").RAGContentFormat | undefined;
10
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
11
+ chunkSize?: number | undefined;
12
+ chunkCount?: number | undefined;
13
+ createdAt?: number | undefined;
14
+ updatedAt?: number | undefined;
15
+ metadata?: Record<string, unknown> | undefined;
16
+ }[], RAGIndexedDocument[] | {
17
+ id: string;
18
+ title: string;
19
+ source: string;
20
+ text?: string | undefined;
21
+ kind?: string | undefined;
22
+ format?: import("../..").RAGContentFormat | undefined;
23
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
24
+ chunkSize?: number | undefined;
25
+ chunkCount?: number | undefined;
26
+ createdAt?: number | undefined;
27
+ updatedAt?: number | undefined;
28
+ metadata?: Record<string, unknown> | undefined;
29
+ }[]>;
30
+ error: import("vue").Ref<string | null, string | null>;
31
+ isLoading: import("vue").Ref<boolean, boolean>;
32
+ lastResponse: import("vue").Ref<{
33
+ ok: true;
34
+ documents: {
35
+ id: string;
36
+ title: string;
37
+ source: string;
38
+ text?: string | undefined;
39
+ kind?: string | undefined;
40
+ format?: import("../..").RAGContentFormat | undefined;
41
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
42
+ chunkSize?: number | undefined;
43
+ chunkCount?: number | undefined;
44
+ createdAt?: number | undefined;
45
+ updatedAt?: number | undefined;
46
+ metadata?: Record<string, unknown> | undefined;
47
+ }[];
48
+ lastSeedMsByMode?: Record<string, number> | undefined;
49
+ } | null, RAGDocumentsResponse | {
50
+ ok: true;
51
+ documents: {
52
+ id: string;
53
+ title: string;
54
+ source: string;
55
+ text?: string | undefined;
56
+ kind?: string | undefined;
57
+ format?: import("../..").RAGContentFormat | undefined;
58
+ chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
59
+ chunkSize?: number | undefined;
60
+ chunkCount?: number | undefined;
61
+ createdAt?: number | undefined;
62
+ updatedAt?: number | undefined;
63
+ metadata?: Record<string, unknown> | undefined;
64
+ }[];
65
+ lastSeedMsByMode?: Record<string, number> | undefined;
66
+ } | null>;
67
+ load: (kind?: string) => Promise<RAGDocumentsResponse>;
68
+ reset: () => void;
69
+ };
70
+ export type UseRAGDocumentsResult = ReturnType<typeof useRAGDocuments>;