@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.
Files changed (45) hide show
  1. package/dist/ai/client/index.js +238 -6
  2. package/dist/ai/client/index.js.map +4 -4
  3. package/dist/ai/client/ui.js +242 -6
  4. package/dist/ai/client/ui.js.map +4 -4
  5. package/dist/ai/index.js +381 -38
  6. package/dist/ai/index.js.map +7 -7
  7. package/dist/ai/rag/quality.js +17 -6
  8. package/dist/ai/rag/quality.js.map +3 -3
  9. package/dist/ai/rag/ui.js +242 -6
  10. package/dist/ai/rag/ui.js.map +4 -4
  11. package/dist/ai-client/angular/ai/index.js +237 -5
  12. package/dist/ai-client/react/ai/index.js +281 -12
  13. package/dist/ai-client/vue/ai/index.js +364 -97
  14. package/dist/angular/ai/index.js +238 -6
  15. package/dist/angular/ai/index.js.map +4 -4
  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 +282 -13
  25. package/dist/react/ai/index.js.map +6 -6
  26. package/dist/src/ai/client/ui.d.ts +1 -1
  27. package/dist/src/ai/rag/index.d.ts +1 -1
  28. package/dist/src/ai/rag/presentation.d.ts +7 -1
  29. package/dist/src/ai/rag/ui.d.ts +1 -1
  30. package/dist/src/react/ai/useRAG.d.ts +9 -0
  31. package/dist/src/react/ai/useRAGChunkPreview.d.ts +7 -0
  32. package/dist/src/react/ai/useRAGSources.d.ts +2 -0
  33. package/dist/src/svelte/ai/createRAG.d.ts +9 -0
  34. package/dist/src/svelte/ai/createRAGChunkPreview.d.ts +7 -0
  35. package/dist/src/svelte/ai/createRAGSources.d.ts +2 -0
  36. package/dist/src/vue/ai/useRAG.d.ts +69 -0
  37. package/dist/src/vue/ai/useRAGChunkPreview.d.ts +37 -0
  38. package/dist/src/vue/ai/useRAGSearch.d.ts +30 -0
  39. package/dist/src/vue/ai/useRAGSources.d.ts +2 -0
  40. package/dist/svelte/ai/index.js +334 -53
  41. package/dist/svelte/ai/index.js.map +6 -6
  42. package/dist/types/ai.d.ts +66 -0
  43. package/dist/vue/ai/index.js +328 -59
  44. package/dist/vue/ai/index.js.map +6 -6
  45. package/package.json +1 -1
@@ -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;