@absolutejs/rag 0.0.26 → 0.0.27

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 (97) hide show
  1. package/dist/adapter-kit/index.js +4 -4
  2. package/dist/adapter-kit/index.js.map +14 -14
  3. package/dist/angular/index.js.map +6 -6
  4. package/dist/client/index.js.map +6 -6
  5. package/dist/client/ui.js.map +4 -4
  6. package/dist/index.js +4 -4
  7. package/dist/index.js.map +29 -29
  8. package/dist/presentation/ui.js.map +6 -6
  9. package/dist/quality/quality.js.map +4 -4
  10. package/dist/react/index.js.map +14 -14
  11. package/dist/src/adapter-kit/index.d.ts +1 -1
  12. package/dist/src/adapters/inMemory.d.ts +1 -1
  13. package/dist/src/adapters/sync.d.ts +1 -1
  14. package/dist/src/angular/ai-rag-stream.service.d.ts +9 -9
  15. package/dist/src/angular/ai-rag-workflow.service.d.ts +10 -10
  16. package/dist/src/angular/rag-client.service.d.ts +68 -68
  17. package/dist/src/chat/chat.d.ts +1 -1
  18. package/dist/src/client/createRAGAnswerWorkflow.d.ts +10 -9
  19. package/dist/src/client/ragClient.d.ts +41 -40
  20. package/dist/src/client/ui.d.ts +1 -1
  21. package/dist/src/index.d.ts +2 -1
  22. package/dist/src/ingestion/ingestion.d.ts +1 -1
  23. package/dist/src/internal/accessControl.d.ts +1 -1
  24. package/dist/src/internal/jobState.d.ts +1 -1
  25. package/dist/src/presentation/htmxCitationFragments.d.ts +1 -1
  26. package/dist/src/presentation/htmxConfig.d.ts +1 -1
  27. package/dist/src/presentation/htmxRenderers.d.ts +2 -1
  28. package/dist/src/presentation/htmxWorkflowRenderers.d.ts +1 -1
  29. package/dist/src/presentation/presentation.d.ts +5 -4
  30. package/dist/src/providers/contactProviders.d.ts +1 -1
  31. package/dist/src/providers/emailProviders.d.ts +1 -1
  32. package/dist/src/providers/embeddingProviders.d.ts +1 -1
  33. package/dist/src/providers/extractorProviders.d.ts +1 -1
  34. package/dist/src/providers/rerankerProviders.d.ts +1 -1
  35. package/dist/src/providers/socialProviders.d.ts +1 -1
  36. package/dist/src/quality/quality.d.ts +2 -1
  37. package/dist/src/react/useRAG.d.ts +117 -117
  38. package/dist/src/react/useRAGChunkPreview.d.ts +5 -5
  39. package/dist/src/react/useRAGCitations.d.ts +4 -4
  40. package/dist/src/react/useRAGDocuments.d.ts +1 -1
  41. package/dist/src/react/useRAGEvaluate.d.ts +4 -4
  42. package/dist/src/react/useRAGGrounding.d.ts +3 -3
  43. package/dist/src/react/useRAGIndexAdmin.d.ts +5 -5
  44. package/dist/src/react/useRAGIngest.d.ts +1 -1
  45. package/dist/src/react/useRAGOps.d.ts +1 -1
  46. package/dist/src/react/useRAGSearch.d.ts +2 -1
  47. package/dist/src/react/useRAGSources.d.ts +6 -6
  48. package/dist/src/react/useRAGStatus.d.ts +2 -2
  49. package/dist/src/react/useRAGStream.d.ts +11 -11
  50. package/dist/src/react/useRAGWorkflow.d.ts +12 -12
  51. package/dist/src/retrieval/collection.d.ts +1 -1
  52. package/dist/src/retrieval/context.d.ts +1 -1
  53. package/dist/src/retrieval/embedding.d.ts +1 -1
  54. package/dist/src/retrieval/grounding.d.ts +2 -1
  55. package/dist/src/retrieval/lexical.d.ts +2 -1
  56. package/dist/src/retrieval/queryTransforms.d.ts +1 -1
  57. package/dist/src/retrieval/reranking.d.ts +1 -1
  58. package/dist/src/retrieval/retrievalStrategies.d.ts +1 -1
  59. package/dist/src/svelte/createRAG.d.ts +109 -109
  60. package/dist/src/svelte/createRAGChunkPreview.d.ts +5 -5
  61. package/dist/src/svelte/createRAGCitations.d.ts +4 -4
  62. package/dist/src/svelte/createRAGDocuments.d.ts +1 -1
  63. package/dist/src/svelte/createRAGEvaluate.d.ts +4 -4
  64. package/dist/src/svelte/createRAGGrounding.d.ts +3 -3
  65. package/dist/src/svelte/createRAGIndexAdmin.d.ts +5 -5
  66. package/dist/src/svelte/createRAGIngest.d.ts +1 -1
  67. package/dist/src/svelte/createRAGOps.d.ts +1 -1
  68. package/dist/src/svelte/createRAGSearch.d.ts +2 -1
  69. package/dist/src/svelte/createRAGSources.d.ts +6 -6
  70. package/dist/src/svelte/createRAGStatus.d.ts +2 -2
  71. package/dist/src/svelte/createRAGStream.d.ts +8 -8
  72. package/dist/src/svelte/createRAGWorkflow.d.ts +9 -9
  73. package/dist/src/sync/sync.d.ts +2 -2
  74. package/dist/src/vue/useRAG.d.ts +257 -257
  75. package/dist/src/vue/useRAGChunkPreview.d.ts +25 -25
  76. package/dist/src/vue/useRAGCitations.d.ts +4 -4
  77. package/dist/src/vue/useRAGDocuments.d.ts +9 -9
  78. package/dist/src/vue/useRAGEvaluate.d.ts +50 -50
  79. package/dist/src/vue/useRAGGrounding.d.ts +3 -3
  80. package/dist/src/vue/useRAGIndexAdmin.d.ts +35 -35
  81. package/dist/src/vue/useRAGIngest.d.ts +1 -1
  82. package/dist/src/vue/useRAGOps.d.ts +9 -9
  83. package/dist/src/vue/useRAGSearch.d.ts +30 -29
  84. package/dist/src/vue/useRAGSources.d.ts +6 -6
  85. package/dist/src/vue/useRAGStatus.d.ts +2 -2
  86. package/dist/src/vue/useRAGStream.d.ts +10 -10
  87. package/dist/src/vue/useRAGWorkflow.d.ts +11 -11
  88. package/dist/svelte/index.js.map +13 -13
  89. package/dist/types/adapters.d.ts +1 -1
  90. package/dist/types/client.d.ts +2 -1
  91. package/dist/types/core.d.ts +1 -1
  92. package/dist/types/engine.d.ts +4325 -0
  93. package/dist/types/index.d.ts +1 -0
  94. package/dist/types/presentation.d.ts +2 -1
  95. package/dist/types/retrieval.d.ts +1 -1
  96. package/dist/vue/index.js.map +13 -13
  97. package/package.json +6 -2
@@ -1,33 +1,33 @@
1
- import type { RAGDocumentChunkPreview } from "@absolutejs/ai";
1
+ import type { RAGDocumentChunkPreview } from "../../types/engine";
2
2
  export declare const useRAGChunkPreview: (path: string) => {
3
3
  activeChunkId: import("vue").Ref<string | null, string | null>;
4
- activeSectionDiagnostic: import("vue").ComputedRef<import("@absolutejs/ai").RAGSectionRetrievalDiagnostic | null>;
4
+ activeSectionDiagnostic: import("vue").ComputedRef<import("..").RAGSectionRetrievalDiagnostic | null>;
5
5
  clear: () => void;
6
- chunkGraph: import("vue").ComputedRef<import("@absolutejs/ai").RAGChunkGraph | null>;
6
+ chunkGraph: import("vue").ComputedRef<import("..").RAGChunkGraph | null>;
7
7
  error: import("vue").Ref<string | null, string | null>;
8
8
  inspect: (id: string) => Promise<{
9
9
  ok: true;
10
10
  } & RAGDocumentChunkPreview>;
11
11
  isLoading: import("vue").Ref<boolean, boolean>;
12
- navigation: import("vue").ComputedRef<import("@absolutejs/ai").RAGChunkGraphNavigation | null>;
12
+ navigation: import("vue").ComputedRef<import("..").RAGChunkGraphNavigation | null>;
13
13
  preview: import("vue").Ref<{
14
14
  document: {
15
- source: string;
16
- title: string;
15
+ corpusKey?: string | undefined;
17
16
  id: string;
17
+ title: string;
18
+ source: string;
19
+ format?: import("..").RAGContentFormat | undefined;
18
20
  kind?: string | undefined;
19
- format?: import("@absolutejs/ai").RAGContentFormat | undefined;
20
- corpusKey?: string | undefined;
21
+ chunkStrategy?: import("..").RAGChunkingStrategy | undefined;
22
+ chunkSize?: number | undefined;
21
23
  chunkCount?: number | undefined;
24
+ createdAt?: number | undefined;
25
+ updatedAt?: number | undefined;
22
26
  labels?: {
23
27
  contextLabel?: string | undefined;
24
28
  locatorLabel?: string | undefined;
25
29
  provenanceLabel?: string | undefined;
26
30
  } | undefined;
27
- createdAt?: number | undefined;
28
- chunkStrategy?: import("@absolutejs/ai").RAGChunkingStrategy | undefined;
29
- chunkSize?: number | undefined;
30
- updatedAt?: number | undefined;
31
31
  metadata?: Record<string, unknown> | undefined;
32
32
  };
33
33
  normalizedText: string;
@@ -72,28 +72,28 @@ export declare const useRAGChunkPreview: (path: string) => {
72
72
  sectionExcerpt: string;
73
73
  } | undefined;
74
74
  excerptSelection?: {
75
- mode: import("@absolutejs/ai").RAGExcerptMode;
76
- reason: import("@absolutejs/ai").RAGExcerptPromotionReason;
75
+ mode: import("..").RAGExcerptMode;
76
+ reason: import("..").RAGExcerptPromotionReason;
77
77
  } | undefined;
78
78
  }[];
79
79
  } | null, RAGDocumentChunkPreview | {
80
80
  document: {
81
- source: string;
82
- title: string;
81
+ corpusKey?: string | undefined;
83
82
  id: string;
83
+ title: string;
84
+ source: string;
85
+ format?: import("..").RAGContentFormat | undefined;
84
86
  kind?: string | undefined;
85
- format?: import("@absolutejs/ai").RAGContentFormat | undefined;
86
- corpusKey?: string | undefined;
87
+ chunkStrategy?: import("..").RAGChunkingStrategy | undefined;
88
+ chunkSize?: number | undefined;
87
89
  chunkCount?: number | undefined;
90
+ createdAt?: number | undefined;
91
+ updatedAt?: number | undefined;
88
92
  labels?: {
89
93
  contextLabel?: string | undefined;
90
94
  locatorLabel?: string | undefined;
91
95
  provenanceLabel?: string | undefined;
92
96
  } | undefined;
93
- createdAt?: number | undefined;
94
- chunkStrategy?: import("@absolutejs/ai").RAGChunkingStrategy | undefined;
95
- chunkSize?: number | undefined;
96
- updatedAt?: number | undefined;
97
97
  metadata?: Record<string, unknown> | undefined;
98
98
  };
99
99
  normalizedText: string;
@@ -138,12 +138,12 @@ export declare const useRAGChunkPreview: (path: string) => {
138
138
  sectionExcerpt: string;
139
139
  } | undefined;
140
140
  excerptSelection?: {
141
- mode: import("@absolutejs/ai").RAGExcerptMode;
142
- reason: import("@absolutejs/ai").RAGExcerptPromotionReason;
141
+ mode: import("..").RAGExcerptMode;
142
+ reason: import("..").RAGExcerptPromotionReason;
143
143
  } | undefined;
144
144
  }[];
145
145
  } | null>;
146
- sectionDiagnostics: import("vue").ComputedRef<import("@absolutejs/ai").RAGSectionRetrievalDiagnostic[]>;
146
+ sectionDiagnostics: import("vue").ComputedRef<import("..").RAGSectionRetrievalDiagnostic[]>;
147
147
  selectChildSection: (sectionId: string) => void;
148
148
  selectChunk: (id: string | null) => void;
149
149
  selectParentSection: () => void;
@@ -1,10 +1,10 @@
1
1
  import { type Ref } from "vue";
2
2
  import type { RAGSource } from "@absolutejs/ai";
3
3
  export declare const useRAGCitations: (sources: Ref<RAGSource[]>) => {
4
- citationReferenceMap: import("vue").ComputedRef<import("@absolutejs/ai").RAGCitationReferenceMap>;
5
- citations: import("vue").ComputedRef<import("@absolutejs/ai").RAGCitation[]>;
4
+ citationReferenceMap: import("vue").ComputedRef<import("..").RAGCitationReferenceMap>;
5
+ citations: import("vue").ComputedRef<import("..").RAGCitation[]>;
6
6
  hasCitations: import("vue").ComputedRef<boolean>;
7
- sourceGroups: import("vue").ComputedRef<import("@absolutejs/ai").RAGSourceGroup[]>;
8
- sourceSummaries: import("vue").ComputedRef<import("@absolutejs/ai").RAGSourceSummary[]>;
7
+ sourceGroups: import("vue").ComputedRef<import("..").RAGSourceGroup[]>;
8
+ sourceSummaries: import("vue").ComputedRef<import("..").RAGSourceSummary[]>;
9
9
  };
10
10
  export type UseRAGCitationsResult = ReturnType<typeof useRAGCitations>;
@@ -1,4 +1,4 @@
1
- import type { RAGDocumentsResponse, RAGIndexedDocument } from "@absolutejs/ai";
1
+ import type { RAGDocumentsResponse, RAGIndexedDocument } from "../../types/engine";
2
2
  export declare const useRAGDocuments: (path: string) => {
3
3
  documents: import("vue").Ref<{
4
4
  corpusKey?: string | undefined;
@@ -7,8 +7,8 @@ export declare const useRAGDocuments: (path: string) => {
7
7
  source: string;
8
8
  text?: string | undefined;
9
9
  kind?: string | undefined;
10
- format?: import("@absolutejs/ai").RAGContentFormat | undefined;
11
- chunkStrategy?: import("@absolutejs/ai").RAGChunkingStrategy | undefined;
10
+ format?: import("..").RAGContentFormat | undefined;
11
+ chunkStrategy?: import("..").RAGChunkingStrategy | undefined;
12
12
  chunkSize?: number | undefined;
13
13
  chunkCount?: number | undefined;
14
14
  createdAt?: number | undefined;
@@ -26,8 +26,8 @@ export declare const useRAGDocuments: (path: string) => {
26
26
  source: string;
27
27
  text?: string | undefined;
28
28
  kind?: string | undefined;
29
- format?: import("@absolutejs/ai").RAGContentFormat | undefined;
30
- chunkStrategy?: import("@absolutejs/ai").RAGChunkingStrategy | undefined;
29
+ format?: import("..").RAGContentFormat | undefined;
30
+ chunkStrategy?: import("..").RAGChunkingStrategy | undefined;
31
31
  chunkSize?: number | undefined;
32
32
  chunkCount?: number | undefined;
33
33
  createdAt?: number | undefined;
@@ -50,8 +50,8 @@ export declare const useRAGDocuments: (path: string) => {
50
50
  source: string;
51
51
  text?: string | undefined;
52
52
  kind?: string | undefined;
53
- format?: import("@absolutejs/ai").RAGContentFormat | undefined;
54
- chunkStrategy?: import("@absolutejs/ai").RAGChunkingStrategy | undefined;
53
+ format?: import("..").RAGContentFormat | undefined;
54
+ chunkStrategy?: import("..").RAGChunkingStrategy | undefined;
55
55
  chunkSize?: number | undefined;
56
56
  chunkCount?: number | undefined;
57
57
  createdAt?: number | undefined;
@@ -73,8 +73,8 @@ export declare const useRAGDocuments: (path: string) => {
73
73
  source: string;
74
74
  text?: string | undefined;
75
75
  kind?: string | undefined;
76
- format?: import("@absolutejs/ai").RAGContentFormat | undefined;
77
- chunkStrategy?: import("@absolutejs/ai").RAGChunkingStrategy | undefined;
76
+ format?: import("..").RAGContentFormat | undefined;
77
+ chunkStrategy?: import("..").RAGChunkingStrategy | undefined;
78
78
  chunkSize?: number | undefined;
79
79
  chunkCount?: number | undefined;
80
80
  createdAt?: number | undefined;
@@ -1,4 +1,4 @@
1
- import type { RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSuite, RAGEvaluationSuiteRun } from "@absolutejs/ai";
1
+ import type { RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSuite, RAGEvaluationSuiteRun } from "../../types/engine";
2
2
  export declare const useRAGEvaluate: (path: string) => {
3
3
  clearRuns: () => void;
4
4
  error: import("vue").Ref<string | null, string | null>;
@@ -20,11 +20,11 @@ export declare const useRAGEvaluate: (path: string) => {
20
20
  sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
21
21
  diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
22
22
  mmrLambda?: number | undefined;
23
- fusion?: import("@absolutejs/ai").RAGHybridFusionMode | undefined;
23
+ fusion?: import("..").RAGHybridFusionMode | undefined;
24
24
  fusionConstant?: number | undefined;
25
25
  lexicalWeight?: number | undefined;
26
26
  vectorWeight?: number | undefined;
27
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
27
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
28
28
  nativeCandidateLimit?: number | undefined;
29
29
  nativeMaxBackfills?: number | undefined;
30
30
  nativeMinResults?: number | undefined;
@@ -51,11 +51,11 @@ export declare const useRAGEvaluate: (path: string) => {
51
51
  sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
52
52
  diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
53
53
  mmrLambda?: number | undefined;
54
- fusion?: import("@absolutejs/ai").RAGHybridFusionMode | undefined;
54
+ fusion?: import("..").RAGHybridFusionMode | undefined;
55
55
  fusionConstant?: number | undefined;
56
56
  lexicalWeight?: number | undefined;
57
57
  vectorWeight?: number | undefined;
58
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
58
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
59
59
  nativeCandidateLimit?: number | undefined;
60
60
  nativeMaxBackfills?: number | undefined;
61
61
  nativeMinResults?: number | undefined;
@@ -78,11 +78,11 @@ export declare const useRAGEvaluate: (path: string) => {
78
78
  sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
79
79
  diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
80
80
  mmrLambda?: number | undefined;
81
- fusion?: import("@absolutejs/ai").RAGHybridFusionMode | undefined;
81
+ fusion?: import("..").RAGHybridFusionMode | undefined;
82
82
  fusionConstant?: number | undefined;
83
83
  lexicalWeight?: number | undefined;
84
84
  vectorWeight?: number | undefined;
85
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
85
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
86
86
  nativeCandidateLimit?: number | undefined;
87
87
  nativeMaxBackfills?: number | undefined;
88
88
  nativeMinResults?: number | undefined;
@@ -109,11 +109,11 @@ export declare const useRAGEvaluate: (path: string) => {
109
109
  sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
110
110
  diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
111
111
  mmrLambda?: number | undefined;
112
- fusion?: import("@absolutejs/ai").RAGHybridFusionMode | undefined;
112
+ fusion?: import("..").RAGHybridFusionMode | undefined;
113
113
  fusionConstant?: number | undefined;
114
114
  lexicalWeight?: number | undefined;
115
115
  vectorWeight?: number | undefined;
116
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
116
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
117
117
  nativeCandidateLimit?: number | undefined;
118
118
  nativeMaxBackfills?: number | undefined;
119
119
  nativeMinResults?: number | undefined;
@@ -198,11 +198,11 @@ export declare const useRAGEvaluate: (path: string) => {
198
198
  totalCases: number;
199
199
  passingRate: number;
200
200
  } | null>;
201
- leaderboard: import("vue").ComputedRef<import("@absolutejs/ai").RAGEvaluationLeaderboardEntry[]>;
201
+ leaderboard: import("vue").ComputedRef<import("..").RAGEvaluationLeaderboardEntry[]>;
202
202
  removeSuite: (id: string) => void;
203
203
  reset: () => void;
204
204
  runSuite: (suite: RAGEvaluationSuite, overrides?: Partial<RAGEvaluationInput>) => Promise<{
205
- caseTraceSnapshots: import("@absolutejs/ai").RAGEvaluationCaseTraceSnapshot[] | undefined;
205
+ caseTraceSnapshots: import("..").RAGEvaluationCaseTraceSnapshot[] | undefined;
206
206
  elapsedMs: number;
207
207
  finishedAt: number;
208
208
  id: `${string}-${string}-${string}-${string}-${string}`;
@@ -211,7 +211,7 @@ export declare const useRAGEvaluate: (path: string) => {
211
211
  response: RAGEvaluationResponse;
212
212
  startedAt: number;
213
213
  suiteId: string;
214
- traceSummary: import("@absolutejs/ai").RAGRetrievalTraceComparisonSummary | undefined;
214
+ traceSummary: import("..").RAGRetrievalTraceComparisonSummary | undefined;
215
215
  }>;
216
216
  saveSuite: (suite: RAGEvaluationSuite) => RAGEvaluationSuite;
217
217
  suiteRuns: import("vue").Ref<{
@@ -287,13 +287,13 @@ export declare const useRAGEvaluate: (path: string) => {
287
287
  averageCandidateTopK: number;
288
288
  averageLexicalTopK: number;
289
289
  stageCounts: {
290
- fusion?: number | undefined;
291
290
  input?: number | undefined;
292
- embed?: number | undefined;
293
291
  query_transform?: number | undefined;
294
292
  routing?: number | undefined;
293
+ embed?: number | undefined;
295
294
  vector_search?: number | undefined;
296
295
  lexical_search?: number | undefined;
296
+ fusion?: number | undefined;
297
297
  rerank?: number | undefined;
298
298
  diversity?: number | undefined;
299
299
  source_balance?: number | undefined;
@@ -307,7 +307,7 @@ export declare const useRAGEvaluate: (path: string) => {
307
307
  corpusKey?: string | undefined;
308
308
  label?: string | undefined;
309
309
  query: string;
310
- status: import("@absolutejs/ai").RAGEvaluationCaseResult["status"];
310
+ status: import("..").RAGEvaluationCaseResult["status"];
311
311
  inputFilter?: Record<string, unknown> | undefined;
312
312
  previousInputFilter?: Record<string, unknown> | undefined;
313
313
  inputRetrieval?: import("@absolutejs/ai").RAGHybridRetrievalMode | {
@@ -317,11 +317,11 @@ export declare const useRAGEvaluate: (path: string) => {
317
317
  sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
318
318
  diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
319
319
  mmrLambda?: number | undefined;
320
- fusion?: import("@absolutejs/ai").RAGHybridFusionMode | undefined;
320
+ fusion?: import("..").RAGHybridFusionMode | undefined;
321
321
  fusionConstant?: number | undefined;
322
322
  lexicalWeight?: number | undefined;
323
323
  vectorWeight?: number | undefined;
324
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
324
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
325
325
  nativeCandidateLimit?: number | undefined;
326
326
  nativeMaxBackfills?: number | undefined;
327
327
  nativeMinResults?: number | undefined;
@@ -334,11 +334,11 @@ export declare const useRAGEvaluate: (path: string) => {
334
334
  sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
335
335
  diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
336
336
  mmrLambda?: number | undefined;
337
- fusion?: import("@absolutejs/ai").RAGHybridFusionMode | undefined;
337
+ fusion?: import("..").RAGHybridFusionMode | undefined;
338
338
  fusionConstant?: number | undefined;
339
339
  lexicalWeight?: number | undefined;
340
340
  vectorWeight?: number | undefined;
341
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
341
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
342
342
  nativeCandidateLimit?: number | undefined;
343
343
  nativeMaxBackfills?: number | undefined;
344
344
  nativeMinResults?: number | undefined;
@@ -394,8 +394,8 @@ export declare const useRAGEvaluate: (path: string) => {
394
394
  previousSqliteQueryJsRemainderClauseCount?: number | undefined;
395
395
  sqliteQueryMultiplierUsed?: number | undefined;
396
396
  previousSqliteQueryMultiplierUsed?: number | undefined;
397
- sqliteQueryPlannerProfileUsed?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
398
- previousSqliteQueryPlannerProfileUsed?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
397
+ sqliteQueryPlannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
398
+ previousSqliteQueryPlannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
399
399
  sqliteQueryCandidateLimitUsed?: number | undefined;
400
400
  previousSqliteQueryCandidateLimitUsed?: number | undefined;
401
401
  sqliteQueryMaxBackfillsUsed?: number | undefined;
@@ -448,8 +448,8 @@ export declare const useRAGEvaluate: (path: string) => {
448
448
  previousPostgresQueryJsRemainderClauseCount?: number | undefined;
449
449
  postgresQueryMultiplierUsed?: number | undefined;
450
450
  previousPostgresQueryMultiplierUsed?: number | undefined;
451
- postgresQueryPlannerProfileUsed?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
452
- previousPostgresQueryPlannerProfileUsed?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
451
+ postgresQueryPlannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
452
+ previousPostgresQueryPlannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
453
453
  postgresQueryCandidateLimitUsed?: number | undefined;
454
454
  previousPostgresQueryCandidateLimitUsed?: number | undefined;
455
455
  postgresQueryMaxBackfillsUsed?: number | undefined;
@@ -509,13 +509,13 @@ export declare const useRAGEvaluate: (path: string) => {
509
509
  sourceAwareUnitScopeLabel?: string | undefined;
510
510
  previousSourceAwareUnitScopeLabel?: string | undefined;
511
511
  stageCounts: {
512
- fusion?: number | undefined;
513
512
  input?: number | undefined;
514
- embed?: number | undefined;
515
513
  query_transform?: number | undefined;
516
514
  routing?: number | undefined;
515
+ embed?: number | undefined;
517
516
  vector_search?: number | undefined;
518
517
  lexical_search?: number | undefined;
518
+ fusion?: number | undefined;
519
519
  rerank?: number | undefined;
520
520
  diversity?: number | undefined;
521
521
  source_balance?: number | undefined;
@@ -524,13 +524,13 @@ export declare const useRAGEvaluate: (path: string) => {
524
524
  finalize?: number | undefined;
525
525
  };
526
526
  previousStageCounts: {
527
- fusion?: number | undefined;
528
527
  input?: number | undefined;
529
- embed?: number | undefined;
530
528
  query_transform?: number | undefined;
531
529
  routing?: number | undefined;
530
+ embed?: number | undefined;
532
531
  vector_search?: number | undefined;
533
532
  lexical_search?: number | undefined;
533
+ fusion?: number | undefined;
534
534
  rerank?: number | undefined;
535
535
  diversity?: number | undefined;
536
536
  source_balance?: number | undefined;
@@ -614,13 +614,13 @@ export declare const useRAGEvaluate: (path: string) => {
614
614
  averageCandidateTopK: number;
615
615
  averageLexicalTopK: number;
616
616
  stageCounts: {
617
- fusion?: number | undefined;
618
617
  input?: number | undefined;
619
- embed?: number | undefined;
620
618
  query_transform?: number | undefined;
621
619
  routing?: number | undefined;
620
+ embed?: number | undefined;
622
621
  vector_search?: number | undefined;
623
622
  lexical_search?: number | undefined;
623
+ fusion?: number | undefined;
624
624
  rerank?: number | undefined;
625
625
  diversity?: number | undefined;
626
626
  source_balance?: number | undefined;
@@ -634,7 +634,7 @@ export declare const useRAGEvaluate: (path: string) => {
634
634
  corpusKey?: string | undefined;
635
635
  label?: string | undefined;
636
636
  query: string;
637
- status: import("@absolutejs/ai").RAGEvaluationCaseResult["status"];
637
+ status: import("..").RAGEvaluationCaseResult["status"];
638
638
  inputFilter?: Record<string, unknown> | undefined;
639
639
  previousInputFilter?: Record<string, unknown> | undefined;
640
640
  inputRetrieval?: import("@absolutejs/ai").RAGHybridRetrievalMode | {
@@ -644,11 +644,11 @@ export declare const useRAGEvaluate: (path: string) => {
644
644
  sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
645
645
  diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
646
646
  mmrLambda?: number | undefined;
647
- fusion?: import("@absolutejs/ai").RAGHybridFusionMode | undefined;
647
+ fusion?: import("..").RAGHybridFusionMode | undefined;
648
648
  fusionConstant?: number | undefined;
649
649
  lexicalWeight?: number | undefined;
650
650
  vectorWeight?: number | undefined;
651
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
651
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
652
652
  nativeCandidateLimit?: number | undefined;
653
653
  nativeMaxBackfills?: number | undefined;
654
654
  nativeMinResults?: number | undefined;
@@ -661,11 +661,11 @@ export declare const useRAGEvaluate: (path: string) => {
661
661
  sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
662
662
  diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
663
663
  mmrLambda?: number | undefined;
664
- fusion?: import("@absolutejs/ai").RAGHybridFusionMode | undefined;
664
+ fusion?: import("..").RAGHybridFusionMode | undefined;
665
665
  fusionConstant?: number | undefined;
666
666
  lexicalWeight?: number | undefined;
667
667
  vectorWeight?: number | undefined;
668
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
668
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
669
669
  nativeCandidateLimit?: number | undefined;
670
670
  nativeMaxBackfills?: number | undefined;
671
671
  nativeMinResults?: number | undefined;
@@ -721,8 +721,8 @@ export declare const useRAGEvaluate: (path: string) => {
721
721
  previousSqliteQueryJsRemainderClauseCount?: number | undefined;
722
722
  sqliteQueryMultiplierUsed?: number | undefined;
723
723
  previousSqliteQueryMultiplierUsed?: number | undefined;
724
- sqliteQueryPlannerProfileUsed?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
725
- previousSqliteQueryPlannerProfileUsed?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
724
+ sqliteQueryPlannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
725
+ previousSqliteQueryPlannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
726
726
  sqliteQueryCandidateLimitUsed?: number | undefined;
727
727
  previousSqliteQueryCandidateLimitUsed?: number | undefined;
728
728
  sqliteQueryMaxBackfillsUsed?: number | undefined;
@@ -775,8 +775,8 @@ export declare const useRAGEvaluate: (path: string) => {
775
775
  previousPostgresQueryJsRemainderClauseCount?: number | undefined;
776
776
  postgresQueryMultiplierUsed?: number | undefined;
777
777
  previousPostgresQueryMultiplierUsed?: number | undefined;
778
- postgresQueryPlannerProfileUsed?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
779
- previousPostgresQueryPlannerProfileUsed?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
778
+ postgresQueryPlannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
779
+ previousPostgresQueryPlannerProfileUsed?: import("..").RAGNativeQueryProfile | undefined;
780
780
  postgresQueryCandidateLimitUsed?: number | undefined;
781
781
  previousPostgresQueryCandidateLimitUsed?: number | undefined;
782
782
  postgresQueryMaxBackfillsUsed?: number | undefined;
@@ -836,13 +836,13 @@ export declare const useRAGEvaluate: (path: string) => {
836
836
  sourceAwareUnitScopeLabel?: string | undefined;
837
837
  previousSourceAwareUnitScopeLabel?: string | undefined;
838
838
  stageCounts: {
839
- fusion?: number | undefined;
840
839
  input?: number | undefined;
841
- embed?: number | undefined;
842
840
  query_transform?: number | undefined;
843
841
  routing?: number | undefined;
842
+ embed?: number | undefined;
844
843
  vector_search?: number | undefined;
845
844
  lexical_search?: number | undefined;
845
+ fusion?: number | undefined;
846
846
  rerank?: number | undefined;
847
847
  diversity?: number | undefined;
848
848
  source_balance?: number | undefined;
@@ -851,13 +851,13 @@ export declare const useRAGEvaluate: (path: string) => {
851
851
  finalize?: number | undefined;
852
852
  };
853
853
  previousStageCounts: {
854
- fusion?: number | undefined;
855
854
  input?: number | undefined;
856
- embed?: number | undefined;
857
855
  query_transform?: number | undefined;
858
856
  routing?: number | undefined;
857
+ embed?: number | undefined;
859
858
  vector_search?: number | undefined;
860
859
  lexical_search?: number | undefined;
860
+ fusion?: number | undefined;
861
861
  rerank?: number | undefined;
862
862
  diversity?: number | undefined;
863
863
  source_balance?: number | undefined;
@@ -889,11 +889,11 @@ export declare const useRAGEvaluate: (path: string) => {
889
889
  sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
890
890
  diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
891
891
  mmrLambda?: number | undefined;
892
- fusion?: import("@absolutejs/ai").RAGHybridFusionMode | undefined;
892
+ fusion?: import("..").RAGHybridFusionMode | undefined;
893
893
  fusionConstant?: number | undefined;
894
894
  lexicalWeight?: number | undefined;
895
895
  vectorWeight?: number | undefined;
896
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
896
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
897
897
  nativeCandidateLimit?: number | undefined;
898
898
  nativeMaxBackfills?: number | undefined;
899
899
  nativeMinResults?: number | undefined;
@@ -920,11 +920,11 @@ export declare const useRAGEvaluate: (path: string) => {
920
920
  sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
921
921
  diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
922
922
  mmrLambda?: number | undefined;
923
- fusion?: import("@absolutejs/ai").RAGHybridFusionMode | undefined;
923
+ fusion?: import("..").RAGHybridFusionMode | undefined;
924
924
  fusionConstant?: number | undefined;
925
925
  lexicalWeight?: number | undefined;
926
926
  vectorWeight?: number | undefined;
927
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
927
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
928
928
  nativeCandidateLimit?: number | undefined;
929
929
  nativeMaxBackfills?: number | undefined;
930
930
  nativeMinResults?: number | undefined;
@@ -953,11 +953,11 @@ export declare const useRAGEvaluate: (path: string) => {
953
953
  sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
954
954
  diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
955
955
  mmrLambda?: number | undefined;
956
- fusion?: import("@absolutejs/ai").RAGHybridFusionMode | undefined;
956
+ fusion?: import("..").RAGHybridFusionMode | undefined;
957
957
  fusionConstant?: number | undefined;
958
958
  lexicalWeight?: number | undefined;
959
959
  vectorWeight?: number | undefined;
960
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
960
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
961
961
  nativeCandidateLimit?: number | undefined;
962
962
  nativeMaxBackfills?: number | undefined;
963
963
  nativeMinResults?: number | undefined;
@@ -984,11 +984,11 @@ export declare const useRAGEvaluate: (path: string) => {
984
984
  sourceBalanceStrategy?: import("@absolutejs/ai").RAGSourceBalanceStrategy | undefined;
985
985
  diversityStrategy?: import("@absolutejs/ai").RAGDiversityStrategy | undefined;
986
986
  mmrLambda?: number | undefined;
987
- fusion?: import("@absolutejs/ai").RAGHybridFusionMode | undefined;
987
+ fusion?: import("..").RAGHybridFusionMode | undefined;
988
988
  fusionConstant?: number | undefined;
989
989
  lexicalWeight?: number | undefined;
990
990
  vectorWeight?: number | undefined;
991
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
991
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
992
992
  nativeCandidateLimit?: number | undefined;
993
993
  nativeMaxBackfills?: number | undefined;
994
994
  nativeMinResults?: number | undefined;
@@ -1,11 +1,11 @@
1
1
  import { type Ref } from "vue";
2
2
  import type { RAGSource } from "@absolutejs/ai";
3
3
  export declare const useRAGGrounding: (content: Ref<string>, sources: Ref<RAGSource[]>) => {
4
- coverage: import("vue").ComputedRef<"partial" | "grounded" | "ungrounded">;
5
- groundedAnswer: import("vue").ComputedRef<import("@absolutejs/ai").RAGGroundedAnswer>;
4
+ coverage: import("vue").ComputedRef<"grounded" | "partial" | "ungrounded">;
5
+ groundedAnswer: import("vue").ComputedRef<import("..").RAGGroundedAnswer>;
6
6
  hasCitations: import("vue").ComputedRef<boolean>;
7
7
  hasGrounding: import("vue").ComputedRef<boolean>;
8
- references: import("vue").ComputedRef<import("@absolutejs/ai").RAGGroundingReference[]>;
8
+ references: import("vue").ComputedRef<import("..").RAGGroundingReference[]>;
9
9
  ungroundedReferenceNumbers: import("vue").ComputedRef<number[]>;
10
10
  };
11
11
  export type UseRAGGroundingResult = ReturnType<typeof useRAGGrounding>;