@absolutejs/absolute 0.19.0-beta.444 → 0.19.0-beta.446
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/index.js +159 -7
- package/dist/ai/index.js.map +6 -5
- package/dist/angular/index.js +2 -2
- package/dist/angular/index.js.map +1 -1
- package/dist/angular/server.js +2 -2
- package/dist/angular/server.js.map +1 -1
- package/dist/build.js +2 -2
- package/dist/build.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/src/ai/index.d.ts +1 -1
- package/dist/src/ai/rag/chat.d.ts +8 -8
- package/dist/src/ai/rag/htmxWorkflowRenderers.d.ts +3 -0
- package/dist/src/ai/rag/index.d.ts +1 -1
- package/dist/src/ai/rag/types.d.ts +1 -1
- package/dist/types/ai.d.ts +26 -0
- package/package.json +1 -1
package/dist/src/ai/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { createSQLiteRAGStore } from './rag/adapters/sqlite';
|
|
|
7
7
|
export { resolveAbsoluteSQLiteVec, resolveAbsoluteSQLiteVecExtensionPath } from './rag/resolveAbsoluteSQLiteVec';
|
|
8
8
|
export { createRAGVector, normalizeVector, querySimilarity } from './rag/adapters/utils';
|
|
9
9
|
export type { NativeSQLiteRAGStoreOptions, SQLiteRAGStoreOptions } from './rag/adapters/sqlite';
|
|
10
|
-
export type { RAGSource, RAGBackendCapabilities, RAGCitation, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGIngestDocument, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGPostgresNativeDiagnostics, RAGPreparedDocument, RAGSearchRequest, RAGSourceGroup, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution, RAGChatPluginConfig } from '../../types/ai';
|
|
10
|
+
export type { RAGSource, RAGBackendCapabilities, RAGCitation, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGPostgresNativeDiagnostics, RAGPreparedDocument, RAGSearchRequest, RAGSourceGroup, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGMutationResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution, RAGChatPluginConfig } from '../../types/ai';
|
|
11
11
|
export { createConversationManager } from './conversationManager';
|
|
12
12
|
export { createMemoryStore } from './memoryStore';
|
|
13
13
|
export { generateId, parseAIMessage, serializeAIMessage } from './protocol';
|
|
@@ -34,7 +34,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
34
34
|
query: unknown;
|
|
35
35
|
headers: unknown;
|
|
36
36
|
response: {
|
|
37
|
-
200: {
|
|
37
|
+
200: Response | {
|
|
38
38
|
ok: boolean;
|
|
39
39
|
results?: RAGSource[];
|
|
40
40
|
error?: string;
|
|
@@ -52,7 +52,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
52
52
|
query: unknown;
|
|
53
53
|
headers: unknown;
|
|
54
54
|
response: {
|
|
55
|
-
200: {
|
|
55
|
+
200: Response | {
|
|
56
56
|
ok: true;
|
|
57
57
|
status: import("./types").RAGVectorStoreStatus | undefined;
|
|
58
58
|
capabilities: import("./types").RAGBackendCapabilities | undefined;
|
|
@@ -70,7 +70,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
70
70
|
query: unknown;
|
|
71
71
|
headers: unknown;
|
|
72
72
|
response: {
|
|
73
|
-
200: RAGDocumentsResponse | {
|
|
73
|
+
200: Response | RAGDocumentsResponse | {
|
|
74
74
|
ok: false;
|
|
75
75
|
error: string;
|
|
76
76
|
};
|
|
@@ -87,7 +87,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
87
87
|
query: unknown;
|
|
88
88
|
headers: unknown;
|
|
89
89
|
response: {
|
|
90
|
-
200: RAGMutationResponse;
|
|
90
|
+
200: Response | RAGMutationResponse;
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
};
|
|
@@ -105,7 +105,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
105
105
|
query: unknown;
|
|
106
106
|
headers: unknown;
|
|
107
107
|
response: {
|
|
108
|
-
200: RAGDocumentChunksResponse;
|
|
108
|
+
200: Response | RAGDocumentChunksResponse;
|
|
109
109
|
422: {
|
|
110
110
|
type: "validation";
|
|
111
111
|
on: string;
|
|
@@ -185,7 +185,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
185
185
|
query: unknown;
|
|
186
186
|
headers: unknown;
|
|
187
187
|
response: {
|
|
188
|
-
200: RAGMutationResponse;
|
|
188
|
+
200: Response | RAGMutationResponse;
|
|
189
189
|
422: {
|
|
190
190
|
type: "validation";
|
|
191
191
|
on: string;
|
|
@@ -209,7 +209,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
209
209
|
query: unknown;
|
|
210
210
|
headers: unknown;
|
|
211
211
|
response: {
|
|
212
|
-
200: RAGMutationResponse;
|
|
212
|
+
200: Response | RAGMutationResponse;
|
|
213
213
|
};
|
|
214
214
|
};
|
|
215
215
|
};
|
|
@@ -223,7 +223,7 @@ export declare const ragChat: (config: RAGChatPluginConfig) => Elysia<"", {
|
|
|
223
223
|
query: unknown;
|
|
224
224
|
headers: unknown;
|
|
225
225
|
response: {
|
|
226
|
-
200: RAGMutationResponse;
|
|
226
|
+
200: Response | RAGMutationResponse;
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
229
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { RAGHTMXWorkflowRenderConfig } from '../../../types/ai';
|
|
2
|
+
export type ResolvedRAGWorkflowRenderers = Required<RAGHTMXWorkflowRenderConfig>;
|
|
3
|
+
export declare const resolveRAGWorkflowRenderers: (custom?: RAGHTMXWorkflowRenderConfig) => ResolvedRAGWorkflowRenderers;
|
|
@@ -7,5 +7,5 @@ export { createSQLiteRAGStore } from './adapters/sqlite';
|
|
|
7
7
|
export { resolveAbsoluteSQLiteVec, resolveAbsoluteSQLiteVecExtensionPath } from './resolveAbsoluteSQLiteVec';
|
|
8
8
|
export { createRAGVector, normalizeVector, querySimilarity } from './adapters/utils';
|
|
9
9
|
export type { NativeSQLiteRAGStoreOptions, SQLiteRAGStoreOptions } from './adapters/sqlite';
|
|
10
|
-
export type { RAGSource, RAGBackendCapabilities, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGIngestDocument, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGPreparedDocument, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from './types';
|
|
10
|
+
export type { RAGSource, RAGBackendCapabilities, RAGChunkingOptions, RAGChunkingStrategy, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGBackendDescriptor, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGMutationResponse, RAGPreparedDocument, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from './types';
|
|
11
11
|
export type { RAGPostgresNativeDiagnostics } from '../../../types/ai';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RAGDocumentChunk, RAGQueryInput, RAGQueryResult, RAGUpsertInput } from '../../../types/ai';
|
|
2
|
-
export type { RAGBackendCapabilities, RAGCitation, RAGChunkingOptions, RAGChunkingStrategy, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGDocumentChunk, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGIngestDocument, RAGPreparedDocument, RAGSource, RAGSourceGroup, RAGIngestResponse, RAGPostgresNativeDiagnostics, RAGQueryInput, RAGQueryResult, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from '../../../types/ai';
|
|
2
|
+
export type { RAGBackendCapabilities, RAGCitation, RAGChunkingOptions, RAGChunkingStrategy, RAGCollection, RAGCollectionSearchParams, RAGContentFormat, RAGDocumentChunk, RAGDocumentChunkPreview, RAGDirectoryIngestInput, RAGDocumentFileInput, RAGDocumentIngestInput, RAGBackendDescriptor, RAGHTMXWorkflowRenderConfig, RAGIngestDocument, RAGIndexedDocument, RAGPreparedDocument, RAGSource, RAGSourceGroup, RAGIngestResponse, RAGMutationResponse, RAGPostgresNativeDiagnostics, RAGQueryInput, RAGQueryResult, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGStreamStage, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from '../../../types/ai';
|
|
3
3
|
export type InternalRAGStoredChunk = RAGDocumentChunk & {
|
|
4
4
|
vector: number[];
|
|
5
5
|
sourceId: string;
|
package/dist/types/ai.d.ts
CHANGED
|
@@ -590,6 +590,31 @@ export type AIHTMXRenderConfig = {
|
|
|
590
590
|
ragRetrieved?: (sources: RAGSource[]) => string;
|
|
591
591
|
error?: (message: string) => string;
|
|
592
592
|
};
|
|
593
|
+
export type RAGHTMXWorkflowRenderConfig = {
|
|
594
|
+
status?: (input: {
|
|
595
|
+
status?: RAGVectorStoreStatus;
|
|
596
|
+
capabilities?: RAGBackendCapabilities;
|
|
597
|
+
}) => string;
|
|
598
|
+
searchResults?: (input: {
|
|
599
|
+
query: string;
|
|
600
|
+
results: RAGSource[];
|
|
601
|
+
}) => string;
|
|
602
|
+
searchResultItem?: (source: RAGSource, index: number) => string;
|
|
603
|
+
documents?: (input: {
|
|
604
|
+
documents: RAGIndexedDocument[];
|
|
605
|
+
}) => string;
|
|
606
|
+
documentItem?: (document: RAGIndexedDocument, index: number) => string;
|
|
607
|
+
chunkPreview?: (input: RAGDocumentChunkPreview) => string;
|
|
608
|
+
mutationResult?: (input: RAGMutationResponse) => string;
|
|
609
|
+
emptyState?: (kind: 'documents' | 'searchResults' | 'chunkPreview' | 'status') => string;
|
|
610
|
+
error?: (message: string) => string;
|
|
611
|
+
};
|
|
612
|
+
export type RAGHTMXConfig = {
|
|
613
|
+
render?: AIHTMXRenderConfig;
|
|
614
|
+
workflow?: {
|
|
615
|
+
render?: RAGHTMXWorkflowRenderConfig;
|
|
616
|
+
};
|
|
617
|
+
};
|
|
593
618
|
export type AIChatPluginConfig = {
|
|
594
619
|
path?: string;
|
|
595
620
|
provider: (providerName: string) => AIProviderConfig;
|
|
@@ -622,6 +647,7 @@ export type RAGChatPluginConfig = AIChatPluginConfig & {
|
|
|
622
647
|
scoreThreshold?: number;
|
|
623
648
|
ragCompleteSources?: boolean;
|
|
624
649
|
systemPrompt?: string;
|
|
650
|
+
htmx?: boolean | RAGHTMXConfig;
|
|
625
651
|
onComplete?: (conversationId: string, fullResponse: string, usage?: AIUsage, sources?: RAGSource[]) => void;
|
|
626
652
|
};
|
|
627
653
|
export type AIConnectionOptions = {
|
package/package.json
CHANGED