@absolutejs/rag 0.0.2 → 0.0.4
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 +12 -49
- package/dist/ai/client/index.js.map +8 -8
- package/dist/ai/client/ui.js +12 -49
- package/dist/ai/client/ui.js.map +5 -5
- package/dist/ai/rag/index.js +90 -173
- package/dist/ai/rag/index.js.map +30 -30
- package/dist/ai/rag/quality.js +12 -49
- package/dist/ai/rag/quality.js.map +5 -5
- package/dist/ai/rag/ui.js +12 -49
- package/dist/ai/rag/ui.js.map +5 -5
- package/dist/angular/ai/index.js.map +8 -8
- package/dist/react/ai/index.js.map +22 -22
- package/dist/svelte/ai/index.js.map +20 -20
- package/dist/vue/ai/index.js.map +20 -20
- package/package.json +103 -80
- package/dist/src/ai/client/createRAGAnswerWorkflow.d.ts +0 -32
- package/dist/src/ai/client/createRAGStream.d.ts +0 -2
- package/dist/src/ai/client/createRAGWorkflow.d.ts +0 -3
- package/dist/src/ai/client/index.d.ts +0 -8
- package/dist/src/ai/client/ragClient.d.ts +0 -349
- package/dist/src/ai/client/ui.d.ts +0 -5
- package/dist/src/ai/rag/accessControl.d.ts +0 -2
- package/dist/src/ai/rag/adapters/filtering.d.ts +0 -2
- package/dist/src/ai/rag/adapters/inMemory.d.ts +0 -8
- package/dist/src/ai/rag/adapters/postgres.d.ts +0 -20
- package/dist/src/ai/rag/adapters/queryPlanning.d.ts +0 -26
- package/dist/src/ai/rag/adapters/sqlite.d.ts +0 -24
- package/dist/src/ai/rag/adapters/utils.d.ts +0 -3
- package/dist/src/ai/rag/chat.d.ts +0 -1773
- package/dist/src/ai/rag/collection.d.ts +0 -15
- package/dist/src/ai/rag/constants.d.ts +0 -9
- package/dist/src/ai/rag/emailProviders.d.ts +0 -34
- package/dist/src/ai/rag/embedding.d.ts +0 -9
- package/dist/src/ai/rag/embeddingProviders.d.ts +0 -50
- package/dist/src/ai/rag/extractorProviders.d.ts +0 -58
- package/dist/src/ai/rag/grounding.d.ts +0 -6
- package/dist/src/ai/rag/htmxConfig.d.ts +0 -3
- package/dist/src/ai/rag/htmxWorkflowRenderers.d.ts +0 -3
- package/dist/src/ai/rag/index.d.ts +0 -31
- package/dist/src/ai/rag/ingestion.d.ts +0 -61
- package/dist/src/ai/rag/jobState.d.ts +0 -2
- package/dist/src/ai/rag/lexical.d.ts +0 -42
- package/dist/src/ai/rag/presentation.d.ts +0 -165
- package/dist/src/ai/rag/quality.d.ts +0 -607
- package/dist/src/ai/rag/queryTransforms.d.ts +0 -17
- package/dist/src/ai/rag/reranking.d.ts +0 -17
- package/dist/src/ai/rag/resolveAbsoluteSQLiteVec.d.ts +0 -3
- package/dist/src/ai/rag/retrievalStrategies.d.ts +0 -6
- package/dist/src/ai/rag/sync.d.ts +0 -37
- package/dist/src/ai/rag/types.d.ts +0 -11
- package/dist/src/ai/rag/ui.d.ts +0 -4
- package/dist/src/ai/rag/workflowState.d.ts +0 -1
- package/dist/src/angular/ai/ai-rag-stream.service.d.ts +0 -32
- package/dist/src/angular/ai/ai-rag-workflow.service.d.ts +0 -33
- package/dist/src/angular/ai/index.d.ts +0 -3
- package/dist/src/angular/ai/rag-client.service.d.ts +0 -243
- package/dist/src/constants.d.ts +0 -60
- package/dist/src/react/ai/index.d.ts +0 -18
- package/dist/src/react/ai/useRAG.d.ts +0 -341
- package/dist/src/react/ai/useRAGChunkPreview.d.ts +0 -20
- package/dist/src/react/ai/useRAGCitations.d.ts +0 -9
- package/dist/src/react/ai/useRAGDocuments.d.ts +0 -10
- package/dist/src/react/ai/useRAGEvaluate.d.ts +0 -28
- package/dist/src/react/ai/useRAGGrounding.d.ts +0 -10
- package/dist/src/react/ai/useRAGIndexAdmin.d.ts +0 -58
- package/dist/src/react/ai/useRAGIngest.d.ts +0 -16
- package/dist/src/react/ai/useRAGOps.d.ts +0 -20
- package/dist/src/react/ai/useRAGSearch.d.ts +0 -17
- package/dist/src/react/ai/useRAGSources.d.ts +0 -13
- package/dist/src/react/ai/useRAGStatus.d.ts +0 -10
- package/dist/src/react/ai/useRAGStream.d.ts +0 -55
- package/dist/src/react/ai/useRAGStreamProgress.d.ts +0 -9
- package/dist/src/react/ai/useRAGWorkflow.d.ts +0 -55
- package/dist/src/svelte/ai/createRAG.d.ts +0 -292
- package/dist/src/svelte/ai/createRAGChunkPreview.d.ts +0 -20
- package/dist/src/svelte/ai/createRAGCitations.d.ts +0 -10
- package/dist/src/svelte/ai/createRAGDocuments.d.ts +0 -10
- package/dist/src/svelte/ai/createRAGEvaluate.d.ts +0 -28
- package/dist/src/svelte/ai/createRAGGrounding.d.ts +0 -11
- package/dist/src/svelte/ai/createRAGIndexAdmin.d.ts +0 -58
- package/dist/src/svelte/ai/createRAGIngest.d.ts +0 -17
- package/dist/src/svelte/ai/createRAGOps.d.ts +0 -20
- package/dist/src/svelte/ai/createRAGSearch.d.ts +0 -15
- package/dist/src/svelte/ai/createRAGSources.d.ts +0 -14
- package/dist/src/svelte/ai/createRAGStatus.d.ts +0 -9
- package/dist/src/svelte/ai/createRAGStream.d.ts +0 -30
- package/dist/src/svelte/ai/createRAGStreamProgress.d.ts +0 -8
- package/dist/src/svelte/ai/createRAGWorkflow.d.ts +0 -30
- package/dist/src/svelte/ai/index.d.ts +0 -17
- package/dist/src/vue/ai/index.d.ts +0 -17
- package/dist/src/vue/ai/useRAG.d.ts +0 -2892
- package/dist/src/vue/ai/useRAGChunkPreview.d.ts +0 -152
- package/dist/src/vue/ai/useRAGCitations.d.ts +0 -10
- package/dist/src/vue/ai/useRAGDocuments.d.ts +0 -94
- package/dist/src/vue/ai/useRAGEvaluate.d.ts +0 -1002
- package/dist/src/vue/ai/useRAGGrounding.d.ts +0 -11
- package/dist/src/vue/ai/useRAGIndexAdmin.d.ts +0 -1104
- package/dist/src/vue/ai/useRAGIngest.d.ts +0 -27
- package/dist/src/vue/ai/useRAGOps.d.ts +0 -220
- package/dist/src/vue/ai/useRAGSearch.d.ts +0 -159
- package/dist/src/vue/ai/useRAGSources.d.ts +0 -14
- package/dist/src/vue/ai/useRAGStatus.d.ts +0 -9
- package/dist/src/vue/ai/useRAGStream.d.ts +0 -35
- package/dist/src/vue/ai/useRAGStreamProgress.d.ts +0 -8
- package/dist/src/vue/ai/useRAGWorkflow.d.ts +0 -35
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
export type UseRAGOptions = {
|
|
2
|
-
autoLoadOps?: boolean;
|
|
3
|
-
autoLoadStatus?: boolean;
|
|
4
|
-
conversationId?: string;
|
|
5
|
-
streamPath?: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
8
|
-
chunkPreview: {
|
|
9
|
-
activeChunkId: string | null;
|
|
10
|
-
activeSectionDiagnostic: import("@absolutejs/ai").RAGSectionRetrievalDiagnostic | null;
|
|
11
|
-
chunkGraph: import("@absolutejs/ai").RAGChunkGraph | null;
|
|
12
|
-
clear: () => void;
|
|
13
|
-
error: string | null;
|
|
14
|
-
inspect: (id: string) => Promise<{
|
|
15
|
-
ok: true;
|
|
16
|
-
} & import("@absolutejs/ai").RAGDocumentChunkPreview>;
|
|
17
|
-
isLoading: boolean;
|
|
18
|
-
navigation: import("@absolutejs/ai").RAGChunkGraphNavigation | null;
|
|
19
|
-
preview: import("@absolutejs/ai").RAGDocumentChunkPreview | null;
|
|
20
|
-
sectionDiagnostics: import("@absolutejs/ai").RAGSectionRetrievalDiagnostic[];
|
|
21
|
-
selectChildSection: (sectionId: string) => void;
|
|
22
|
-
selectChunk: (id: string | null) => void;
|
|
23
|
-
selectParentSection: () => void;
|
|
24
|
-
selectSiblingSection: (sectionId: string) => void;
|
|
25
|
-
};
|
|
26
|
-
citations: {
|
|
27
|
-
citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
|
|
28
|
-
citations: import("@absolutejs/ai").RAGCitation[];
|
|
29
|
-
hasCitations: boolean;
|
|
30
|
-
sourceGroups: import("@absolutejs/ai").RAGSourceGroup[];
|
|
31
|
-
sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
|
|
32
|
-
};
|
|
33
|
-
documents: {
|
|
34
|
-
documents: import("@absolutejs/ai").RAGIndexedDocument[];
|
|
35
|
-
error: string | null;
|
|
36
|
-
isLoading: boolean;
|
|
37
|
-
lastResponse: import("@absolutejs/ai").RAGDocumentsResponse | null;
|
|
38
|
-
load: (kind?: string) => Promise<import("@absolutejs/ai").RAGDocumentsResponse>;
|
|
39
|
-
reset: () => void;
|
|
40
|
-
};
|
|
41
|
-
evaluate: {
|
|
42
|
-
clearRuns: () => void;
|
|
43
|
-
error: string | null;
|
|
44
|
-
evaluate: (input: import("@absolutejs/ai").RAGEvaluationInput) => Promise<import("@absolutejs/ai").RAGEvaluationResponse>;
|
|
45
|
-
isEvaluating: boolean;
|
|
46
|
-
lastRequest: import("@absolutejs/ai").RAGEvaluationInput | null;
|
|
47
|
-
lastResponse: import("@absolutejs/ai").RAGEvaluationResponse | null;
|
|
48
|
-
leaderboard: import("@absolutejs/ai").RAGEvaluationLeaderboardEntry[];
|
|
49
|
-
removeSuite: (id: string) => void;
|
|
50
|
-
reset: () => void;
|
|
51
|
-
runSuite: (suite: import("@absolutejs/ai").RAGEvaluationSuite, overrides?: Partial<import("@absolutejs/ai").RAGEvaluationInput>) => Promise<{
|
|
52
|
-
caseTraceSnapshots: import("@absolutejs/ai").RAGEvaluationCaseTraceSnapshot[] | undefined;
|
|
53
|
-
elapsedMs: number;
|
|
54
|
-
finishedAt: number;
|
|
55
|
-
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
56
|
-
label: string;
|
|
57
|
-
metadata: Record<string, unknown> | undefined;
|
|
58
|
-
response: import("@absolutejs/ai").RAGEvaluationResponse;
|
|
59
|
-
startedAt: number;
|
|
60
|
-
suiteId: string;
|
|
61
|
-
traceSummary: import("@absolutejs/ai").RAGRetrievalTraceComparisonSummary | undefined;
|
|
62
|
-
}>;
|
|
63
|
-
saveSuite: (suite: import("@absolutejs/ai").RAGEvaluationSuite) => import("@absolutejs/ai").RAGEvaluationSuite;
|
|
64
|
-
suiteRuns: import("@absolutejs/ai").RAGEvaluationSuiteRun[];
|
|
65
|
-
suites: import("@absolutejs/ai").RAGEvaluationSuite[];
|
|
66
|
-
};
|
|
67
|
-
grounding: {
|
|
68
|
-
coverage: "grounded" | "partial" | "ungrounded";
|
|
69
|
-
groundedAnswer: import("@absolutejs/ai").RAGGroundedAnswer;
|
|
70
|
-
hasCitations: boolean;
|
|
71
|
-
hasGrounding: boolean;
|
|
72
|
-
references: import("@absolutejs/ai").RAGGroundingReference[];
|
|
73
|
-
ungroundedReferenceNumbers: number[];
|
|
74
|
-
};
|
|
75
|
-
index: {
|
|
76
|
-
backends: import("@absolutejs/ai").RAGBackendsResponse | null;
|
|
77
|
-
analyzeBackend: () => Promise<import("@absolutejs/ai").RAGMutationResponse>;
|
|
78
|
-
clearIndex: () => Promise<{
|
|
79
|
-
ok: boolean;
|
|
80
|
-
}>;
|
|
81
|
-
createDocument: (input: {
|
|
82
|
-
id?: string;
|
|
83
|
-
title?: string;
|
|
84
|
-
source?: string;
|
|
85
|
-
text: string;
|
|
86
|
-
format?: import("@absolutejs/ai").RAGContentFormat;
|
|
87
|
-
metadata?: Record<string, unknown>;
|
|
88
|
-
chunking?: {
|
|
89
|
-
maxChunkLength?: number;
|
|
90
|
-
chunkOverlap?: number;
|
|
91
|
-
minChunkLength?: number;
|
|
92
|
-
strategy?: "paragraphs" | "sentences" | "fixed" | "source_aware";
|
|
93
|
-
};
|
|
94
|
-
}) => Promise<import("@absolutejs/ai").RAGMutationResponse>;
|
|
95
|
-
deleteDocument: (id: string) => Promise<import("@absolutejs/ai").RAGMutationResponse>;
|
|
96
|
-
error: string | null;
|
|
97
|
-
isLoading: boolean;
|
|
98
|
-
lastMutation: import("@absolutejs/ai").RAGMutationResponse | null;
|
|
99
|
-
loadBackends: () => Promise<import("@absolutejs/ai").RAGBackendsResponse>;
|
|
100
|
-
loadSyncSources: () => Promise<import("@absolutejs/ai").RAGSyncResponse>;
|
|
101
|
-
rebuildNativeIndex: () => Promise<import("@absolutejs/ai").RAGMutationResponse>;
|
|
102
|
-
reindexDocument: (id: string) => Promise<import("@absolutejs/ai").RAGMutationResponse>;
|
|
103
|
-
reindexSource: (source: string) => Promise<import("@absolutejs/ai").RAGMutationResponse>;
|
|
104
|
-
reseed: () => Promise<import("@absolutejs/ai").RAGMutationResponse>;
|
|
105
|
-
reset: () => Promise<import("@absolutejs/ai").RAGMutationResponse>;
|
|
106
|
-
resetState: () => void;
|
|
107
|
-
syncAllSources: (options?: import("@absolutejs/ai").RAGSyncRunOptions) => Promise<{
|
|
108
|
-
ok: true;
|
|
109
|
-
source: import("@absolutejs/ai").RAGSyncSourceRecord;
|
|
110
|
-
partial?: boolean;
|
|
111
|
-
} | {
|
|
112
|
-
ok: true;
|
|
113
|
-
sources: import("@absolutejs/ai").RAGSyncSourceRecord[];
|
|
114
|
-
partial?: boolean;
|
|
115
|
-
failedSourceIds?: string[];
|
|
116
|
-
errorsBySource?: Record<string, string>;
|
|
117
|
-
}>;
|
|
118
|
-
syncSource: (id: string, options?: import("@absolutejs/ai").RAGSyncRunOptions) => Promise<{
|
|
119
|
-
ok: true;
|
|
120
|
-
source: import("@absolutejs/ai").RAGSyncSourceRecord;
|
|
121
|
-
partial?: boolean;
|
|
122
|
-
} | {
|
|
123
|
-
ok: true;
|
|
124
|
-
sources: import("@absolutejs/ai").RAGSyncSourceRecord[];
|
|
125
|
-
partial?: boolean;
|
|
126
|
-
failedSourceIds?: string[];
|
|
127
|
-
errorsBySource?: Record<string, string>;
|
|
128
|
-
}>;
|
|
129
|
-
syncSources: import("@absolutejs/ai").RAGSyncResponse | null;
|
|
130
|
-
};
|
|
131
|
-
ingest: {
|
|
132
|
-
clearIndex: () => Promise<void>;
|
|
133
|
-
error: string | null;
|
|
134
|
-
ingest: (chunks: import("@absolutejs/ai").RAGDocumentChunk[]) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
|
|
135
|
-
ingestChunks: (chunks: import("@absolutejs/ai").RAGDocumentChunk[]) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
|
|
136
|
-
ingestDocuments: (input: import("@absolutejs/ai").RAGDocumentIngestInput) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
|
|
137
|
-
ingestUploads: (input: import("@absolutejs/ai").RAGDocumentUploadIngestInput) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
|
|
138
|
-
ingestUrls: (input: import("@absolutejs/ai").RAGDocumentUrlIngestInput) => Promise<import("@absolutejs/ai").RAGIngestResponse>;
|
|
139
|
-
isIngesting: boolean;
|
|
140
|
-
lastDocumentCount: number | null;
|
|
141
|
-
lastIngestCount: number | null;
|
|
142
|
-
lastResponse: import("@absolutejs/ai").RAGIngestResponse | null;
|
|
143
|
-
reset: () => void;
|
|
144
|
-
};
|
|
145
|
-
ops: {
|
|
146
|
-
admin: import("@absolutejs/ai").RAGAdminCapabilities | undefined;
|
|
147
|
-
adminActions: import("@absolutejs/ai").RAGAdminActionRecord[];
|
|
148
|
-
adminJobs: import("@absolutejs/ai").RAGAdminJobRecord[];
|
|
149
|
-
capabilities: import("@absolutejs/ai").RAGBackendCapabilities | undefined;
|
|
150
|
-
documents: import("@absolutejs/ai").RAGDocumentSummary | undefined;
|
|
151
|
-
error: string | null;
|
|
152
|
-
health: import("@absolutejs/ai").RAGCorpusHealth | undefined;
|
|
153
|
-
ingestJobs: import("@absolutejs/ai").RAGIngestJobRecord[];
|
|
154
|
-
isLoading: boolean;
|
|
155
|
-
maintenance: import("@absolutejs/ai").RAGBackendMaintenanceSummary | undefined;
|
|
156
|
-
operations: import("@absolutejs/ai").RAGOperationsResponse | undefined;
|
|
157
|
-
readiness: import("@absolutejs/ai").RAGExtractorReadiness | undefined;
|
|
158
|
-
refresh: () => Promise<import("@absolutejs/ai").RAGOperationsResponse>;
|
|
159
|
-
reset: () => void;
|
|
160
|
-
status: import("@absolutejs/ai").RAGVectorStoreStatus | undefined;
|
|
161
|
-
syncSources: import("@absolutejs/ai").RAGSyncSourceRecord[];
|
|
162
|
-
};
|
|
163
|
-
search: {
|
|
164
|
-
error: string | null;
|
|
165
|
-
hasSearched: boolean;
|
|
166
|
-
isSearching: boolean;
|
|
167
|
-
lastRequest: import("@absolutejs/ai").RAGSearchRequest | null;
|
|
168
|
-
reset: () => void;
|
|
169
|
-
results: import("@absolutejs/ai").RAGSource[];
|
|
170
|
-
search: (input: {
|
|
171
|
-
filter?: Record<string, unknown> | undefined;
|
|
172
|
-
query: string;
|
|
173
|
-
candidateTopK?: number | undefined;
|
|
174
|
-
retrieval?: (import("@absolutejs/ai").RAGHybridSearchOptions | import("@absolutejs/ai").RAGHybridRetrievalMode) | undefined;
|
|
175
|
-
model?: string | undefined;
|
|
176
|
-
topK?: number | undefined;
|
|
177
|
-
scoreThreshold?: number | undefined;
|
|
178
|
-
nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
|
|
179
|
-
nativeQueryMultiplier?: number | undefined;
|
|
180
|
-
nativeCandidateLimit?: number | undefined;
|
|
181
|
-
nativeMaxBackfills?: number | undefined;
|
|
182
|
-
nativeMinResults?: number | undefined;
|
|
183
|
-
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
184
|
-
queryTransform?: import("@absolutejs/ai").RAGQueryTransformProviderLike | undefined;
|
|
185
|
-
retrievalStrategy?: import("@absolutejs/ai").RAGRetrievalStrategyProviderLike | undefined;
|
|
186
|
-
persistTrace?: boolean | undefined;
|
|
187
|
-
traceGroupKey?: string | undefined;
|
|
188
|
-
traceTags?: string[] | undefined;
|
|
189
|
-
}) => Promise<import("@absolutejs/ai").RAGSource[]>;
|
|
190
|
-
searchWithTrace: (input: {
|
|
191
|
-
filter?: Record<string, unknown> | undefined;
|
|
192
|
-
query: string;
|
|
193
|
-
candidateTopK?: number | undefined;
|
|
194
|
-
retrieval?: (import("@absolutejs/ai").RAGHybridSearchOptions | import("@absolutejs/ai").RAGHybridRetrievalMode) | undefined;
|
|
195
|
-
model?: string | undefined;
|
|
196
|
-
topK?: number | undefined;
|
|
197
|
-
scoreThreshold?: number | undefined;
|
|
198
|
-
nativeQueryProfile?: import("@absolutejs/ai").RAGNativeQueryProfile | undefined;
|
|
199
|
-
nativeQueryMultiplier?: number | undefined;
|
|
200
|
-
nativeCandidateLimit?: number | undefined;
|
|
201
|
-
nativeMaxBackfills?: number | undefined;
|
|
202
|
-
nativeMinResults?: number | undefined;
|
|
203
|
-
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
204
|
-
queryTransform?: import("@absolutejs/ai").RAGQueryTransformProviderLike | undefined;
|
|
205
|
-
retrievalStrategy?: import("@absolutejs/ai").RAGRetrievalStrategyProviderLike | undefined;
|
|
206
|
-
persistTrace?: boolean | undefined;
|
|
207
|
-
traceGroupKey?: string | undefined;
|
|
208
|
-
traceTags?: string[] | undefined;
|
|
209
|
-
}) => Promise<import("../../ai/client").RAGDetailedSearchResponse>;
|
|
210
|
-
setResults: import("react").Dispatch<import("react").SetStateAction<import("@absolutejs/ai").RAGSource[]>>;
|
|
211
|
-
trace: import("@absolutejs/ai").RAGRetrievalTrace | undefined;
|
|
212
|
-
};
|
|
213
|
-
sources: {
|
|
214
|
-
citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
|
|
215
|
-
chunkGraph: import("@absolutejs/ai").RAGChunkGraph;
|
|
216
|
-
hasSources: boolean;
|
|
217
|
-
latestAssistantMessage: import("@absolutejs/ai").AIMessage | undefined;
|
|
218
|
-
navigationForChunk: (chunkId?: string | null) => import("@absolutejs/ai").RAGChunkGraphNavigation;
|
|
219
|
-
sectionDiagnostics: import("@absolutejs/ai").RAGSectionRetrievalDiagnostic[];
|
|
220
|
-
sourceGroups: import("@absolutejs/ai").RAGSourceGroup[];
|
|
221
|
-
sources: import("@absolutejs/ai").RAGSource[];
|
|
222
|
-
sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
|
|
223
|
-
};
|
|
224
|
-
status: {
|
|
225
|
-
capabilities: import("@absolutejs/ai").RAGBackendCapabilities | undefined;
|
|
226
|
-
error: string | null;
|
|
227
|
-
isLoading: boolean;
|
|
228
|
-
refresh: () => Promise<import("@absolutejs/ai").RAGStatusResponse>;
|
|
229
|
-
reset: () => void;
|
|
230
|
-
status: import("@absolutejs/ai").RAGVectorStoreStatus | undefined;
|
|
231
|
-
};
|
|
232
|
-
stream: {
|
|
233
|
-
state: import("@absolutejs/ai").RAGAnswerWorkflowState;
|
|
234
|
-
citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
|
|
235
|
-
citations: import("@absolutejs/ai").RAGCitation[];
|
|
236
|
-
coverage: "grounded" | "partial" | "ungrounded";
|
|
237
|
-
groundedAnswer: import("@absolutejs/ai").RAGGroundedAnswer;
|
|
238
|
-
groundingReferences: import("@absolutejs/ai").RAGGroundingReference[];
|
|
239
|
-
hasGrounding: boolean;
|
|
240
|
-
hasRetrieved: boolean;
|
|
241
|
-
hasSources: boolean;
|
|
242
|
-
isAnswerStreaming: boolean;
|
|
243
|
-
isComplete: boolean;
|
|
244
|
-
isError: boolean;
|
|
245
|
-
isRetrieved: boolean;
|
|
246
|
-
isRetrieving: boolean;
|
|
247
|
-
isRunning: boolean;
|
|
248
|
-
latestAssistantMessage: import("@absolutejs/ai").AIMessage | undefined;
|
|
249
|
-
progress: {
|
|
250
|
-
conversationId: string | undefined;
|
|
251
|
-
hasContent: boolean;
|
|
252
|
-
hasRetrieved: boolean;
|
|
253
|
-
hasSources: boolean;
|
|
254
|
-
hasThinking: boolean;
|
|
255
|
-
hasToolCalls: boolean;
|
|
256
|
-
isComplete: boolean;
|
|
257
|
-
isError: boolean;
|
|
258
|
-
isIdle: boolean;
|
|
259
|
-
isRetrieved: boolean;
|
|
260
|
-
isRetrieving: boolean;
|
|
261
|
-
isStreaming: boolean;
|
|
262
|
-
isSubmitting: boolean;
|
|
263
|
-
latestMessage: import("@absolutejs/ai").AIMessage | undefined;
|
|
264
|
-
messageId: string | undefined;
|
|
265
|
-
retrievalDurationMs: number | undefined;
|
|
266
|
-
retrievalStartedAt: number | undefined;
|
|
267
|
-
retrievedAt: number | undefined;
|
|
268
|
-
sourceCount: number;
|
|
269
|
-
stage: import("@absolutejs/ai").RAGStreamStage;
|
|
270
|
-
};
|
|
271
|
-
query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
272
|
-
retrieval: import("@absolutejs/ai").RAGRetrievedState | null;
|
|
273
|
-
sourceGroups: import("@absolutejs/ai").RAGSourceGroup[];
|
|
274
|
-
sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
|
|
275
|
-
sources: import("@absolutejs/ai").RAGSource[];
|
|
276
|
-
stage: import("@absolutejs/ai").RAGStreamStage;
|
|
277
|
-
ungroundedReferenceNumbers: number[];
|
|
278
|
-
workflow: import("@absolutejs/ai").RAGAnswerWorkflowState;
|
|
279
|
-
branch: (messageId: string, content: string) => void;
|
|
280
|
-
cancel: () => void;
|
|
281
|
-
error: string | null;
|
|
282
|
-
isStreaming: boolean;
|
|
283
|
-
messages: import("@absolutejs/ai").AIMessage[];
|
|
284
|
-
send: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
285
|
-
};
|
|
286
|
-
workflow: {
|
|
287
|
-
state: import("@absolutejs/ai").RAGAnswerWorkflowState;
|
|
288
|
-
citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
|
|
289
|
-
citations: import("@absolutejs/ai").RAGCitation[];
|
|
290
|
-
coverage: "grounded" | "partial" | "ungrounded";
|
|
291
|
-
groundedAnswer: import("@absolutejs/ai").RAGGroundedAnswer;
|
|
292
|
-
groundingReferences: import("@absolutejs/ai").RAGGroundingReference[];
|
|
293
|
-
hasGrounding: boolean;
|
|
294
|
-
hasRetrieved: boolean;
|
|
295
|
-
hasSources: boolean;
|
|
296
|
-
isAnswerStreaming: boolean;
|
|
297
|
-
isComplete: boolean;
|
|
298
|
-
isError: boolean;
|
|
299
|
-
isRetrieved: boolean;
|
|
300
|
-
isRetrieving: boolean;
|
|
301
|
-
isRunning: boolean;
|
|
302
|
-
latestAssistantMessage: import("@absolutejs/ai").AIMessage | undefined;
|
|
303
|
-
progress: {
|
|
304
|
-
conversationId: string | undefined;
|
|
305
|
-
hasContent: boolean;
|
|
306
|
-
hasRetrieved: boolean;
|
|
307
|
-
hasSources: boolean;
|
|
308
|
-
hasThinking: boolean;
|
|
309
|
-
hasToolCalls: boolean;
|
|
310
|
-
isComplete: boolean;
|
|
311
|
-
isError: boolean;
|
|
312
|
-
isIdle: boolean;
|
|
313
|
-
isRetrieved: boolean;
|
|
314
|
-
isRetrieving: boolean;
|
|
315
|
-
isStreaming: boolean;
|
|
316
|
-
isSubmitting: boolean;
|
|
317
|
-
latestMessage: import("@absolutejs/ai").AIMessage | undefined;
|
|
318
|
-
messageId: string | undefined;
|
|
319
|
-
retrievalDurationMs: number | undefined;
|
|
320
|
-
retrievalStartedAt: number | undefined;
|
|
321
|
-
retrievedAt: number | undefined;
|
|
322
|
-
sourceCount: number;
|
|
323
|
-
stage: import("@absolutejs/ai").RAGStreamStage;
|
|
324
|
-
};
|
|
325
|
-
query: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
326
|
-
retrieval: import("@absolutejs/ai").RAGRetrievedState | null;
|
|
327
|
-
sourceGroups: import("@absolutejs/ai").RAGSourceGroup[];
|
|
328
|
-
sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
|
|
329
|
-
sources: import("@absolutejs/ai").RAGSource[];
|
|
330
|
-
stage: import("@absolutejs/ai").RAGStreamStage;
|
|
331
|
-
ungroundedReferenceNumbers: number[];
|
|
332
|
-
workflow: import("@absolutejs/ai").RAGAnswerWorkflowState;
|
|
333
|
-
branch: (messageId: string, content: string) => void;
|
|
334
|
-
cancel: () => void;
|
|
335
|
-
error: string | null;
|
|
336
|
-
isStreaming: boolean;
|
|
337
|
-
messages: import("@absolutejs/ai").AIMessage[];
|
|
338
|
-
send: (content: string, attachments?: import("@absolutejs/ai").AIAttachment[]) => void;
|
|
339
|
-
};
|
|
340
|
-
};
|
|
341
|
-
export type UseRAGResult = ReturnType<typeof useRAG>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { RAGDocumentChunkPreview } from '@absolutejs/ai';
|
|
2
|
-
export declare const useRAGChunkPreview: (path: string) => {
|
|
3
|
-
activeChunkId: string | null;
|
|
4
|
-
activeSectionDiagnostic: import("@absolutejs/ai").RAGSectionRetrievalDiagnostic | null;
|
|
5
|
-
chunkGraph: import("@absolutejs/ai").RAGChunkGraph | null;
|
|
6
|
-
clear: () => void;
|
|
7
|
-
error: string | null;
|
|
8
|
-
inspect: (id: string) => Promise<{
|
|
9
|
-
ok: true;
|
|
10
|
-
} & RAGDocumentChunkPreview>;
|
|
11
|
-
isLoading: boolean;
|
|
12
|
-
navigation: import("@absolutejs/ai").RAGChunkGraphNavigation | null;
|
|
13
|
-
preview: RAGDocumentChunkPreview | null;
|
|
14
|
-
sectionDiagnostics: import("@absolutejs/ai").RAGSectionRetrievalDiagnostic[];
|
|
15
|
-
selectChildSection: (sectionId: string) => void;
|
|
16
|
-
selectChunk: (id: string | null) => void;
|
|
17
|
-
selectParentSection: () => void;
|
|
18
|
-
selectSiblingSection: (sectionId: string) => void;
|
|
19
|
-
};
|
|
20
|
-
export type UseRAGChunkPreviewResult = ReturnType<typeof useRAGChunkPreview>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { RAGSource } from '@absolutejs/ai';
|
|
2
|
-
export declare const useRAGCitations: (sources: RAGSource[]) => {
|
|
3
|
-
citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
|
|
4
|
-
citations: import("@absolutejs/ai").RAGCitation[];
|
|
5
|
-
hasCitations: boolean;
|
|
6
|
-
sourceGroups: import("@absolutejs/ai").RAGSourceGroup[];
|
|
7
|
-
sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
|
|
8
|
-
};
|
|
9
|
-
export type UseRAGCitationsResult = ReturnType<typeof useRAGCitations>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { RAGDocumentsResponse, RAGIndexedDocument } from '@absolutejs/ai';
|
|
2
|
-
export declare const useRAGDocuments: (path: string) => {
|
|
3
|
-
documents: RAGIndexedDocument[];
|
|
4
|
-
error: string | null;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
lastResponse: RAGDocumentsResponse | null;
|
|
7
|
-
load: (kind?: string) => Promise<RAGDocumentsResponse>;
|
|
8
|
-
reset: () => void;
|
|
9
|
-
};
|
|
10
|
-
export type UseRAGDocumentsResult = ReturnType<typeof useRAGDocuments>;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { RAGEvaluationInput, RAGEvaluationResponse, RAGEvaluationSuite, RAGEvaluationSuiteRun } from '@absolutejs/ai';
|
|
2
|
-
export declare const useRAGEvaluate: (path: string) => {
|
|
3
|
-
clearRuns: () => void;
|
|
4
|
-
error: string | null;
|
|
5
|
-
evaluate: (input: RAGEvaluationInput) => Promise<RAGEvaluationResponse>;
|
|
6
|
-
isEvaluating: boolean;
|
|
7
|
-
lastRequest: RAGEvaluationInput | null;
|
|
8
|
-
lastResponse: RAGEvaluationResponse | null;
|
|
9
|
-
leaderboard: import("@absolutejs/ai").RAGEvaluationLeaderboardEntry[];
|
|
10
|
-
removeSuite: (id: string) => void;
|
|
11
|
-
reset: () => void;
|
|
12
|
-
runSuite: (suite: RAGEvaluationSuite, overrides?: Partial<RAGEvaluationInput>) => Promise<{
|
|
13
|
-
caseTraceSnapshots: import("@absolutejs/ai").RAGEvaluationCaseTraceSnapshot[] | undefined;
|
|
14
|
-
elapsedMs: number;
|
|
15
|
-
finishedAt: number;
|
|
16
|
-
id: `${string}-${string}-${string}-${string}-${string}`;
|
|
17
|
-
label: string;
|
|
18
|
-
metadata: Record<string, unknown> | undefined;
|
|
19
|
-
response: RAGEvaluationResponse;
|
|
20
|
-
startedAt: number;
|
|
21
|
-
suiteId: string;
|
|
22
|
-
traceSummary: import("@absolutejs/ai").RAGRetrievalTraceComparisonSummary | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
saveSuite: (suite: RAGEvaluationSuite) => RAGEvaluationSuite;
|
|
25
|
-
suiteRuns: RAGEvaluationSuiteRun[];
|
|
26
|
-
suites: RAGEvaluationSuite[];
|
|
27
|
-
};
|
|
28
|
-
export type UseRAGEvaluateResult = ReturnType<typeof useRAGEvaluate>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { RAGSource } from '@absolutejs/ai';
|
|
2
|
-
export declare const useRAGGrounding: (content: string, sources: RAGSource[]) => {
|
|
3
|
-
coverage: "grounded" | "partial" | "ungrounded";
|
|
4
|
-
groundedAnswer: import("@absolutejs/ai").RAGGroundedAnswer;
|
|
5
|
-
hasCitations: boolean;
|
|
6
|
-
hasGrounding: boolean;
|
|
7
|
-
references: import("@absolutejs/ai").RAGGroundingReference[];
|
|
8
|
-
ungroundedReferenceNumbers: number[];
|
|
9
|
-
};
|
|
10
|
-
export type UseRAGGroundingResult = ReturnType<typeof useRAGGrounding>;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { RAGBackendsResponse, RAGContentFormat, RAGMutationResponse, RAGSyncResponse, RAGSyncRunOptions } from '@absolutejs/ai';
|
|
2
|
-
export declare const useRAGIndexAdmin: (path: string) => {
|
|
3
|
-
backends: RAGBackendsResponse | null;
|
|
4
|
-
analyzeBackend: () => Promise<RAGMutationResponse>;
|
|
5
|
-
clearIndex: () => Promise<{
|
|
6
|
-
ok: boolean;
|
|
7
|
-
}>;
|
|
8
|
-
createDocument: (input: {
|
|
9
|
-
id?: string;
|
|
10
|
-
title?: string;
|
|
11
|
-
source?: string;
|
|
12
|
-
text: string;
|
|
13
|
-
format?: RAGContentFormat;
|
|
14
|
-
metadata?: Record<string, unknown>;
|
|
15
|
-
chunking?: {
|
|
16
|
-
maxChunkLength?: number;
|
|
17
|
-
chunkOverlap?: number;
|
|
18
|
-
minChunkLength?: number;
|
|
19
|
-
strategy?: "paragraphs" | "sentences" | "fixed" | "source_aware";
|
|
20
|
-
};
|
|
21
|
-
}) => Promise<RAGMutationResponse>;
|
|
22
|
-
deleteDocument: (id: string) => Promise<RAGMutationResponse>;
|
|
23
|
-
error: string | null;
|
|
24
|
-
isLoading: boolean;
|
|
25
|
-
lastMutation: RAGMutationResponse | null;
|
|
26
|
-
loadBackends: () => Promise<RAGBackendsResponse>;
|
|
27
|
-
loadSyncSources: () => Promise<RAGSyncResponse>;
|
|
28
|
-
rebuildNativeIndex: () => Promise<RAGMutationResponse>;
|
|
29
|
-
reindexDocument: (id: string) => Promise<RAGMutationResponse>;
|
|
30
|
-
reindexSource: (source: string) => Promise<RAGMutationResponse>;
|
|
31
|
-
reseed: () => Promise<RAGMutationResponse>;
|
|
32
|
-
reset: () => Promise<RAGMutationResponse>;
|
|
33
|
-
resetState: () => void;
|
|
34
|
-
syncAllSources: (options?: RAGSyncRunOptions) => Promise<{
|
|
35
|
-
ok: true;
|
|
36
|
-
source: import("@absolutejs/ai").RAGSyncSourceRecord;
|
|
37
|
-
partial?: boolean;
|
|
38
|
-
} | {
|
|
39
|
-
ok: true;
|
|
40
|
-
sources: import("@absolutejs/ai").RAGSyncSourceRecord[];
|
|
41
|
-
partial?: boolean;
|
|
42
|
-
failedSourceIds?: string[];
|
|
43
|
-
errorsBySource?: Record<string, string>;
|
|
44
|
-
}>;
|
|
45
|
-
syncSource: (id: string, options?: RAGSyncRunOptions) => Promise<{
|
|
46
|
-
ok: true;
|
|
47
|
-
source: import("@absolutejs/ai").RAGSyncSourceRecord;
|
|
48
|
-
partial?: boolean;
|
|
49
|
-
} | {
|
|
50
|
-
ok: true;
|
|
51
|
-
sources: import("@absolutejs/ai").RAGSyncSourceRecord[];
|
|
52
|
-
partial?: boolean;
|
|
53
|
-
failedSourceIds?: string[];
|
|
54
|
-
errorsBySource?: Record<string, string>;
|
|
55
|
-
}>;
|
|
56
|
-
syncSources: RAGSyncResponse | null;
|
|
57
|
-
};
|
|
58
|
-
export type UseRAGIndexAdminResult = ReturnType<typeof useRAGIndexAdmin>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { RAGDocumentChunk, RAGDocumentIngestInput, RAGDocumentUploadIngestInput, RAGDocumentUrlIngestInput, RAGIngestResponse } from '@absolutejs/ai';
|
|
2
|
-
export declare const useRAGIngest: (path: string) => {
|
|
3
|
-
clearIndex: () => Promise<void>;
|
|
4
|
-
error: string | null;
|
|
5
|
-
ingest: (chunks: RAGDocumentChunk[]) => Promise<RAGIngestResponse>;
|
|
6
|
-
ingestChunks: (chunks: RAGDocumentChunk[]) => Promise<RAGIngestResponse>;
|
|
7
|
-
ingestDocuments: (input: RAGDocumentIngestInput) => Promise<RAGIngestResponse>;
|
|
8
|
-
ingestUploads: (input: RAGDocumentUploadIngestInput) => Promise<RAGIngestResponse>;
|
|
9
|
-
ingestUrls: (input: RAGDocumentUrlIngestInput) => Promise<RAGIngestResponse>;
|
|
10
|
-
isIngesting: boolean;
|
|
11
|
-
lastDocumentCount: number | null;
|
|
12
|
-
lastIngestCount: number | null;
|
|
13
|
-
lastResponse: RAGIngestResponse | null;
|
|
14
|
-
reset: () => void;
|
|
15
|
-
};
|
|
16
|
-
export type UseRAGIngestResult = ReturnType<typeof useRAGIngest>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { RAGAdminActionRecord, RAGAdminJobRecord, RAGAdminCapabilities, RAGBackendCapabilities, RAGBackendMaintenanceSummary, RAGCorpusHealth, RAGDocumentSummary, RAGExtractorReadiness, RAGIngestJobRecord, RAGOperationsResponse, RAGSyncSourceRecord, RAGVectorStoreStatus } from '@absolutejs/ai';
|
|
2
|
-
export declare const useRAGOps: (path: string, autoLoad?: boolean) => {
|
|
3
|
-
admin: RAGAdminCapabilities | undefined;
|
|
4
|
-
adminActions: RAGAdminActionRecord[];
|
|
5
|
-
adminJobs: RAGAdminJobRecord[];
|
|
6
|
-
capabilities: RAGBackendCapabilities | undefined;
|
|
7
|
-
documents: RAGDocumentSummary | undefined;
|
|
8
|
-
error: string | null;
|
|
9
|
-
health: RAGCorpusHealth | undefined;
|
|
10
|
-
ingestJobs: RAGIngestJobRecord[];
|
|
11
|
-
isLoading: boolean;
|
|
12
|
-
maintenance: RAGBackendMaintenanceSummary | undefined;
|
|
13
|
-
operations: RAGOperationsResponse | undefined;
|
|
14
|
-
readiness: RAGExtractorReadiness | undefined;
|
|
15
|
-
refresh: () => Promise<RAGOperationsResponse>;
|
|
16
|
-
reset: () => void;
|
|
17
|
-
status: RAGVectorStoreStatus | undefined;
|
|
18
|
-
syncSources: RAGSyncSourceRecord[];
|
|
19
|
-
};
|
|
20
|
-
export type UseRAGOpsResult = ReturnType<typeof useRAGOps>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { RAGSearchRequest, RAGSource } from '@absolutejs/ai';
|
|
2
|
-
import { type RAGDetailedSearchResponse } from '../../ai/client/ragClient';
|
|
3
|
-
type SearchRequest = Omit<RAGSearchRequest, 'includeTrace'>;
|
|
4
|
-
export declare const useRAGSearch: (path: string) => {
|
|
5
|
-
error: string | null;
|
|
6
|
-
hasSearched: boolean;
|
|
7
|
-
isSearching: boolean;
|
|
8
|
-
lastRequest: RAGSearchRequest | null;
|
|
9
|
-
reset: () => void;
|
|
10
|
-
results: RAGSource[];
|
|
11
|
-
search: (input: SearchRequest) => Promise<RAGSource[]>;
|
|
12
|
-
searchWithTrace: (input: SearchRequest) => Promise<RAGDetailedSearchResponse>;
|
|
13
|
-
setResults: import("react").Dispatch<import("react").SetStateAction<RAGSource[]>>;
|
|
14
|
-
trace: import("@absolutejs/ai").RAGRetrievalTrace | undefined;
|
|
15
|
-
};
|
|
16
|
-
export type UseRAGSearchResult = ReturnType<typeof useRAGSearch>;
|
|
17
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AIMessage } from '@absolutejs/ai';
|
|
2
|
-
export declare const useRAGSources: (messages: AIMessage[]) => {
|
|
3
|
-
citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
|
|
4
|
-
chunkGraph: import("@absolutejs/ai").RAGChunkGraph;
|
|
5
|
-
hasSources: boolean;
|
|
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[];
|
|
10
|
-
sources: import("@absolutejs/ai").RAGSource[];
|
|
11
|
-
sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
|
|
12
|
-
};
|
|
13
|
-
export type UseRAGSourcesResult = ReturnType<typeof useRAGSources>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { RAGBackendCapabilities, RAGVectorStoreStatus } from '@absolutejs/ai';
|
|
2
|
-
export declare const useRAGStatus: (path: string, autoLoad?: boolean) => {
|
|
3
|
-
capabilities: RAGBackendCapabilities | undefined;
|
|
4
|
-
error: string | null;
|
|
5
|
-
isLoading: boolean;
|
|
6
|
-
refresh: () => Promise<import("@absolutejs/ai").RAGStatusResponse>;
|
|
7
|
-
reset: () => void;
|
|
8
|
-
status: RAGVectorStoreStatus | undefined;
|
|
9
|
-
};
|
|
10
|
-
export type UseRAGStatusResult = ReturnType<typeof useRAGStatus>;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import type { AIAttachment } from '@absolutejs/ai';
|
|
2
|
-
export declare const useRAGStream: (path?: string, conversationId?: string) => {
|
|
3
|
-
citationReferenceMap: import("@absolutejs/ai").RAGCitationReferenceMap;
|
|
4
|
-
citations: import("@absolutejs/ai").RAGCitation[];
|
|
5
|
-
coverage: "grounded" | "partial" | "ungrounded";
|
|
6
|
-
groundedAnswer: import("@absolutejs/ai").RAGGroundedAnswer;
|
|
7
|
-
groundingReferences: import("@absolutejs/ai").RAGGroundingReference[];
|
|
8
|
-
hasGrounding: boolean;
|
|
9
|
-
hasRetrieved: boolean;
|
|
10
|
-
hasSources: boolean;
|
|
11
|
-
isAnswerStreaming: boolean;
|
|
12
|
-
isComplete: boolean;
|
|
13
|
-
isError: boolean;
|
|
14
|
-
isRetrieved: boolean;
|
|
15
|
-
isRetrieving: boolean;
|
|
16
|
-
isRunning: boolean;
|
|
17
|
-
latestAssistantMessage: import("@absolutejs/ai").AIMessage | undefined;
|
|
18
|
-
progress: {
|
|
19
|
-
conversationId: string | undefined;
|
|
20
|
-
hasContent: boolean;
|
|
21
|
-
hasRetrieved: boolean;
|
|
22
|
-
hasSources: boolean;
|
|
23
|
-
hasThinking: boolean;
|
|
24
|
-
hasToolCalls: boolean;
|
|
25
|
-
isComplete: boolean;
|
|
26
|
-
isError: boolean;
|
|
27
|
-
isIdle: boolean;
|
|
28
|
-
isRetrieved: boolean;
|
|
29
|
-
isRetrieving: boolean;
|
|
30
|
-
isStreaming: boolean;
|
|
31
|
-
isSubmitting: boolean;
|
|
32
|
-
latestMessage: import("@absolutejs/ai").AIMessage | undefined;
|
|
33
|
-
messageId: string | undefined;
|
|
34
|
-
retrievalDurationMs: number | undefined;
|
|
35
|
-
retrievalStartedAt: number | undefined;
|
|
36
|
-
retrievedAt: number | undefined;
|
|
37
|
-
sourceCount: number;
|
|
38
|
-
stage: import("@absolutejs/ai").RAGStreamStage;
|
|
39
|
-
};
|
|
40
|
-
query: (content: string, attachments?: AIAttachment[]) => void;
|
|
41
|
-
retrieval: import("@absolutejs/ai").RAGRetrievedState | null;
|
|
42
|
-
sourceGroups: import("@absolutejs/ai").RAGSourceGroup[];
|
|
43
|
-
sourceSummaries: import("@absolutejs/ai").RAGSourceSummary[];
|
|
44
|
-
sources: import("@absolutejs/ai").RAGSource[];
|
|
45
|
-
stage: import("@absolutejs/ai").RAGStreamStage;
|
|
46
|
-
ungroundedReferenceNumbers: number[];
|
|
47
|
-
workflow: import("@absolutejs/ai").RAGAnswerWorkflowState;
|
|
48
|
-
branch: (messageId: string, content: string) => void;
|
|
49
|
-
cancel: () => void;
|
|
50
|
-
error: string | null;
|
|
51
|
-
isStreaming: boolean;
|
|
52
|
-
messages: import("@absolutejs/ai").AIMessage[];
|
|
53
|
-
send: (content: string, attachments?: AIAttachment[]) => void;
|
|
54
|
-
};
|
|
55
|
-
export type UseRAGStreamResult = ReturnType<typeof useRAGStream>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { AIMessage } from '@absolutejs/ai';
|
|
2
|
-
import { type RAGStreamProgress } from '../../ai/rag/workflowState';
|
|
3
|
-
export declare const useRAGStreamProgress: (params: {
|
|
4
|
-
error: string | null;
|
|
5
|
-
isStreaming: boolean;
|
|
6
|
-
messages: AIMessage[];
|
|
7
|
-
}) => RAGStreamProgress;
|
|
8
|
-
export type UseRAGStreamProgressResult = ReturnType<typeof useRAGStreamProgress>;
|
|
9
|
-
export type { RAGStreamProgress };
|