@absolutejs/absolute 0.19.0-beta.604 → 0.19.0-beta.606
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 +238 -6
- package/dist/ai/client/index.js.map +4 -4
- package/dist/ai/client/ui.js +242 -6
- package/dist/ai/client/ui.js.map +4 -4
- package/dist/ai/index.js +381 -38
- package/dist/ai/index.js.map +7 -7
- package/dist/ai/rag/quality.js +17 -6
- package/dist/ai/rag/quality.js.map +3 -3
- package/dist/ai/rag/ui.js +242 -6
- package/dist/ai/rag/ui.js.map +4 -4
- package/dist/ai-client/angular/ai/index.js +237 -5
- package/dist/ai-client/react/ai/index.js +281 -12
- package/dist/ai-client/vue/ai/index.js +364 -97
- package/dist/angular/ai/index.js +238 -6
- package/dist/angular/ai/index.js.map +4 -4
- package/dist/angular/index.js +2 -2
- package/dist/angular/index.js.map +1 -1
- package/dist/angular/server.js +2 -2
- package/dist/angular/server.js.map +1 -1
- package/dist/build.js +2 -2
- package/dist/build.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/react/ai/index.js +282 -13
- package/dist/react/ai/index.js.map +6 -6
- package/dist/src/ai/client/ui.d.ts +1 -1
- package/dist/src/ai/rag/index.d.ts +1 -1
- package/dist/src/ai/rag/presentation.d.ts +7 -1
- package/dist/src/ai/rag/ui.d.ts +1 -1
- package/dist/src/react/ai/useRAG.d.ts +9 -0
- package/dist/src/react/ai/useRAGChunkPreview.d.ts +7 -0
- package/dist/src/react/ai/useRAGSources.d.ts +2 -0
- package/dist/src/svelte/ai/createRAG.d.ts +9 -0
- package/dist/src/svelte/ai/createRAGChunkPreview.d.ts +7 -0
- package/dist/src/svelte/ai/createRAGSources.d.ts +2 -0
- package/dist/src/vue/ai/useRAG.d.ts +69 -0
- package/dist/src/vue/ai/useRAGChunkPreview.d.ts +37 -0
- package/dist/src/vue/ai/useRAGSearch.d.ts +30 -0
- package/dist/src/vue/ai/useRAGSources.d.ts +2 -0
- package/dist/svelte/ai/index.js +334 -53
- package/dist/svelte/ai/index.js.map +6 -6
- package/dist/types/ai.d.ts +66 -0
- package/dist/vue/ai/index.js +328 -59
- package/dist/vue/ai/index.js.map +6 -6
- package/package.json +1 -1
package/dist/types/ai.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type RAGSource = {
|
|
|
10
10
|
source?: string;
|
|
11
11
|
metadata?: Record<string, unknown>;
|
|
12
12
|
labels?: RAGSourceLabels;
|
|
13
|
+
structure?: RAGChunkStructure;
|
|
13
14
|
};
|
|
14
15
|
export type RAGSourceGroup = {
|
|
15
16
|
key: string;
|
|
@@ -20,6 +21,7 @@ export type RAGSourceGroup = {
|
|
|
20
21
|
count: number;
|
|
21
22
|
chunks: RAGSource[];
|
|
22
23
|
labels?: RAGSourceLabels;
|
|
24
|
+
structure?: RAGChunkStructure;
|
|
23
25
|
};
|
|
24
26
|
export type RAGCitation = {
|
|
25
27
|
key: string;
|
|
@@ -49,6 +51,7 @@ export type RAGSourceSummary = {
|
|
|
49
51
|
contextLabel?: string;
|
|
50
52
|
locatorLabel?: string;
|
|
51
53
|
provenanceLabel?: string;
|
|
54
|
+
structure?: RAGChunkStructure;
|
|
52
55
|
};
|
|
53
56
|
export type RAGGroundingReference = {
|
|
54
57
|
number: number;
|
|
@@ -148,6 +151,7 @@ export type RAGDocumentChunk = {
|
|
|
148
151
|
source?: string;
|
|
149
152
|
metadata?: Record<string, unknown>;
|
|
150
153
|
embedding?: number[];
|
|
154
|
+
structure?: RAGChunkStructure;
|
|
151
155
|
};
|
|
152
156
|
export type RAGEmbeddingInput = {
|
|
153
157
|
text: string;
|
|
@@ -410,6 +414,7 @@ export type RAGDocumentChunkPreview = {
|
|
|
410
414
|
normalizedText: string;
|
|
411
415
|
chunks: Array<RAGDocumentChunk & {
|
|
412
416
|
labels?: RAGSourceLabels;
|
|
417
|
+
structure?: RAGChunkStructure;
|
|
413
418
|
}>;
|
|
414
419
|
};
|
|
415
420
|
export type RAGSourceLabels = {
|
|
@@ -417,6 +422,67 @@ export type RAGSourceLabels = {
|
|
|
417
422
|
locatorLabel?: string;
|
|
418
423
|
provenanceLabel?: string;
|
|
419
424
|
};
|
|
425
|
+
export type RAGChunkSection = {
|
|
426
|
+
title?: string;
|
|
427
|
+
path?: string[];
|
|
428
|
+
depth?: number;
|
|
429
|
+
kind?: 'markdown_heading' | 'html_heading';
|
|
430
|
+
};
|
|
431
|
+
export type RAGChunkSequence = {
|
|
432
|
+
sectionChunkId?: string;
|
|
433
|
+
sectionChunkIndex?: number;
|
|
434
|
+
sectionChunkCount?: number;
|
|
435
|
+
previousChunkId?: string;
|
|
436
|
+
nextChunkId?: string;
|
|
437
|
+
};
|
|
438
|
+
export type RAGChunkStructure = {
|
|
439
|
+
section?: RAGChunkSection;
|
|
440
|
+
sequence?: RAGChunkSequence;
|
|
441
|
+
};
|
|
442
|
+
export type RAGChunkGraphNode = {
|
|
443
|
+
chunkId: string;
|
|
444
|
+
label: string;
|
|
445
|
+
source?: string;
|
|
446
|
+
title?: string;
|
|
447
|
+
score?: number;
|
|
448
|
+
contextLabel?: string;
|
|
449
|
+
locatorLabel?: string;
|
|
450
|
+
provenanceLabel?: string;
|
|
451
|
+
structure?: RAGChunkStructure;
|
|
452
|
+
};
|
|
453
|
+
export type RAGChunkGraphEdge = {
|
|
454
|
+
fromChunkId: string;
|
|
455
|
+
toChunkId: string;
|
|
456
|
+
relation: 'previous' | 'next' | 'section_parent' | 'section_child';
|
|
457
|
+
};
|
|
458
|
+
export type RAGChunkGraphSectionGroup = {
|
|
459
|
+
id: string;
|
|
460
|
+
title?: string;
|
|
461
|
+
path?: string[];
|
|
462
|
+
depth?: number;
|
|
463
|
+
kind?: 'markdown_heading' | 'html_heading';
|
|
464
|
+
chunkIds: string[];
|
|
465
|
+
chunkCount: number;
|
|
466
|
+
leadChunkId?: string;
|
|
467
|
+
parentSectionId?: string;
|
|
468
|
+
childSectionIds: string[];
|
|
469
|
+
};
|
|
470
|
+
export type RAGChunkGraph = {
|
|
471
|
+
nodes: RAGChunkGraphNode[];
|
|
472
|
+
edges: RAGChunkGraphEdge[];
|
|
473
|
+
sections: RAGChunkGraphSectionGroup[];
|
|
474
|
+
};
|
|
475
|
+
export type RAGChunkGraphNavigation = {
|
|
476
|
+
activeChunkId?: string;
|
|
477
|
+
activeNode?: RAGChunkGraphNode;
|
|
478
|
+
previousNode?: RAGChunkGraphNode;
|
|
479
|
+
nextNode?: RAGChunkGraphNode;
|
|
480
|
+
section?: RAGChunkGraphSectionGroup;
|
|
481
|
+
parentSection?: RAGChunkGraphSectionGroup;
|
|
482
|
+
childSections: RAGChunkGraphSectionGroup[];
|
|
483
|
+
siblingSections: RAGChunkGraphSectionGroup[];
|
|
484
|
+
sectionNodes: RAGChunkGraphNode[];
|
|
485
|
+
};
|
|
420
486
|
export type RAGBackendDescriptor = {
|
|
421
487
|
id: string;
|
|
422
488
|
label: string;
|