@absolutejs/absolute 0.19.0-beta.615 → 0.19.0-beta.617

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.
Files changed (46) hide show
  1. package/dist/ai/client/index.js +93 -46
  2. package/dist/ai/client/index.js.map +7 -7
  3. package/dist/ai/client/ui.js +5 -1
  4. package/dist/ai/client/ui.js.map +3 -3
  5. package/dist/ai/index.js +1544 -253
  6. package/dist/ai/index.js.map +14 -12
  7. package/dist/ai/rag/quality.js +49 -6
  8. package/dist/ai/rag/quality.js.map +4 -4
  9. package/dist/ai/rag/ui.js +5 -1
  10. package/dist/ai/rag/ui.js.map +3 -3
  11. package/dist/ai-client/angular/ai/index.js +44 -40
  12. package/dist/ai-client/react/ai/index.js +46 -42
  13. package/dist/ai-client/vue/ai/index.js +44 -40
  14. package/dist/angular/ai/index.js +46 -42
  15. package/dist/angular/ai/index.js.map +6 -6
  16. package/dist/angular/index.js +2 -2
  17. package/dist/angular/index.js.map +1 -1
  18. package/dist/angular/server.js +2 -2
  19. package/dist/angular/server.js.map +1 -1
  20. package/dist/build.js +2 -2
  21. package/dist/build.js.map +1 -1
  22. package/dist/index.js +2 -2
  23. package/dist/index.js.map +1 -1
  24. package/dist/react/ai/index.js +97 -50
  25. package/dist/react/ai/index.js.map +9 -9
  26. package/dist/src/ai/client/actions.d.ts +1 -1
  27. package/dist/src/ai/index.d.ts +2 -2
  28. package/dist/src/ai/protocol.d.ts +1 -1
  29. package/dist/src/ai/rag/accessControl.d.ts +2 -0
  30. package/dist/src/ai/rag/chat.d.ts +21 -23
  31. package/dist/src/ai/rag/index.d.ts +4 -2
  32. package/dist/src/ai/rag/ingestion.d.ts +12 -3
  33. package/dist/src/ai/rag/jobState.d.ts +2 -0
  34. package/dist/src/ai/rag/quality.d.ts +20 -10
  35. package/dist/src/vue/ai/useRAG.d.ts +26 -0
  36. package/dist/src/vue/ai/useRAGChunkPreview.d.ts +4 -0
  37. package/dist/src/vue/ai/useRAGDocuments.d.ts +4 -0
  38. package/dist/src/vue/ai/useRAGEvaluate.d.ts +14 -0
  39. package/dist/src/vue/ai/useRAGIndexAdmin.d.ts +2 -0
  40. package/dist/src/vue/ai/useRAGSearch.d.ts +2 -0
  41. package/dist/svelte/ai/index.js +93 -46
  42. package/dist/svelte/ai/index.js.map +7 -7
  43. package/dist/types/ai.d.ts +190 -0
  44. package/dist/vue/ai/index.js +93 -46
  45. package/dist/vue/ai/index.js.map +7 -7
  46. package/package.json +7 -7
@@ -22,6 +22,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
22
22
  kind?: string | undefined;
23
23
  id: string;
24
24
  title: string;
25
+ corpusKey?: string | undefined;
25
26
  format?: import("../..").RAGContentFormat | undefined;
26
27
  chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
27
28
  chunkSize?: number | undefined;
@@ -38,6 +39,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
38
39
  normalizedText: string;
39
40
  chunks: {
40
41
  chunkId: string;
42
+ corpusKey?: string | undefined;
41
43
  text: string;
42
44
  title?: string | undefined;
43
45
  source?: string | undefined;
@@ -79,6 +81,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
79
81
  kind?: string | undefined;
80
82
  id: string;
81
83
  title: string;
84
+ corpusKey?: string | undefined;
82
85
  format?: import("../..").RAGContentFormat | undefined;
83
86
  chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
84
87
  chunkSize?: number | undefined;
@@ -95,6 +98,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
95
98
  normalizedText: string;
96
99
  chunks: {
97
100
  chunkId: string;
101
+ corpusKey?: string | undefined;
98
102
  text: string;
99
103
  title?: string | undefined;
100
104
  source?: string | undefined;
@@ -146,6 +150,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
146
150
  };
147
151
  documents: {
148
152
  documents: import("vue").Ref<{
153
+ corpusKey?: string | undefined;
149
154
  id: string;
150
155
  title: string;
151
156
  source: string;
@@ -164,6 +169,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
164
169
  provenanceLabel?: string | undefined;
165
170
  } | undefined;
166
171
  }[], import("../..").RAGIndexedDocument[] | {
172
+ corpusKey?: string | undefined;
167
173
  id: string;
168
174
  title: string;
169
175
  source: string;
@@ -187,6 +193,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
187
193
  lastResponse: import("vue").Ref<{
188
194
  ok: true;
189
195
  documents: {
196
+ corpusKey?: string | undefined;
190
197
  id: string;
191
198
  title: string;
192
199
  source: string;
@@ -209,6 +216,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
209
216
  } | null, import("../..").RAGDocumentsResponse | {
210
217
  ok: true;
211
218
  documents: {
219
+ corpusKey?: string | undefined;
212
220
  id: string;
213
221
  title: string;
214
222
  source: string;
@@ -241,6 +249,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
241
249
  cases: {
242
250
  id: string;
243
251
  query: string;
252
+ corpusKey?: string | undefined;
244
253
  topK?: number | undefined;
245
254
  model?: string | undefined;
246
255
  scoreThreshold?: number | undefined;
@@ -284,6 +293,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
284
293
  cases: {
285
294
  id: string;
286
295
  query: string;
296
+ corpusKey?: string | undefined;
287
297
  topK?: number | undefined;
288
298
  model?: string | undefined;
289
299
  scoreThreshold?: number | undefined;
@@ -326,8 +336,10 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
326
336
  } | null>;
327
337
  lastResponse: import("vue").Ref<{
328
338
  ok: true;
339
+ corpusKeys?: string[] | undefined;
329
340
  cases: {
330
341
  caseId: string;
342
+ corpusKey?: string | undefined;
331
343
  query: string;
332
344
  label?: string | undefined;
333
345
  status: "pass" | "partial" | "fail";
@@ -361,8 +373,10 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
361
373
  passingRate: number;
362
374
  } | null, import("../..").RAGEvaluationResponse | {
363
375
  ok: true;
376
+ corpusKeys?: string[] | undefined;
364
377
  cases: {
365
378
  caseId: string;
379
+ corpusKey?: string | undefined;
366
380
  query: string;
367
381
  label?: string | undefined;
368
382
  status: "pass" | "partial" | "fail";
@@ -420,8 +434,10 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
420
434
  elapsedMs: number;
421
435
  response: {
422
436
  ok: true;
437
+ corpusKeys?: string[] | undefined;
423
438
  cases: {
424
439
  caseId: string;
440
+ corpusKey?: string | undefined;
425
441
  query: string;
426
442
  label?: string | undefined;
427
443
  status: "pass" | "partial" | "fail";
@@ -486,6 +502,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
486
502
  } | undefined;
487
503
  caseTraceSnapshots?: {
488
504
  caseId: string;
505
+ corpusKey?: string | undefined;
489
506
  label?: string | undefined;
490
507
  query: string;
491
508
  status: import("../..").RAGEvaluationCaseResult["status"];
@@ -573,8 +590,10 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
573
590
  elapsedMs: number;
574
591
  response: {
575
592
  ok: true;
593
+ corpusKeys?: string[] | undefined;
576
594
  cases: {
577
595
  caseId: string;
596
+ corpusKey?: string | undefined;
578
597
  query: string;
579
598
  label?: string | undefined;
580
599
  status: "pass" | "partial" | "fail";
@@ -639,6 +658,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
639
658
  } | undefined;
640
659
  caseTraceSnapshots?: {
641
660
  caseId: string;
661
+ corpusKey?: string | undefined;
642
662
  label?: string | undefined;
643
663
  query: string;
644
664
  status: import("../..").RAGEvaluationCaseResult["status"];
@@ -726,6 +746,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
726
746
  cases: {
727
747
  id: string;
728
748
  query: string;
749
+ corpusKey?: string | undefined;
729
750
  topK?: number | undefined;
730
751
  model?: string | undefined;
731
752
  scoreThreshold?: number | undefined;
@@ -775,6 +796,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
775
796
  cases: {
776
797
  id: string;
777
798
  query: string;
799
+ corpusKey?: string | undefined;
778
800
  topK?: number | undefined;
779
801
  model?: string | undefined;
780
802
  scoreThreshold?: number | undefined;
@@ -986,6 +1008,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
986
1008
  elapsedMs: number;
987
1009
  }> | undefined;
988
1010
  document?: {
1011
+ corpusKey?: string | undefined;
989
1012
  id: string;
990
1013
  title: string;
991
1014
  source: string;
@@ -1018,6 +1041,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
1018
1041
  elapsedMs: number;
1019
1042
  }> | undefined;
1020
1043
  document?: {
1044
+ corpusKey?: string | undefined;
1021
1045
  id: string;
1022
1046
  title: string;
1023
1047
  source: string;
@@ -1381,6 +1405,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
1381
1405
  reset: () => void;
1382
1406
  results: import("vue").Ref<{
1383
1407
  chunkId: string;
1408
+ corpusKey?: string | undefined;
1384
1409
  score: number;
1385
1410
  text: string;
1386
1411
  title?: string | undefined;
@@ -1408,6 +1433,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
1408
1433
  } | undefined;
1409
1434
  }[], import("../..").RAGSource[] | {
1410
1435
  chunkId: string;
1436
+ corpusKey?: string | undefined;
1411
1437
  score: number;
1412
1438
  text: string;
1413
1439
  title?: string | undefined;
@@ -16,6 +16,7 @@ export declare const useRAGChunkPreview: (path: string) => {
16
16
  kind?: string | undefined;
17
17
  id: string;
18
18
  title: string;
19
+ corpusKey?: string | undefined;
19
20
  format?: import("../..").RAGContentFormat | undefined;
20
21
  chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
21
22
  chunkSize?: number | undefined;
@@ -32,6 +33,7 @@ export declare const useRAGChunkPreview: (path: string) => {
32
33
  normalizedText: string;
33
34
  chunks: {
34
35
  chunkId: string;
36
+ corpusKey?: string | undefined;
35
37
  text: string;
36
38
  title?: string | undefined;
37
39
  source?: string | undefined;
@@ -73,6 +75,7 @@ export declare const useRAGChunkPreview: (path: string) => {
73
75
  kind?: string | undefined;
74
76
  id: string;
75
77
  title: string;
78
+ corpusKey?: string | undefined;
76
79
  format?: import("../..").RAGContentFormat | undefined;
77
80
  chunkStrategy?: import("../..").RAGChunkingStrategy | undefined;
78
81
  chunkSize?: number | undefined;
@@ -89,6 +92,7 @@ export declare const useRAGChunkPreview: (path: string) => {
89
92
  normalizedText: string;
90
93
  chunks: {
91
94
  chunkId: string;
95
+ corpusKey?: string | undefined;
92
96
  text: string;
93
97
  title?: string | undefined;
94
98
  source?: string | undefined;
@@ -1,6 +1,7 @@
1
1
  import type { RAGDocumentsResponse, RAGIndexedDocument } from '../../../types/ai';
2
2
  export declare const useRAGDocuments: (path: string) => {
3
3
  documents: import("vue").Ref<{
4
+ corpusKey?: string | undefined;
4
5
  id: string;
5
6
  title: string;
6
7
  source: string;
@@ -19,6 +20,7 @@ export declare const useRAGDocuments: (path: string) => {
19
20
  provenanceLabel?: string | undefined;
20
21
  } | undefined;
21
22
  }[], RAGIndexedDocument[] | {
23
+ corpusKey?: string | undefined;
22
24
  id: string;
23
25
  title: string;
24
26
  source: string;
@@ -42,6 +44,7 @@ export declare const useRAGDocuments: (path: string) => {
42
44
  lastResponse: import("vue").Ref<{
43
45
  ok: true;
44
46
  documents: {
47
+ corpusKey?: string | undefined;
45
48
  id: string;
46
49
  title: string;
47
50
  source: string;
@@ -64,6 +67,7 @@ export declare const useRAGDocuments: (path: string) => {
64
67
  } | null, RAGDocumentsResponse | {
65
68
  ok: true;
66
69
  documents: {
70
+ corpusKey?: string | undefined;
67
71
  id: string;
68
72
  title: string;
69
73
  source: string;
@@ -8,6 +8,7 @@ export declare const useRAGEvaluate: (path: string) => {
8
8
  cases: {
9
9
  id: string;
10
10
  query: string;
11
+ corpusKey?: string | undefined;
11
12
  topK?: number | undefined;
12
13
  model?: string | undefined;
13
14
  scoreThreshold?: number | undefined;
@@ -51,6 +52,7 @@ export declare const useRAGEvaluate: (path: string) => {
51
52
  cases: {
52
53
  id: string;
53
54
  query: string;
55
+ corpusKey?: string | undefined;
54
56
  topK?: number | undefined;
55
57
  model?: string | undefined;
56
58
  scoreThreshold?: number | undefined;
@@ -93,8 +95,10 @@ export declare const useRAGEvaluate: (path: string) => {
93
95
  } | null>;
94
96
  lastResponse: import("vue").Ref<{
95
97
  ok: true;
98
+ corpusKeys?: string[] | undefined;
96
99
  cases: {
97
100
  caseId: string;
101
+ corpusKey?: string | undefined;
98
102
  query: string;
99
103
  label?: string | undefined;
100
104
  status: "pass" | "partial" | "fail";
@@ -128,8 +132,10 @@ export declare const useRAGEvaluate: (path: string) => {
128
132
  passingRate: number;
129
133
  } | null, RAGEvaluationResponse | {
130
134
  ok: true;
135
+ corpusKeys?: string[] | undefined;
131
136
  cases: {
132
137
  caseId: string;
138
+ corpusKey?: string | undefined;
133
139
  query: string;
134
140
  label?: string | undefined;
135
141
  status: "pass" | "partial" | "fail";
@@ -187,8 +193,10 @@ export declare const useRAGEvaluate: (path: string) => {
187
193
  elapsedMs: number;
188
194
  response: {
189
195
  ok: true;
196
+ corpusKeys?: string[] | undefined;
190
197
  cases: {
191
198
  caseId: string;
199
+ corpusKey?: string | undefined;
192
200
  query: string;
193
201
  label?: string | undefined;
194
202
  status: "pass" | "partial" | "fail";
@@ -253,6 +261,7 @@ export declare const useRAGEvaluate: (path: string) => {
253
261
  } | undefined;
254
262
  caseTraceSnapshots?: {
255
263
  caseId: string;
264
+ corpusKey?: string | undefined;
256
265
  label?: string | undefined;
257
266
  query: string;
258
267
  status: import("../..").RAGEvaluationCaseResult["status"];
@@ -340,8 +349,10 @@ export declare const useRAGEvaluate: (path: string) => {
340
349
  elapsedMs: number;
341
350
  response: {
342
351
  ok: true;
352
+ corpusKeys?: string[] | undefined;
343
353
  cases: {
344
354
  caseId: string;
355
+ corpusKey?: string | undefined;
345
356
  query: string;
346
357
  label?: string | undefined;
347
358
  status: "pass" | "partial" | "fail";
@@ -406,6 +417,7 @@ export declare const useRAGEvaluate: (path: string) => {
406
417
  } | undefined;
407
418
  caseTraceSnapshots?: {
408
419
  caseId: string;
420
+ corpusKey?: string | undefined;
409
421
  label?: string | undefined;
410
422
  query: string;
411
423
  status: import("../..").RAGEvaluationCaseResult["status"];
@@ -493,6 +505,7 @@ export declare const useRAGEvaluate: (path: string) => {
493
505
  cases: {
494
506
  id: string;
495
507
  query: string;
508
+ corpusKey?: string | undefined;
496
509
  topK?: number | undefined;
497
510
  model?: string | undefined;
498
511
  scoreThreshold?: number | undefined;
@@ -542,6 +555,7 @@ export declare const useRAGEvaluate: (path: string) => {
542
555
  cases: {
543
556
  id: string;
544
557
  query: string;
558
+ corpusKey?: string | undefined;
545
559
  topK?: number | undefined;
546
560
  model?: string | undefined;
547
561
  scoreThreshold?: number | undefined;
@@ -159,6 +159,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
159
159
  elapsedMs: number;
160
160
  }> | undefined;
161
161
  document?: {
162
+ corpusKey?: string | undefined;
162
163
  id: string;
163
164
  title: string;
164
165
  source: string;
@@ -191,6 +192,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
191
192
  elapsedMs: number;
192
193
  }> | undefined;
193
194
  document?: {
195
+ corpusKey?: string | undefined;
194
196
  id: string;
195
197
  title: string;
196
198
  source: string;
@@ -75,6 +75,7 @@ export declare const useRAGSearch: (path: string) => {
75
75
  reset: () => void;
76
76
  results: import("vue").Ref<{
77
77
  chunkId: string;
78
+ corpusKey?: string | undefined;
78
79
  score: number;
79
80
  text: string;
80
81
  title?: string | undefined;
@@ -102,6 +103,7 @@ export declare const useRAGSearch: (path: string) => {
102
103
  } | undefined;
103
104
  }[], RAGSource[] | {
104
105
  chunkId: string;
106
+ corpusKey?: string | undefined;
105
107
  score: number;
106
108
  text: string;
107
109
  title?: string | undefined;