@absolutejs/rag 0.0.25 → 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 +6 -5
  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 +6 -5
  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 +2 -1800
  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
@@ -7,86 +7,86 @@ export type UseRAGOptions = {
7
7
  export declare const useRAG: (path: string, options?: UseRAGOptions) => {
8
8
  chunkPreview: {
9
9
  activeChunkId: string | null;
10
- activeSectionDiagnostic: import("@absolutejs/ai").RAGSectionRetrievalDiagnostic | null;
11
- chunkGraph: import("@absolutejs/ai").RAGChunkGraph | null;
10
+ activeSectionDiagnostic: import("..").RAGSectionRetrievalDiagnostic | null;
11
+ chunkGraph: import("..").RAGChunkGraph | null;
12
12
  clear: () => void;
13
13
  error: string | null;
14
14
  inspect: (id: string) => Promise<{
15
15
  ok: true;
16
- } & import("@absolutejs/ai").RAGDocumentChunkPreview>;
16
+ } & import("..").RAGDocumentChunkPreview>;
17
17
  isLoading: boolean;
18
- navigation: import("@absolutejs/ai").RAGChunkGraphNavigation | null;
19
- preview: import("@absolutejs/ai").RAGDocumentChunkPreview | null;
20
- sectionDiagnostics: import("@absolutejs/ai").RAGSectionRetrievalDiagnostic[];
18
+ navigation: import("..").RAGChunkGraphNavigation | null;
19
+ preview: import("..").RAGDocumentChunkPreview | null;
20
+ sectionDiagnostics: import("..").RAGSectionRetrievalDiagnostic[];
21
21
  selectChildSection: (sectionId: string) => void;
22
22
  selectChunk: (id: string | null) => void;
23
23
  selectParentSection: () => void;
24
24
  selectSiblingSection: (sectionId: string) => void;
25
25
  };
26
26
  citations: {
27
- citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
28
- citations: import("@absolutejs/ai").RAGCitation[];
27
+ citationReferenceMap: import("..").RAGCitationReferenceMap;
28
+ citations: import("..").RAGCitation[];
29
29
  hasCitations: boolean;
30
- sourceGroups: import("@absolutejs/ai").RAGSourceGroup[];
31
- sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
30
+ sourceGroups: import("..").RAGSourceGroup[];
31
+ sourceSummaries: import("..").RAGSourceSummary[];
32
32
  };
33
33
  documents: {
34
- documents: import("@absolutejs/ai").RAGIndexedDocument[];
34
+ documents: import("..").RAGIndexedDocument[];
35
35
  error: string | null;
36
36
  isLoading: boolean;
37
- lastResponse: import("@absolutejs/ai").RAGDocumentsResponse | null;
38
- load: (kind?: string) => Promise<import("@absolutejs/ai").RAGDocumentsResponse>;
37
+ lastResponse: import("..").RAGDocumentsResponse | null;
38
+ load: (kind?: string) => Promise<import("..").RAGDocumentsResponse>;
39
39
  reset: () => void;
40
40
  };
41
41
  evaluate: {
42
42
  clearRuns: () => void;
43
43
  error: string | null;
44
- evaluate: (input: import("@absolutejs/ai").RAGEvaluationInput) => Promise<import("@absolutejs/ai").RAGEvaluationResponse>;
45
- evaluateStream: (input: import("@absolutejs/ai").RAGEvaluationInput, options?: {
44
+ evaluate: (input: import("..").RAGEvaluationInput) => Promise<import("..").RAGEvaluationResponse>;
45
+ evaluateStream: (input: import("..").RAGEvaluationInput, options?: {
46
46
  onCase?: (event: {
47
47
  caseIndex: number;
48
48
  total: number;
49
- caseResult: import("@absolutejs/ai").RAGEvaluationCaseResult;
49
+ caseResult: import("..").RAGEvaluationCaseResult;
50
50
  }) => void;
51
51
  signal?: AbortSignal;
52
- }) => Promise<import("@absolutejs/ai").RAGEvaluationResponse>;
52
+ }) => Promise<import("..").RAGEvaluationResponse>;
53
53
  isEvaluating: boolean;
54
- lastRequest: import("@absolutejs/ai").RAGEvaluationInput | null;
55
- lastResponse: import("@absolutejs/ai").RAGEvaluationResponse | null;
56
- leaderboard: import("@absolutejs/ai").RAGEvaluationLeaderboardEntry[];
54
+ lastRequest: import("..").RAGEvaluationInput | null;
55
+ lastResponse: import("..").RAGEvaluationResponse | null;
56
+ leaderboard: import("..").RAGEvaluationLeaderboardEntry[];
57
57
  removeSuite: (id: string) => void;
58
58
  reset: () => void;
59
- runSuite: (suite: import("@absolutejs/ai").RAGEvaluationSuite, overrides?: Partial<import("@absolutejs/ai").RAGEvaluationInput>) => Promise<{
60
- caseTraceSnapshots: import("@absolutejs/ai").RAGEvaluationCaseTraceSnapshot[] | undefined;
59
+ runSuite: (suite: import("..").RAGEvaluationSuite, overrides?: Partial<import("..").RAGEvaluationInput>) => Promise<{
60
+ caseTraceSnapshots: import("..").RAGEvaluationCaseTraceSnapshot[] | undefined;
61
61
  elapsedMs: number;
62
62
  finishedAt: number;
63
63
  id: `${string}-${string}-${string}-${string}-${string}`;
64
64
  label: string;
65
65
  metadata: Record<string, unknown> | undefined;
66
- response: import("@absolutejs/ai").RAGEvaluationResponse;
66
+ response: import("..").RAGEvaluationResponse;
67
67
  startedAt: number;
68
68
  suiteId: string;
69
- traceSummary: import("@absolutejs/ai").RAGRetrievalTraceComparisonSummary | undefined;
69
+ traceSummary: import("..").RAGRetrievalTraceComparisonSummary | undefined;
70
70
  }>;
71
- saveSuite: (suite: import("@absolutejs/ai").RAGEvaluationSuite) => import("@absolutejs/ai").RAGEvaluationSuite;
71
+ saveSuite: (suite: import("..").RAGEvaluationSuite) => import("..").RAGEvaluationSuite;
72
72
  streamProgress: {
73
73
  done: number;
74
74
  total: number;
75
75
  } | null;
76
- suiteRuns: import("@absolutejs/ai").RAGEvaluationSuiteRun[];
77
- suites: import("@absolutejs/ai").RAGEvaluationSuite[];
76
+ suiteRuns: import("..").RAGEvaluationSuiteRun[];
77
+ suites: import("..").RAGEvaluationSuite[];
78
78
  };
79
79
  grounding: {
80
- coverage: "partial" | "grounded" | "ungrounded";
81
- groundedAnswer: import("@absolutejs/ai").RAGGroundedAnswer;
80
+ coverage: "grounded" | "partial" | "ungrounded";
81
+ groundedAnswer: import("..").RAGGroundedAnswer;
82
82
  hasCitations: boolean;
83
83
  hasGrounding: boolean;
84
- references: import("@absolutejs/ai").RAGGroundingReference[];
84
+ references: import("..").RAGGroundingReference[];
85
85
  ungroundedReferenceNumbers: number[];
86
86
  };
87
87
  index: {
88
- backends: import("@absolutejs/ai").RAGBackendsResponse | null;
89
- analyzeBackend: () => Promise<import("@absolutejs/ai").RAGMutationResponse>;
88
+ backends: import("..").RAGBackendsResponse | null;
89
+ analyzeBackend: () => Promise<import("..").RAGMutationResponse>;
90
90
  clearIndex: () => Promise<{
91
91
  ok: boolean;
92
92
  }>;
@@ -95,7 +95,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
95
95
  title?: string;
96
96
  source?: string;
97
97
  text: string;
98
- format?: import("@absolutejs/ai").RAGContentFormat;
98
+ format?: import("..").RAGContentFormat;
99
99
  metadata?: Record<string, unknown>;
100
100
  chunking?: {
101
101
  maxChunkLength?: number;
@@ -103,151 +103,151 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
103
103
  minChunkLength?: number;
104
104
  strategy?: "paragraphs" | "sentences" | "fixed" | "source_aware";
105
105
  };
106
- }) => Promise<import("@absolutejs/ai").RAGMutationResponse>;
107
- deleteDocument: (id: string) => Promise<import("@absolutejs/ai").RAGMutationResponse>;
106
+ }) => Promise<import("..").RAGMutationResponse>;
107
+ deleteDocument: (id: string) => Promise<import("..").RAGMutationResponse>;
108
108
  error: string | null;
109
109
  isLoading: boolean;
110
- lastMutation: import("@absolutejs/ai").RAGMutationResponse | null;
111
- loadBackends: () => Promise<import("@absolutejs/ai").RAGBackendsResponse>;
112
- loadSyncSources: () => Promise<import("@absolutejs/ai").RAGSyncResponse>;
113
- rebuildNativeIndex: () => Promise<import("@absolutejs/ai").RAGMutationResponse>;
114
- reindexDocument: (id: string) => Promise<import("@absolutejs/ai").RAGMutationResponse>;
115
- reindexSource: (source: string) => Promise<import("@absolutejs/ai").RAGMutationResponse>;
116
- reseed: () => Promise<import("@absolutejs/ai").RAGMutationResponse>;
117
- reset: () => Promise<import("@absolutejs/ai").RAGMutationResponse>;
110
+ lastMutation: import("..").RAGMutationResponse | null;
111
+ loadBackends: () => Promise<import("..").RAGBackendsResponse>;
112
+ loadSyncSources: () => Promise<import("..").RAGSyncResponse>;
113
+ rebuildNativeIndex: () => Promise<import("..").RAGMutationResponse>;
114
+ reindexDocument: (id: string) => Promise<import("..").RAGMutationResponse>;
115
+ reindexSource: (source: string) => Promise<import("..").RAGMutationResponse>;
116
+ reseed: () => Promise<import("..").RAGMutationResponse>;
117
+ reset: () => Promise<import("..").RAGMutationResponse>;
118
118
  resetState: () => void;
119
- syncAllSources: (options?: import("@absolutejs/ai").RAGSyncRunOptions) => Promise<{
119
+ syncAllSources: (options?: import("..").RAGSyncRunOptions) => Promise<{
120
120
  ok: true;
121
- source: import("@absolutejs/ai").RAGSyncSourceRecord;
121
+ source: import("..").RAGSyncSourceRecord;
122
122
  partial?: boolean;
123
123
  } | {
124
124
  ok: true;
125
- sources: import("@absolutejs/ai").RAGSyncSourceRecord[];
125
+ sources: import("..").RAGSyncSourceRecord[];
126
126
  partial?: boolean;
127
127
  failedSourceIds?: string[];
128
128
  errorsBySource?: Record<string, string>;
129
129
  }>;
130
- syncSource: (id: string, options?: import("@absolutejs/ai").RAGSyncRunOptions) => Promise<{
130
+ syncSource: (id: string, options?: import("..").RAGSyncRunOptions) => Promise<{
131
131
  ok: true;
132
- source: import("@absolutejs/ai").RAGSyncSourceRecord;
132
+ source: import("..").RAGSyncSourceRecord;
133
133
  partial?: boolean;
134
134
  } | {
135
135
  ok: true;
136
- sources: import("@absolutejs/ai").RAGSyncSourceRecord[];
136
+ sources: import("..").RAGSyncSourceRecord[];
137
137
  partial?: boolean;
138
138
  failedSourceIds?: string[];
139
139
  errorsBySource?: Record<string, string>;
140
140
  }>;
141
- syncSources: import("@absolutejs/ai").RAGSyncResponse | null;
141
+ syncSources: import("..").RAGSyncResponse | null;
142
142
  };
143
143
  ingest: {
144
144
  clearIndex: () => Promise<void>;
145
145
  error: string | null;
146
- ingest: (chunks: import("@absolutejs/ai").RAGDocumentChunk[]) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
147
- ingestChunks: (chunks: import("@absolutejs/ai").RAGDocumentChunk[]) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
148
- ingestDocuments: (input: import("@absolutejs/ai").RAGDocumentIngestInput) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
149
- ingestUploads: (input: import("@absolutejs/ai").RAGDocumentUploadIngestInput) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
150
- ingestUrls: (input: import("@absolutejs/ai").RAGDocumentUrlIngestInput) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
146
+ ingest: (chunks: import("..").RAGDocumentChunk[]) => Promise<import("..").RAGIngestResponse>;
147
+ ingestChunks: (chunks: import("..").RAGDocumentChunk[]) => Promise<import("..").RAGIngestResponse>;
148
+ ingestDocuments: (input: import("..").RAGDocumentIngestInput) => Promise<import("..").RAGIngestResponse>;
149
+ ingestUploads: (input: import("..").RAGDocumentUploadIngestInput) => Promise<import("..").RAGIngestResponse>;
150
+ ingestUrls: (input: import("..").RAGDocumentUrlIngestInput) => Promise<import("..").RAGIngestResponse>;
151
151
  isIngesting: boolean;
152
152
  lastDocumentCount: number | null;
153
153
  lastIngestCount: number | null;
154
- lastResponse: import("@absolutejs/ai").RAGIngestResponse | null;
154
+ lastResponse: import("..").RAGIngestResponse | null;
155
155
  reset: () => void;
156
156
  };
157
157
  ops: {
158
- admin: import("@absolutejs/ai").RAGAdminCapabilities | undefined;
159
- adminActions: import("@absolutejs/ai").RAGAdminActionRecord[];
160
- adminJobs: import("@absolutejs/ai").RAGAdminJobRecord[];
161
- capabilities: import("@absolutejs/ai").RAGBackendCapabilities | undefined;
162
- documents: import("@absolutejs/ai").RAGDocumentSummary | undefined;
158
+ admin: import("..").RAGAdminCapabilities | undefined;
159
+ adminActions: import("..").RAGAdminActionRecord[];
160
+ adminJobs: import("..").RAGAdminJobRecord[];
161
+ capabilities: import("..").RAGBackendCapabilities | undefined;
162
+ documents: import("..").RAGDocumentSummary | undefined;
163
163
  error: string | null;
164
- health: import("@absolutejs/ai").RAGCorpusHealth | undefined;
165
- ingestJobs: import("@absolutejs/ai").RAGIngestJobRecord[];
164
+ health: import("..").RAGCorpusHealth | undefined;
165
+ ingestJobs: import("..").RAGIngestJobRecord[];
166
166
  isLoading: boolean;
167
- maintenance: import("@absolutejs/ai").RAGBackendMaintenanceSummary | undefined;
168
- operations: import("@absolutejs/ai").RAGOperationsResponse | undefined;
169
- readiness: import("@absolutejs/ai").RAGExtractorReadiness | undefined;
170
- refresh: () => Promise<import("@absolutejs/ai").RAGOperationsResponse>;
167
+ maintenance: import("..").RAGBackendMaintenanceSummary | undefined;
168
+ operations: import("..").RAGOperationsResponse | undefined;
169
+ readiness: import("..").RAGExtractorReadiness | undefined;
170
+ refresh: () => Promise<import("..").RAGOperationsResponse>;
171
171
  reset: () => void;
172
- status: import("@absolutejs/ai").RAGVectorStoreStatus | undefined;
173
- syncSources: import("@absolutejs/ai").RAGSyncSourceRecord[];
172
+ status: import("..").RAGVectorStoreStatus | undefined;
173
+ syncSources: import("..").RAGSyncSourceRecord[];
174
174
  };
175
175
  search: {
176
176
  error: string | null;
177
177
  hasSearched: boolean;
178
178
  isSearching: boolean;
179
- lastRequest: import("@absolutejs/ai").RAGSearchRequest | null;
179
+ lastRequest: import("..").RAGSearchRequest | null;
180
180
  reset: () => void;
181
181
  results: import("@absolutejs/ai").RAGSource[];
182
182
  search: (input: {
183
183
  query: string;
184
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
184
+ topK?: number | undefined;
185
+ candidateTopK?: number | undefined;
186
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
187
+ nativeQueryMultiplier?: number | undefined;
185
188
  nativeCandidateLimit?: number | undefined;
186
189
  nativeMaxBackfills?: number | undefined;
187
190
  nativeMinResults?: number | undefined;
188
191
  nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
189
192
  filter?: Record<string, unknown> | undefined;
190
- queryTransform?: import("@absolutejs/ai").RAGQueryTransformProviderLike | undefined;
191
- candidateTopK?: number | undefined;
192
- topK?: number | undefined;
193
193
  scoreThreshold?: number | undefined;
194
- retrieval?: (import("@absolutejs/ai").RAGHybridSearchOptions | import("@absolutejs/ai").RAGHybridRetrievalMode) | undefined;
194
+ queryTransform?: import("..").RAGQueryTransformProviderLike | undefined;
195
+ retrievalStrategy?: import("..").RAGRetrievalStrategyProviderLike | undefined;
196
+ retrieval?: (import("..").RAGHybridSearchOptions | import("@absolutejs/ai").RAGHybridRetrievalMode) | undefined;
195
197
  model?: string | undefined;
196
- nativeQueryMultiplier?: number | undefined;
197
198
  persistTrace?: boolean | undefined;
198
199
  traceGroupKey?: string | undefined;
199
200
  traceTags?: string[] | undefined;
200
- retrievalStrategy?: import("@absolutejs/ai").RAGRetrievalStrategyProviderLike | undefined;
201
201
  }) => Promise<import("@absolutejs/ai").RAGSource[]>;
202
202
  searchWithTrace: (input: {
203
203
  query: string;
204
- nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
204
+ topK?: number | undefined;
205
+ candidateTopK?: number | undefined;
206
+ nativeQueryProfile?: import("..").RAGNativeQueryProfile | undefined;
207
+ nativeQueryMultiplier?: number | undefined;
205
208
  nativeCandidateLimit?: number | undefined;
206
209
  nativeMaxBackfills?: number | undefined;
207
210
  nativeMinResults?: number | undefined;
208
211
  nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
209
212
  filter?: Record<string, unknown> | undefined;
210
- queryTransform?: import("@absolutejs/ai").RAGQueryTransformProviderLike | undefined;
211
- candidateTopK?: number | undefined;
212
- topK?: number | undefined;
213
213
  scoreThreshold?: number | undefined;
214
- retrieval?: (import("@absolutejs/ai").RAGHybridSearchOptions | import("@absolutejs/ai").RAGHybridRetrievalMode) | undefined;
214
+ queryTransform?: import("..").RAGQueryTransformProviderLike | undefined;
215
+ retrievalStrategy?: import("..").RAGRetrievalStrategyProviderLike | undefined;
216
+ retrieval?: (import("..").RAGHybridSearchOptions | import("@absolutejs/ai").RAGHybridRetrievalMode) | undefined;
215
217
  model?: string | undefined;
216
- nativeQueryMultiplier?: number | undefined;
217
218
  persistTrace?: boolean | undefined;
218
219
  traceGroupKey?: string | undefined;
219
220
  traceTags?: string[] | undefined;
220
- retrievalStrategy?: import("@absolutejs/ai").RAGRetrievalStrategyProviderLike | undefined;
221
221
  }) => Promise<import("../client").RAGDetailedSearchResponse>;
222
222
  setResults: import("react").Dispatch<import("react").SetStateAction<import("@absolutejs/ai").RAGSource[]>>;
223
223
  trace: import("@absolutejs/ai").RAGRetrievalTrace | undefined;
224
224
  };
225
225
  sources: {
226
- citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
227
- chunkGraph: import("@absolutejs/ai").RAGChunkGraph;
226
+ citationReferenceMap: import("..").RAGCitationReferenceMap;
227
+ chunkGraph: import("..").RAGChunkGraph;
228
228
  hasSources: boolean;
229
229
  latestAssistantMessage: import("@absolutejs/ai").AIMessage | undefined;
230
- navigationForChunk: (chunkId?: string | null) => import("@absolutejs/ai").RAGChunkGraphNavigation;
231
- sectionDiagnostics: import("@absolutejs/ai").RAGSectionRetrievalDiagnostic[];
232
- sourceGroups: import("@absolutejs/ai").RAGSourceGroup[];
230
+ navigationForChunk: (chunkId?: string | null) => import("..").RAGChunkGraphNavigation;
231
+ sectionDiagnostics: import("..").RAGSectionRetrievalDiagnostic[];
232
+ sourceGroups: import("..").RAGSourceGroup[];
233
233
  sources: import("@absolutejs/ai").RAGSource[];
234
- sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
234
+ sourceSummaries: import("..").RAGSourceSummary[];
235
235
  };
236
236
  status: {
237
- capabilities: import("@absolutejs/ai").RAGBackendCapabilities | undefined;
237
+ capabilities: import("..").RAGBackendCapabilities | undefined;
238
238
  error: string | null;
239
239
  isLoading: boolean;
240
- refresh: () => Promise<import("@absolutejs/ai").RAGStatusResponse>;
240
+ refresh: () => Promise<import("..").RAGStatusResponse>;
241
241
  reset: () => void;
242
- status: import("@absolutejs/ai").RAGVectorStoreStatus | undefined;
242
+ status: import("..").RAGVectorStoreStatus | undefined;
243
243
  };
244
244
  stream: {
245
- state: import("@absolutejs/ai").RAGAnswerWorkflowState;
246
- citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
247
- citations: import("@absolutejs/ai").RAGCitation[];
248
- coverage: "partial" | "grounded" | "ungrounded";
249
- groundedAnswer: import("@absolutejs/ai").RAGGroundedAnswer;
250
- groundingReferences: import("@absolutejs/ai").RAGGroundingReference[];
245
+ state: import("..").RAGAnswerWorkflowState;
246
+ citationReferenceMap: import("..").RAGCitationReferenceMap;
247
+ citations: import("..").RAGCitation[];
248
+ coverage: "grounded" | "partial" | "ungrounded";
249
+ groundedAnswer: import("..").RAGGroundedAnswer;
250
+ groundingReferences: import("..").RAGGroundingReference[];
251
251
  hasGrounding: boolean;
252
252
  hasRetrieved: boolean;
253
253
  hasSources: boolean;
@@ -278,16 +278,16 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
278
278
  retrievalStartedAt: number | undefined;
279
279
  retrievedAt: number | undefined;
280
280
  sourceCount: number;
281
- stage: import("@absolutejs/ai").RAGStreamStage;
281
+ stage: import("..").RAGStreamStage;
282
282
  };
283
283
  query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
284
- retrieval: import("@absolutejs/ai").RAGRetrievedState | null;
285
- sourceGroups: import("@absolutejs/ai").RAGSourceGroup[];
286
- sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
284
+ retrieval: import("..").RAGRetrievedState | null;
285
+ sourceGroups: import("..").RAGSourceGroup[];
286
+ sourceSummaries: import("..").RAGSourceSummary[];
287
287
  sources: import("@absolutejs/ai").RAGSource[];
288
- stage: import("@absolutejs/ai").RAGStreamStage;
288
+ stage: import("..").RAGStreamStage;
289
289
  ungroundedReferenceNumbers: number[];
290
- workflow: import("@absolutejs/ai").RAGAnswerWorkflowState;
290
+ workflow: import("..").RAGAnswerWorkflowState;
291
291
  branch: (messageId: string, content: string) => void;
292
292
  cancel: () => void;
293
293
  error: string | null;
@@ -296,12 +296,12 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
296
296
  send: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
297
297
  };
298
298
  workflow: {
299
- state: import("@absolutejs/ai").RAGAnswerWorkflowState;
300
- citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
301
- citations: import("@absolutejs/ai").RAGCitation[];
302
- coverage: "partial" | "grounded" | "ungrounded";
303
- groundedAnswer: import("@absolutejs/ai").RAGGroundedAnswer;
304
- groundingReferences: import("@absolutejs/ai").RAGGroundingReference[];
299
+ state: import("..").RAGAnswerWorkflowState;
300
+ citationReferenceMap: import("..").RAGCitationReferenceMap;
301
+ citations: import("..").RAGCitation[];
302
+ coverage: "grounded" | "partial" | "ungrounded";
303
+ groundedAnswer: import("..").RAGGroundedAnswer;
304
+ groundingReferences: import("..").RAGGroundingReference[];
305
305
  hasGrounding: boolean;
306
306
  hasRetrieved: boolean;
307
307
  hasSources: boolean;
@@ -332,16 +332,16 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
332
332
  retrievalStartedAt: number | undefined;
333
333
  retrievedAt: number | undefined;
334
334
  sourceCount: number;
335
- stage: import("@absolutejs/ai").RAGStreamStage;
335
+ stage: import("..").RAGStreamStage;
336
336
  };
337
337
  query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
338
- retrieval: import("@absolutejs/ai").RAGRetrievedState | null;
339
- sourceGroups: import("@absolutejs/ai").RAGSourceGroup[];
340
- sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
338
+ retrieval: import("..").RAGRetrievedState | null;
339
+ sourceGroups: import("..").RAGSourceGroup[];
340
+ sourceSummaries: import("..").RAGSourceSummary[];
341
341
  sources: import("@absolutejs/ai").RAGSource[];
342
- stage: import("@absolutejs/ai").RAGStreamStage;
342
+ stage: import("..").RAGStreamStage;
343
343
  ungroundedReferenceNumbers: number[];
344
- workflow: import("@absolutejs/ai").RAGAnswerWorkflowState;
344
+ workflow: import("..").RAGAnswerWorkflowState;
345
345
  branch: (messageId: string, content: string) => void;
346
346
  cancel: () => void;
347
347
  error: string | null;
@@ -1,17 +1,17 @@
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: string | null;
4
- activeSectionDiagnostic: import("@absolutejs/ai").RAGSectionRetrievalDiagnostic | null;
5
- chunkGraph: import("@absolutejs/ai").RAGChunkGraph | null;
4
+ activeSectionDiagnostic: import("..").RAGSectionRetrievalDiagnostic | null;
5
+ chunkGraph: import("..").RAGChunkGraph | null;
6
6
  clear: () => void;
7
7
  error: string | null;
8
8
  inspect: (id: string) => Promise<{
9
9
  ok: true;
10
10
  } & RAGDocumentChunkPreview>;
11
11
  isLoading: boolean;
12
- navigation: import("@absolutejs/ai").RAGChunkGraphNavigation | null;
12
+ navigation: import("..").RAGChunkGraphNavigation | null;
13
13
  preview: RAGDocumentChunkPreview | null;
14
- sectionDiagnostics: import("@absolutejs/ai").RAGSectionRetrievalDiagnostic[];
14
+ sectionDiagnostics: import("..").RAGSectionRetrievalDiagnostic[];
15
15
  selectChildSection: (sectionId: string) => void;
16
16
  selectChunk: (id: string | null) => void;
17
17
  selectParentSection: () => void;
@@ -1,9 +1,9 @@
1
1
  import type { RAGSource } from "@absolutejs/ai";
2
2
  export declare const useRAGCitations: (sources: RAGSource[]) => {
3
- citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
4
- citations: import("@absolutejs/ai").RAGCitation[];
3
+ citationReferenceMap: import("..").RAGCitationReferenceMap;
4
+ citations: import("..").RAGCitation[];
5
5
  hasCitations: boolean;
6
- sourceGroups: import("@absolutejs/ai").RAGSourceGroup[];
7
- sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
6
+ sourceGroups: import("..").RAGSourceGroup[];
7
+ sourceSummaries: import("..").RAGSourceSummary[];
8
8
  };
9
9
  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: RAGIndexedDocument[];
4
4
  error: string | null;
@@ -1,4 +1,4 @@
1
- import type { RAGEvaluationCaseResult, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSuite, RAGEvaluationSuiteRun } from "@absolutejs/ai";
1
+ import type { RAGEvaluationCaseResult, RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSuite, RAGEvaluationSuiteRun } from "../../types/engine";
2
2
  export declare const useRAGEvaluate: (path: string) => {
3
3
  clearRuns: () => void;
4
4
  error: string | null;
@@ -14,11 +14,11 @@ export declare const useRAGEvaluate: (path: string) => {
14
14
  isEvaluating: boolean;
15
15
  lastRequest: RAGEvaluationInput | null;
16
16
  lastResponse: RAGEvaluationResponse | null;
17
- leaderboard: import("@absolutejs/ai").RAGEvaluationLeaderboardEntry[];
17
+ leaderboard: import("..").RAGEvaluationLeaderboardEntry[];
18
18
  removeSuite: (id: string) => void;
19
19
  reset: () => void;
20
20
  runSuite: (suite: RAGEvaluationSuite, overrides?: Partial<RAGEvaluationInput>) => Promise<{
21
- caseTraceSnapshots: import("@absolutejs/ai").RAGEvaluationCaseTraceSnapshot[] | undefined;
21
+ caseTraceSnapshots: import("..").RAGEvaluationCaseTraceSnapshot[] | undefined;
22
22
  elapsedMs: number;
23
23
  finishedAt: number;
24
24
  id: `${string}-${string}-${string}-${string}-${string}`;
@@ -27,7 +27,7 @@ export declare const useRAGEvaluate: (path: string) => {
27
27
  response: RAGEvaluationResponse;
28
28
  startedAt: number;
29
29
  suiteId: string;
30
- traceSummary: import("@absolutejs/ai").RAGRetrievalTraceComparisonSummary | undefined;
30
+ traceSummary: import("..").RAGRetrievalTraceComparisonSummary | undefined;
31
31
  }>;
32
32
  saveSuite: (suite: RAGEvaluationSuite) => RAGEvaluationSuite;
33
33
  streamProgress: {
@@ -1,10 +1,10 @@
1
1
  import type { RAGSource } from "@absolutejs/ai";
2
2
  export declare const useRAGGrounding: (content: string, sources: RAGSource[]) => {
3
- coverage: "partial" | "grounded" | "ungrounded";
4
- groundedAnswer: import("@absolutejs/ai").RAGGroundedAnswer;
3
+ coverage: "grounded" | "partial" | "ungrounded";
4
+ groundedAnswer: import("..").RAGGroundedAnswer;
5
5
  hasCitations: boolean;
6
6
  hasGrounding: boolean;
7
- references: import("@absolutejs/ai").RAGGroundingReference[];
7
+ references: import("..").RAGGroundingReference[];
8
8
  ungroundedReferenceNumbers: number[];
9
9
  };
10
10
  export type UseRAGGroundingResult = ReturnType<typeof useRAGGrounding>;
@@ -1,4 +1,4 @@
1
- import type { RAGBackendsResponse, RAGContentFormat, RAGMutationResponse, RAGSyncResponse, RAGSyncRunOptions } from "@absolutejs/ai";
1
+ import type { RAGBackendsResponse, RAGContentFormat, RAGMutationResponse, RAGSyncResponse, RAGSyncRunOptions } from "../../types/engine";
2
2
  export declare const useRAGIndexAdmin: (path: string) => {
3
3
  backends: RAGBackendsResponse | null;
4
4
  analyzeBackend: () => Promise<RAGMutationResponse>;
@@ -33,22 +33,22 @@ export declare const useRAGIndexAdmin: (path: string) => {
33
33
  resetState: () => void;
34
34
  syncAllSources: (options?: RAGSyncRunOptions) => Promise<{
35
35
  ok: true;
36
- source: import("@absolutejs/ai").RAGSyncSourceRecord;
36
+ source: import("..").RAGSyncSourceRecord;
37
37
  partial?: boolean;
38
38
  } | {
39
39
  ok: true;
40
- sources: import("@absolutejs/ai").RAGSyncSourceRecord[];
40
+ sources: import("..").RAGSyncSourceRecord[];
41
41
  partial?: boolean;
42
42
  failedSourceIds?: string[];
43
43
  errorsBySource?: Record<string, string>;
44
44
  }>;
45
45
  syncSource: (id: string, options?: RAGSyncRunOptions) => Promise<{
46
46
  ok: true;
47
- source: import("@absolutejs/ai").RAGSyncSourceRecord;
47
+ source: import("..").RAGSyncSourceRecord;
48
48
  partial?: boolean;
49
49
  } | {
50
50
  ok: true;
51
- sources: import("@absolutejs/ai").RAGSyncSourceRecord[];
51
+ sources: import("..").RAGSyncSourceRecord[];
52
52
  partial?: boolean;
53
53
  failedSourceIds?: string[];
54
54
  errorsBySource?: Record<string, string>;
@@ -1,4 +1,4 @@
1
- import type { RAGDocumentChunk, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUrlIngestInput, RAGIngestResponse } from "@absolutejs/ai";
1
+ import type { RAGDocumentChunk, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUrlIngestInput, RAGIngestResponse } from "../../types/engine";
2
2
  export declare const useRAGIngest: (path: string) => {
3
3
  clearIndex: () => Promise<void>;
4
4
  error: string | null;
@@ -1,4 +1,4 @@
1
- import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGBackendMaintenanceSummary, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGSyncSourceRecord, RAGVectorStoreStatus } from "@absolutejs/ai";
1
+ import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGBackendMaintenanceSummary, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGSyncSourceRecord, RAGVectorStoreStatus } from "../../types/engine";
2
2
  export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
3
3
  admin: RAGAdminCapabilities | undefined;
4
4
  adminActions: RAGAdminActionRecord[];
@@ -1,4 +1,5 @@
1
- import type { RAGSearchRequest, RAGSource } from "@absolutejs/ai";
1
+ import type { RAGSource } from "@absolutejs/ai";
2
+ import type { RAGSearchRequest } from "../../types/engine";
2
3
  import type { RAGDetailedSearchResponse } from "../../types/client";
3
4
  type SearchRequest = Omit<RAGSearchRequest, "includeTrace">;
4
5
  export declare const useRAGSearch: (path: string) => {
@@ -1,13 +1,13 @@
1
1
  import type { AIMessage } from "@absolutejs/ai";
2
2
  export declare const useRAGSources: (messages: AIMessage[]) => {
3
- citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
4
- chunkGraph: import("@absolutejs/ai").RAGChunkGraph;
3
+ citationReferenceMap: import("..").RAGCitationReferenceMap;
4
+ chunkGraph: import("..").RAGChunkGraph;
5
5
  hasSources: boolean;
6
6
  latestAssistantMessage: AIMessage | undefined;
7
- navigationForChunk: (chunkId?: string | null) => import("@absolutejs/ai").RAGChunkGraphNavigation;
8
- sectionDiagnostics: import("@absolutejs/ai").RAGSectionRetrievalDiagnostic[];
9
- sourceGroups: import("@absolutejs/ai").RAGSourceGroup[];
7
+ navigationForChunk: (chunkId?: string | null) => import("..").RAGChunkGraphNavigation;
8
+ sectionDiagnostics: import("..").RAGSectionRetrievalDiagnostic[];
9
+ sourceGroups: import("..").RAGSourceGroup[];
10
10
  sources: import("@absolutejs/ai").RAGSource[];
11
- sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
11
+ sourceSummaries: import("..").RAGSourceSummary[];
12
12
  };
13
13
  export type UseRAGSourcesResult = ReturnType<typeof useRAGSources>;
@@ -1,9 +1,9 @@
1
- import type { RAGBackendCapabilities, RAGVectorStoreStatus } from "@absolutejs/ai";
1
+ import type { RAGBackendCapabilities, RAGVectorStoreStatus } from "../../types/engine";
2
2
  export declare const useRAGStatus: (path: string, autoLoad?: boolean) => {
3
3
  capabilities: RAGBackendCapabilities | undefined;
4
4
  error: string | null;
5
5
  isLoading: boolean;
6
- refresh: () => Promise<import("@absolutejs/ai").RAGStatusResponse>;
6
+ refresh: () => Promise<import("..").RAGStatusResponse>;
7
7
  reset: () => void;
8
8
  status: RAGVectorStoreStatus | undefined;
9
9
  };