@absolutejs/absolute 0.19.0-beta.439 → 0.19.0-beta.440

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.
@@ -0,0 +1,206 @@
1
+ import type { RAGBackendsResponse, RAGContentFormat, RAGChunkingStrategy, RAGMutationResponse } from '../../../types/ai';
2
+ export declare const useRAGIndexAdmin: (path: string) => {
3
+ backends: import("vue").Ref<{
4
+ ok: true;
5
+ defaultMode?: string | undefined;
6
+ activeModeCookie?: string | undefined;
7
+ backends: {
8
+ id: string;
9
+ label: string;
10
+ path?: string | undefined;
11
+ available: boolean;
12
+ reason?: string | undefined;
13
+ lastSeedMs?: number | undefined;
14
+ status?: {
15
+ backend: "in_memory" | "sqlite" | "postgres";
16
+ vectorMode: "in_memory" | "json_fallback" | "native_vec0" | "native_pgvector";
17
+ dimensions?: number | undefined;
18
+ native?: {
19
+ requested: boolean;
20
+ available: boolean;
21
+ active: boolean;
22
+ mode?: "vec0" | undefined;
23
+ tableName?: string | undefined;
24
+ distanceMetric?: "cosine" | "l2" | undefined;
25
+ resolution?: {
26
+ status: import("../..").SQLiteVecResolutionStatus;
27
+ source: import("../..").SQLiteVecResolutionSource;
28
+ platformKey: string;
29
+ packageName?: string | undefined;
30
+ packageVersion?: string | undefined;
31
+ packageRoot?: string | undefined;
32
+ libraryFile?: string | undefined;
33
+ libraryPath?: string | undefined;
34
+ reason?: string | undefined;
35
+ } | undefined;
36
+ fallbackReason?: string | undefined;
37
+ lastLoadError?: string | undefined;
38
+ lastQueryError?: string | undefined;
39
+ lastUpsertError?: string | undefined;
40
+ } | {
41
+ requested: boolean;
42
+ available: boolean;
43
+ active: boolean;
44
+ mode?: "pgvector" | undefined;
45
+ extensionName?: string | undefined;
46
+ schemaName?: string | undefined;
47
+ tableName?: string | undefined;
48
+ distanceMetric?: "cosine" | "l2" | "inner_product" | undefined;
49
+ indexType?: "none" | "hnsw" | "ivfflat" | undefined;
50
+ fallbackReason?: string | undefined;
51
+ lastInitError?: string | undefined;
52
+ lastQueryError?: string | undefined;
53
+ lastUpsertError?: string | undefined;
54
+ lastMigrationError?: string | undefined;
55
+ } | undefined;
56
+ } | undefined;
57
+ capabilities?: {
58
+ backend: "in_memory" | "sqlite" | "postgres" | "custom";
59
+ persistence: "memory_only" | "embedded" | "external";
60
+ nativeVectorSearch: boolean;
61
+ serverSideFiltering: boolean;
62
+ streamingIngestStatus: boolean;
63
+ } | undefined;
64
+ }[];
65
+ } | null, RAGBackendsResponse | {
66
+ ok: true;
67
+ defaultMode?: string | undefined;
68
+ activeModeCookie?: string | undefined;
69
+ backends: {
70
+ id: string;
71
+ label: string;
72
+ path?: string | undefined;
73
+ available: boolean;
74
+ reason?: string | undefined;
75
+ lastSeedMs?: number | undefined;
76
+ status?: {
77
+ backend: "in_memory" | "sqlite" | "postgres";
78
+ vectorMode: "in_memory" | "json_fallback" | "native_vec0" | "native_pgvector";
79
+ dimensions?: number | undefined;
80
+ native?: {
81
+ requested: boolean;
82
+ available: boolean;
83
+ active: boolean;
84
+ mode?: "vec0" | undefined;
85
+ tableName?: string | undefined;
86
+ distanceMetric?: "cosine" | "l2" | undefined;
87
+ resolution?: {
88
+ status: import("../..").SQLiteVecResolutionStatus;
89
+ source: import("../..").SQLiteVecResolutionSource;
90
+ platformKey: string;
91
+ packageName?: string | undefined;
92
+ packageVersion?: string | undefined;
93
+ packageRoot?: string | undefined;
94
+ libraryFile?: string | undefined;
95
+ libraryPath?: string | undefined;
96
+ reason?: string | undefined;
97
+ } | undefined;
98
+ fallbackReason?: string | undefined;
99
+ lastLoadError?: string | undefined;
100
+ lastQueryError?: string | undefined;
101
+ lastUpsertError?: string | undefined;
102
+ } | {
103
+ requested: boolean;
104
+ available: boolean;
105
+ active: boolean;
106
+ mode?: "pgvector" | undefined;
107
+ extensionName?: string | undefined;
108
+ schemaName?: string | undefined;
109
+ tableName?: string | undefined;
110
+ distanceMetric?: "cosine" | "l2" | "inner_product" | undefined;
111
+ indexType?: "none" | "hnsw" | "ivfflat" | undefined;
112
+ fallbackReason?: string | undefined;
113
+ lastInitError?: string | undefined;
114
+ lastQueryError?: string | undefined;
115
+ lastUpsertError?: string | undefined;
116
+ lastMigrationError?: string | undefined;
117
+ } | undefined;
118
+ } | undefined;
119
+ capabilities?: {
120
+ backend: "in_memory" | "sqlite" | "postgres" | "custom";
121
+ persistence: "memory_only" | "embedded" | "external";
122
+ nativeVectorSearch: boolean;
123
+ serverSideFiltering: boolean;
124
+ streamingIngestStatus: boolean;
125
+ } | undefined;
126
+ }[];
127
+ } | null>;
128
+ clearIndex: () => Promise<{
129
+ ok: boolean;
130
+ }>;
131
+ createDocument: (input: {
132
+ id?: string;
133
+ title?: string;
134
+ source?: string;
135
+ text: string;
136
+ format?: RAGContentFormat;
137
+ metadata?: Record<string, unknown>;
138
+ chunking?: {
139
+ maxChunkLength?: number;
140
+ chunkOverlap?: number;
141
+ minChunkLength?: number;
142
+ strategy?: RAGChunkingStrategy;
143
+ };
144
+ }) => Promise<RAGMutationResponse>;
145
+ deleteDocument: (id: string) => Promise<RAGMutationResponse>;
146
+ error: import("vue").Ref<string | null, string | null>;
147
+ isLoading: import("vue").Ref<boolean, boolean>;
148
+ lastMutation: import("vue").Ref<{
149
+ ok: boolean;
150
+ error?: string | undefined;
151
+ deleted?: string | undefined;
152
+ inserted?: string | undefined;
153
+ status?: string | undefined;
154
+ documents?: number | undefined;
155
+ backendStats?: Record<string, {
156
+ chunkCount: number;
157
+ totalDocuments: number;
158
+ elapsedMs: number;
159
+ }> | undefined;
160
+ document?: {
161
+ id: string;
162
+ title: string;
163
+ source: string;
164
+ text?: string | undefined;
165
+ kind?: string | undefined;
166
+ format?: RAGContentFormat | undefined;
167
+ chunkStrategy?: RAGChunkingStrategy | undefined;
168
+ chunkSize?: number | undefined;
169
+ chunkCount?: number | undefined;
170
+ createdAt?: number | undefined;
171
+ updatedAt?: number | undefined;
172
+ metadata?: Record<string, unknown> | undefined;
173
+ } | undefined;
174
+ } | null, RAGMutationResponse | {
175
+ ok: boolean;
176
+ error?: string | undefined;
177
+ deleted?: string | undefined;
178
+ inserted?: string | undefined;
179
+ status?: string | undefined;
180
+ documents?: number | undefined;
181
+ backendStats?: Record<string, {
182
+ chunkCount: number;
183
+ totalDocuments: number;
184
+ elapsedMs: number;
185
+ }> | undefined;
186
+ document?: {
187
+ id: string;
188
+ title: string;
189
+ source: string;
190
+ text?: string | undefined;
191
+ kind?: string | undefined;
192
+ format?: RAGContentFormat | undefined;
193
+ chunkStrategy?: RAGChunkingStrategy | undefined;
194
+ chunkSize?: number | undefined;
195
+ chunkCount?: number | undefined;
196
+ createdAt?: number | undefined;
197
+ updatedAt?: number | undefined;
198
+ metadata?: Record<string, unknown> | undefined;
199
+ } | undefined;
200
+ } | null>;
201
+ loadBackends: () => Promise<RAGBackendsResponse>;
202
+ reseed: () => Promise<RAGMutationResponse>;
203
+ reset: () => Promise<RAGMutationResponse>;
204
+ resetState: () => void;
205
+ };
206
+ export type UseRAGIndexAdminResult = ReturnType<typeof useRAGIndexAdmin>;
@@ -1,7 +1,25 @@
1
- import type { RAGDocumentChunk } from '../../../types/ai';
1
+ import type { RAGDocumentChunk, RAGDocumentIngestInput, RAGIngestResponse } from '../../../types/ai';
2
2
  export declare const useRAGIngest: (path: string) => {
3
+ clearIndex: () => Promise<{
4
+ ok: boolean;
5
+ }>;
3
6
  error: import("vue").Ref<string | null, string | null>;
4
- ingest: (chunks: RAGDocumentChunk[]) => Promise<import("../..").RAGIngestResponse>;
7
+ ingest: (chunks: RAGDocumentChunk[]) => Promise<RAGIngestResponse>;
8
+ ingestChunks: (chunks: RAGDocumentChunk[]) => Promise<RAGIngestResponse>;
9
+ ingestDocuments: (input: RAGDocumentIngestInput) => Promise<RAGIngestResponse>;
5
10
  isIngesting: import("vue").Ref<boolean, boolean>;
11
+ lastDocumentCount: import("vue").Ref<number | null, number | null>;
6
12
  lastIngestCount: import("vue").Ref<number | null, number | null>;
13
+ lastResponse: import("vue").Ref<{
14
+ ok: boolean;
15
+ count?: number | undefined;
16
+ documentCount?: number | undefined;
17
+ error?: string | undefined;
18
+ } | null, RAGIngestResponse | {
19
+ ok: boolean;
20
+ count?: number | undefined;
21
+ documentCount?: number | undefined;
22
+ error?: string | undefined;
23
+ } | null>;
24
+ reset: () => void;
7
25
  };
@@ -1,7 +1,22 @@
1
1
  import type { RAGSearchRequest, RAGSource } from '../../../types/ai';
2
2
  export declare const useRAGSearch: (path: string) => {
3
3
  error: import("vue").Ref<string | null, string | null>;
4
+ hasSearched: import("vue").Ref<boolean, boolean>;
4
5
  isSearching: import("vue").Ref<boolean, boolean>;
6
+ lastRequest: import("vue").Ref<{
7
+ filter?: Record<string, unknown> | undefined;
8
+ query: string;
9
+ topK?: number | undefined;
10
+ scoreThreshold?: number | undefined;
11
+ model?: string | undefined;
12
+ } | null, RAGSearchRequest | {
13
+ filter?: Record<string, unknown> | undefined;
14
+ query: string;
15
+ topK?: number | undefined;
16
+ scoreThreshold?: number | undefined;
17
+ model?: string | undefined;
18
+ } | null>;
19
+ reset: () => void;
5
20
  results: import("vue").Ref<{
6
21
  chunkId: string;
7
22
  score: number;
@@ -0,0 +1,9 @@
1
+ import { type Ref } from 'vue';
2
+ import type { AIMessage } from '../../../types/ai';
3
+ export declare const useRAGSources: (messages: Ref<AIMessage[]>) => {
4
+ hasSources: import("vue").ComputedRef<boolean>;
5
+ latestAssistantMessage: import("vue").ComputedRef<AIMessage | undefined>;
6
+ sourceGroups: import("vue").ComputedRef<import("../..").RAGSourceGroup[]>;
7
+ sources: import("vue").ComputedRef<import("../..").RAGSource[]>;
8
+ };
9
+ export type UseRAGSourcesResult = ReturnType<typeof useRAGSources>;
@@ -4,5 +4,6 @@ export declare const useRAGStatus: (path: string, autoLoad?: boolean) => {
4
4
  error: import("vue").Ref<string | null, string | null>;
5
5
  isLoading: import("vue").Ref<boolean, boolean>;
6
6
  refresh: () => Promise<import("../..").RAGStatusResponse>;
7
+ reset: () => void;
7
8
  status: import("vue").Ref<RAGVectorStoreStatus | undefined, RAGVectorStoreStatus | undefined>;
8
9
  };
@@ -1,10 +1,23 @@
1
+ import type { AIAttachment } from '../../../types/ai';
1
2
  export declare const useRAGStream: (path: string, conversationId?: string) => {
3
+ citations: import("vue").ComputedRef<import("../..").RAGCitation[]>;
4
+ hasRetrieved: import("vue").ComputedRef<boolean>;
5
+ hasSources: import("vue").ComputedRef<boolean>;
6
+ isAnswerStreaming: import("vue").ComputedRef<boolean>;
7
+ isComplete: import("vue").ComputedRef<boolean>;
8
+ isRetrieving: import("vue").ComputedRef<boolean>;
9
+ latestAssistantMessage: import("vue").ComputedRef<import("../..").AIMessage | undefined>;
10
+ query: (content: string, attachments?: AIAttachment[]) => void;
11
+ retrieval: import("vue").ComputedRef<import("../..").RAGRetrievedState | null>;
12
+ sourceGroups: import("vue").ComputedRef<import("../..").RAGSourceGroup[]>;
13
+ sources: import("vue").ComputedRef<import("../..").RAGSource[]>;
14
+ stage: import("vue").ComputedRef<import("../..").RAGStreamStage>;
2
15
  branch: (messageId: string, content: string) => void;
3
16
  cancel: () => void;
4
17
  destroy: () => void;
5
18
  error: import("vue").Ref<string | null, string | null>;
6
19
  isStreaming: import("vue").Ref<boolean, boolean>;
7
20
  messages: import("vue").ShallowRef<import("../..").AIMessage[], import("../..").AIMessage[]>;
8
- send: (content: string, attachments?: import("../..").AIAttachment[]) => void;
21
+ send: (content: string, attachments?: AIAttachment[]) => void;
9
22
  };
10
23
  export type UseRAGStreamResult = ReturnType<typeof useRAGStream>;