@absolutejs/absolute 0.19.0-beta.410 → 0.19.0-beta.412

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.
@@ -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, RAGDocumentChunk, RAGCollection, RAGCollectionSearchParams, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution, RAGChatPluginConfig } from '../../types/ai';
10
+ export type { RAGSource, RAGBackendCapabilities, RAGDocumentChunk, RAGCollection, RAGCollectionSearchParams, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGPostgresNativeDiagnostics, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, 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';
@@ -6,3 +6,4 @@ export { resolveAbsoluteSQLiteVec, resolveAbsoluteSQLiteVecExtensionPath } from
6
6
  export { createRAGVector, normalizeVector, querySimilarity } from './adapters/utils';
7
7
  export type { NativeSQLiteRAGStoreOptions, SQLiteRAGStoreOptions } from './adapters/sqlite';
8
8
  export type { RAGSource, RAGBackendCapabilities, RAGDocumentChunk, RAGCollection, RAGCollectionSearchParams, RAGQueryInput, RAGQueryResult, RAGIngestResponse, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from './types';
9
+ 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, RAGCollection, RAGCollectionSearchParams, RAGDocumentChunk, RAGSource, RAGIngestResponse, RAGQueryInput, RAGQueryResult, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from '../../../types/ai';
2
+ export type { RAGBackendCapabilities, RAGCollection, RAGCollectionSearchParams, RAGDocumentChunk, RAGSource, RAGIngestResponse, RAGPostgresNativeDiagnostics, RAGQueryInput, RAGQueryResult, RAGSearchRequest, RAGSQLiteNativeDiagnostics, RAGStatusResponse, RAGUpsertInput, RAGVectorStore, RAGVectorStoreStatus, SQLiteVecResolution } from '../../../types/ai';
3
3
  export type InternalRAGStoredChunk = RAGDocumentChunk & {
4
4
  vector: number[];
5
5
  sourceId: string;
@@ -2,8 +2,10 @@ import { AfterViewInit, OnDestroy } from '@angular/core';
2
2
  import { type SafeHtml } from '@angular/platform-browser';
3
3
  type SlotResolver = () => Promise<string> | string;
4
4
  export declare class StreamSlotComponent implements AfterViewInit, OnDestroy {
5
+ private readonly cdr;
5
6
  private readonly sanitizer;
6
7
  private readonly hostElement;
8
+ private readonly zone;
7
9
  private readonly patchListener;
8
10
  className?: string;
9
11
  errorHtml?: string;
@@ -60,11 +60,26 @@ export type RAGSQLiteNativeDiagnostics = {
60
60
  lastQueryError?: string;
61
61
  lastUpsertError?: string;
62
62
  };
63
+ export type RAGPostgresNativeDiagnostics = {
64
+ requested: boolean;
65
+ available: boolean;
66
+ active: boolean;
67
+ mode?: 'pgvector';
68
+ extensionName?: string;
69
+ schemaName?: string;
70
+ tableName?: string;
71
+ distanceMetric?: 'cosine' | 'l2' | 'inner_product';
72
+ indexType?: 'none' | 'hnsw' | 'ivfflat';
73
+ fallbackReason?: string;
74
+ lastInitError?: string;
75
+ lastQueryError?: string;
76
+ lastUpsertError?: string;
77
+ };
63
78
  export type RAGVectorStoreStatus = {
64
- backend: 'in_memory' | 'sqlite';
65
- vectorMode: 'in_memory' | 'json_fallback' | 'native_vec0';
79
+ backend: 'in_memory' | 'sqlite' | 'postgres';
80
+ vectorMode: 'in_memory' | 'json_fallback' | 'native_vec0' | 'native_pgvector';
66
81
  dimensions?: number;
67
- native?: RAGSQLiteNativeDiagnostics;
82
+ native?: RAGSQLiteNativeDiagnostics | RAGPostgresNativeDiagnostics;
68
83
  };
69
84
  export type RAGBackendCapabilities = {
70
85
  backend: 'in_memory' | 'sqlite' | 'postgres' | 'custom';
package/package.json CHANGED
@@ -314,5 +314,5 @@
314
314
  "typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts"
315
315
  },
316
316
  "types": "./dist/src/index.d.ts",
317
- "version": "0.19.0-beta.410"
317
+ "version": "0.19.0-beta.412"
318
318
  }