@retrivora-ai/rag-engine 2.5.2 → 2.5.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/server.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { V as VectorDBConfig, L as LLMConfig, f as EmbeddingConfig, p as RagConfig, v as UniversalRagConfig, w as UpsertDocument, y as VectorMatch, G as GraphDBConfig, H as GraphNode, J as Edge, K as GraphSearchResult, I as ILLMProvider, x as VectorDBProvider, i as LLMProvider, g as EmbeddingProvider, R as RAGConfig, u as UIConfig, U as UITransformationResponse, C as ChatMessage, d as ChatOptions, E as EmbedOptions, h as IngestDocument, e as ChatResponse } from './ILLMProvider-BynaFBpy.mjs';
2
- export { A as AuthMode, M as BarChartData, N as CarouselProduct, Q as IRetriever, j as LatencyBreakdown, S as LineChartDataPoint, X as MessageRole, Y as MetricCardData, O as ObservabilityTrace, Z as PieChartData, P as Product, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, c as ProjectChatSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, q as RagMessage, r as RetrievalConfig, _ as RetrievalResult, s as RetrievedChunk, $ as RetrivoraChunkMetadata, a0 as RetrivoraIngestedDocument, a1 as ScatterPlotDataPoint, a2 as SuggestionsResponse, a3 as TableData, T as ThemeMode, t as TokenUsage, a as UseRagChatOptions, b as UseRagChatReturn, a4 as VisualizationType, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-BynaFBpy.mjs';
3
- import { o as DecisionContext, q as IntentCategory, I as IRenderRule, G as RenderDecision, p as IRendererStrategy } from './BatchProcessor-OVOIlNfK.mjs';
4
- export { V as ArchitectureCardProps, A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, e as ChatViewportSize, C as ChatWidgetProps, a as ChatWindowProps, i as Chunk, j as ChunkOptions, c as ClientConfig, m as ConfigFetcher, b as ConfigProviderProps, n as ConfigurationException, W as DocumentChunker, D as DocumentUploadProps, E as EmbeddingFailedException, X as LicenseConfigResolver, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, M as MessageBubbleProps, Y as Pipeline, Z as PipelineStep, P as ProductCardProps, d as ProductCarouselProps, v as ProviderCredentials, w as ProviderNotFoundException, _ as ProviderPill, x as RateLimitException, R as RemoteConfig, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, $ as RenderSectionDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, a0 as Snippet, S as SourceCardProps, a1 as wrapError } from './BatchProcessor-OVOIlNfK.mjs';
5
- import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-D2mY1CrY.mjs';
6
- export { C as ConfigValidator, b as HandlerOptions, V as ValidationError, c as VectorPlugin, d as createChatHandler, e as createFeedbackHandler, f as createHealthHandler, g as createHistoryHandler, h as createIngestHandler, i as createRagHandler, j as createSessionsHandler, k as createStreamHandler, l as createUploadHandler, s as sseErrorFrame, m as sseFrame, n as sseMetaFrame, o as sseTextFrame } from './index-D2mY1CrY.mjs';
1
+ import { p as RagConfig, v as UniversalRagConfig, V as VectorDBConfig, w as UpsertDocument, y as VectorMatch, G as GraphDBConfig, H as GraphNode, J as Edge, K as GraphSearchResult, L as LLMConfig, f as EmbeddingConfig, I as ILLMProvider, x as VectorDBProvider, i as LLMProvider, g as EmbeddingProvider, R as RAGConfig, u as UIConfig, U as UITransformationResponse, C as ChatMessage, d as ChatOptions, E as EmbedOptions, h as IngestDocument, e as ChatResponse } from './ILLMProvider-DO5gj-e5.mjs';
2
+ export { A as AuthMode, M as BarChartData, N as CarouselProduct, Q as IRetriever, j as LatencyBreakdown, S as LineChartDataPoint, X as MessageRole, Y as MetricCardData, O as ObservabilityTrace, Z as PieChartData, P as Product, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, c as ProjectChatSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, q as RagMessage, r as RetrievalConfig, _ as RetrievalResult, s as RetrievedChunk, $ as RetrivoraChunkMetadata, a0 as RetrivoraIngestedDocument, a1 as ScatterPlotDataPoint, a2 as SuggestionsResponse, a3 as TableData, T as ThemeMode, t as TokenUsage, a as UseRagChatOptions, b as UseRagChatReturn, a4 as VisualizationType, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-DO5gj-e5.mjs';
3
+ import { o as DecisionContext, q as IntentCategory, I as IRenderRule, G as RenderDecision, p as IRendererStrategy } from './index-Dex_gQ3P.mjs';
4
+ export { V as ArchitectureCardProps, A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, e as ChatViewportSize, C as ChatWidgetProps, a as ChatWindowProps, i as Chunk, j as ChunkOptions, c as ClientConfig, m as ConfigFetcher, b as ConfigProviderProps, n as ConfigurationException, W as DocumentChunker, D as DocumentUploadProps, E as EmbeddingFailedException, X as LicenseConfigResolver, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, M as MessageBubbleProps, Y as Pipeline, Z as PipelineStep, P as ProductCardProps, d as ProductCarouselProps, v as ProviderCredentials, w as ProviderNotFoundException, _ as ProviderPill, x as RateLimitException, R as RemoteConfig, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, $ as RenderSectionDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, a0 as Snippet, S as SourceCardProps, a1 as wrapError } from './index-Dex_gQ3P.mjs';
5
+ import { I as IProviderValidator, a as IProviderHealthChecker, H as HealthCheckResult } from './index-DE8qPWpI.mjs';
6
+ export { C as ConfigValidator, b as HandlerOptions, V as ValidationError, c as VectorPlugin, d as createChatHandler, e as createFeedbackHandler, f as createHealthHandler, g as createHistoryHandler, h as createIngestHandler, i as createRagHandler, j as createSessionsHandler, k as createStreamHandler, l as createUploadHandler, s as sseErrorFrame, m as sseFrame, n as sseMetaFrame, o as sseTextFrame } from './index-DE8qPWpI.mjs';
7
7
  import 'react';
8
8
  import 'next/server';
9
9
 
@@ -25,6 +25,10 @@ interface LicensePayload {
25
25
  declare class LicenseVerifier {
26
26
  private static readonly cache;
27
27
  private static readonly CACHE_TTL_MS;
28
+ /**
29
+ * Computes a deterministic hardware fingerprint to enforce node-locked licensing.
30
+ */
31
+ private static generateMachineFingerprint;
28
32
  /**
29
33
  * Validates the license key asynchronously by calling the Retrivora backend.
30
34
  *
@@ -37,31 +41,6 @@ declare class LicenseVerifier {
37
41
  static extractTier(licenseKey: string | undefined): string;
38
42
  }
39
43
 
40
- /**
41
- * ProviderHealthCheck.ts — Pre-flight validation for vector DB and LLM providers.
42
- * Performs connectivity tests, credential validation, and capability checks.
43
- */
44
- declare class ProviderHealthCheck {
45
- /**
46
- * Validates vector database configuration before initialization.
47
- */
48
- static checkVectorProvider(config: VectorDBConfig): Promise<HealthCheckResult>;
49
- private static fallbackVectorHealthCheck;
50
- /**
51
- * Validates LLM provider configuration.
52
- */
53
- static checkLLMProvider(config: LLMConfig): Promise<HealthCheckResult>;
54
- /**
55
- * Runs comprehensive health checks on all configured providers in parallel.
56
- */
57
- static checkAll(vectorDbConfig: VectorDBConfig, llmConfig: LLMConfig, embeddingConfig?: EmbeddingConfig): Promise<{
58
- vectorDb: HealthCheckResult;
59
- llm: HealthCheckResult;
60
- embedding?: HealthCheckResult;
61
- allHealthy: boolean;
62
- }>;
63
- }
64
-
65
44
  /**
66
45
  * ConfigResolver — validates and normalizes host configuration.
67
46
  * It merges host-provided config with environment defaults.
@@ -205,6 +184,31 @@ declare class ProviderRegistry {
205
184
  static createEmbeddingProvider(embeddingConfig: EmbeddingConfig): ILLMProvider;
206
185
  }
207
186
 
187
+ /**
188
+ * ProviderHealthCheck.ts — Pre-flight validation for vector DB and LLM providers.
189
+ * Performs connectivity tests, credential validation, and capability checks.
190
+ */
191
+ declare class ProviderHealthCheck {
192
+ /**
193
+ * Validates vector database configuration before initialization.
194
+ */
195
+ static checkVectorProvider(config: VectorDBConfig): Promise<HealthCheckResult>;
196
+ private static fallbackVectorHealthCheck;
197
+ /**
198
+ * Validates LLM provider configuration.
199
+ */
200
+ static checkLLMProvider(config: LLMConfig): Promise<HealthCheckResult>;
201
+ /**
202
+ * Runs comprehensive health checks on all configured providers in parallel.
203
+ */
204
+ static checkAll(vectorDbConfig: VectorDBConfig, llmConfig: LLMConfig, embeddingConfig?: EmbeddingConfig): Promise<{
205
+ vectorDb: HealthCheckResult;
206
+ llm: HealthCheckResult;
207
+ embedding?: HealthCheckResult;
208
+ allHealthy: boolean;
209
+ }>;
210
+ }
211
+
208
212
  /**
209
213
  * serverConfig.ts — reads RagConfig from environment variables at runtime.
210
214
  *
@@ -245,6 +249,7 @@ interface RuntimeTierConfig {
245
249
  chunkSize?: number;
246
250
  chunkOverlap?: number;
247
251
  tier?: string;
252
+ allowedModels?: string[];
248
253
  }
249
254
  /**
250
255
  * Inject tier-based config fetched from /api/v1/config + /api/v1/credentials.
package/dist/server.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { V as VectorDBConfig, L as LLMConfig, f as EmbeddingConfig, p as RagConfig, v as UniversalRagConfig, w as UpsertDocument, y as VectorMatch, G as GraphDBConfig, H as GraphNode, J as Edge, K as GraphSearchResult, I as ILLMProvider, x as VectorDBProvider, i as LLMProvider, g as EmbeddingProvider, R as RAGConfig, u as UIConfig, U as UITransformationResponse, C as ChatMessage, d as ChatOptions, E as EmbedOptions, h as IngestDocument, e as ChatResponse } from './ILLMProvider-BynaFBpy.js';
2
- export { A as AuthMode, M as BarChartData, N as CarouselProduct, Q as IRetriever, j as LatencyBreakdown, S as LineChartDataPoint, X as MessageRole, Y as MetricCardData, O as ObservabilityTrace, Z as PieChartData, P as Product, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, c as ProjectChatSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, q as RagMessage, r as RetrievalConfig, _ as RetrievalResult, s as RetrievedChunk, $ as RetrivoraChunkMetadata, a0 as RetrivoraIngestedDocument, a1 as ScatterPlotDataPoint, a2 as SuggestionsResponse, a3 as TableData, T as ThemeMode, t as TokenUsage, a as UseRagChatOptions, b as UseRagChatReturn, a4 as VisualizationType, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-BynaFBpy.js';
3
- import { o as DecisionContext, q as IntentCategory, I as IRenderRule, G as RenderDecision, p as IRendererStrategy } from './BatchProcessor-B8OLSahY.js';
4
- export { V as ArchitectureCardProps, A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, e as ChatViewportSize, C as ChatWidgetProps, a as ChatWindowProps, i as Chunk, j as ChunkOptions, c as ClientConfig, m as ConfigFetcher, b as ConfigProviderProps, n as ConfigurationException, W as DocumentChunker, D as DocumentUploadProps, E as EmbeddingFailedException, X as LicenseConfigResolver, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, M as MessageBubbleProps, Y as Pipeline, Z as PipelineStep, P as ProductCardProps, d as ProductCarouselProps, v as ProviderCredentials, w as ProviderNotFoundException, _ as ProviderPill, x as RateLimitException, R as RemoteConfig, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, $ as RenderSectionDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, a0 as Snippet, S as SourceCardProps, a1 as wrapError } from './BatchProcessor-B8OLSahY.js';
5
- import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-BC635WW-.js';
6
- export { C as ConfigValidator, b as HandlerOptions, V as ValidationError, c as VectorPlugin, d as createChatHandler, e as createFeedbackHandler, f as createHealthHandler, g as createHistoryHandler, h as createIngestHandler, i as createRagHandler, j as createSessionsHandler, k as createStreamHandler, l as createUploadHandler, s as sseErrorFrame, m as sseFrame, n as sseMetaFrame, o as sseTextFrame } from './index-BC635WW-.js';
1
+ import { p as RagConfig, v as UniversalRagConfig, V as VectorDBConfig, w as UpsertDocument, y as VectorMatch, G as GraphDBConfig, H as GraphNode, J as Edge, K as GraphSearchResult, L as LLMConfig, f as EmbeddingConfig, I as ILLMProvider, x as VectorDBProvider, i as LLMProvider, g as EmbeddingProvider, R as RAGConfig, u as UIConfig, U as UITransformationResponse, C as ChatMessage, d as ChatOptions, E as EmbedOptions, h as IngestDocument, e as ChatResponse } from './ILLMProvider-DO5gj-e5.js';
2
+ export { A as AuthMode, M as BarChartData, N as CarouselProduct, Q as IRetriever, j as LatencyBreakdown, S as LineChartDataPoint, X as MessageRole, Y as MetricCardData, O as ObservabilityTrace, Z as PieChartData, P as Product, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, c as ProjectChatSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, q as RagMessage, r as RetrievalConfig, _ as RetrievalResult, s as RetrievedChunk, $ as RetrivoraChunkMetadata, a0 as RetrivoraIngestedDocument, a1 as ScatterPlotDataPoint, a2 as SuggestionsResponse, a3 as TableData, T as ThemeMode, t as TokenUsage, a as UseRagChatOptions, b as UseRagChatReturn, a4 as VisualizationType, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-DO5gj-e5.js';
3
+ import { o as DecisionContext, q as IntentCategory, I as IRenderRule, G as RenderDecision, p as IRendererStrategy } from './index--RhMcXrt.js';
4
+ export { V as ArchitectureCardProps, A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, e as ChatViewportSize, C as ChatWidgetProps, a as ChatWindowProps, i as Chunk, j as ChunkOptions, c as ClientConfig, m as ConfigFetcher, b as ConfigProviderProps, n as ConfigurationException, W as DocumentChunker, D as DocumentUploadProps, E as EmbeddingFailedException, X as LicenseConfigResolver, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, M as MessageBubbleProps, Y as Pipeline, Z as PipelineStep, P as ProductCardProps, d as ProductCarouselProps, v as ProviderCredentials, w as ProviderNotFoundException, _ as ProviderPill, x as RateLimitException, R as RemoteConfig, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, $ as RenderSectionDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, a0 as Snippet, S as SourceCardProps, a1 as wrapError } from './index--RhMcXrt.js';
5
+ import { I as IProviderValidator, a as IProviderHealthChecker, H as HealthCheckResult } from './index-DkOhRqEc.js';
6
+ export { C as ConfigValidator, b as HandlerOptions, V as ValidationError, c as VectorPlugin, d as createChatHandler, e as createFeedbackHandler, f as createHealthHandler, g as createHistoryHandler, h as createIngestHandler, i as createRagHandler, j as createSessionsHandler, k as createStreamHandler, l as createUploadHandler, s as sseErrorFrame, m as sseFrame, n as sseMetaFrame, o as sseTextFrame } from './index-DkOhRqEc.js';
7
7
  import 'react';
8
8
  import 'next/server';
9
9
 
@@ -25,6 +25,10 @@ interface LicensePayload {
25
25
  declare class LicenseVerifier {
26
26
  private static readonly cache;
27
27
  private static readonly CACHE_TTL_MS;
28
+ /**
29
+ * Computes a deterministic hardware fingerprint to enforce node-locked licensing.
30
+ */
31
+ private static generateMachineFingerprint;
28
32
  /**
29
33
  * Validates the license key asynchronously by calling the Retrivora backend.
30
34
  *
@@ -37,31 +41,6 @@ declare class LicenseVerifier {
37
41
  static extractTier(licenseKey: string | undefined): string;
38
42
  }
39
43
 
40
- /**
41
- * ProviderHealthCheck.ts — Pre-flight validation for vector DB and LLM providers.
42
- * Performs connectivity tests, credential validation, and capability checks.
43
- */
44
- declare class ProviderHealthCheck {
45
- /**
46
- * Validates vector database configuration before initialization.
47
- */
48
- static checkVectorProvider(config: VectorDBConfig): Promise<HealthCheckResult>;
49
- private static fallbackVectorHealthCheck;
50
- /**
51
- * Validates LLM provider configuration.
52
- */
53
- static checkLLMProvider(config: LLMConfig): Promise<HealthCheckResult>;
54
- /**
55
- * Runs comprehensive health checks on all configured providers in parallel.
56
- */
57
- static checkAll(vectorDbConfig: VectorDBConfig, llmConfig: LLMConfig, embeddingConfig?: EmbeddingConfig): Promise<{
58
- vectorDb: HealthCheckResult;
59
- llm: HealthCheckResult;
60
- embedding?: HealthCheckResult;
61
- allHealthy: boolean;
62
- }>;
63
- }
64
-
65
44
  /**
66
45
  * ConfigResolver — validates and normalizes host configuration.
67
46
  * It merges host-provided config with environment defaults.
@@ -205,6 +184,31 @@ declare class ProviderRegistry {
205
184
  static createEmbeddingProvider(embeddingConfig: EmbeddingConfig): ILLMProvider;
206
185
  }
207
186
 
187
+ /**
188
+ * ProviderHealthCheck.ts — Pre-flight validation for vector DB and LLM providers.
189
+ * Performs connectivity tests, credential validation, and capability checks.
190
+ */
191
+ declare class ProviderHealthCheck {
192
+ /**
193
+ * Validates vector database configuration before initialization.
194
+ */
195
+ static checkVectorProvider(config: VectorDBConfig): Promise<HealthCheckResult>;
196
+ private static fallbackVectorHealthCheck;
197
+ /**
198
+ * Validates LLM provider configuration.
199
+ */
200
+ static checkLLMProvider(config: LLMConfig): Promise<HealthCheckResult>;
201
+ /**
202
+ * Runs comprehensive health checks on all configured providers in parallel.
203
+ */
204
+ static checkAll(vectorDbConfig: VectorDBConfig, llmConfig: LLMConfig, embeddingConfig?: EmbeddingConfig): Promise<{
205
+ vectorDb: HealthCheckResult;
206
+ llm: HealthCheckResult;
207
+ embedding?: HealthCheckResult;
208
+ allHealthy: boolean;
209
+ }>;
210
+ }
211
+
208
212
  /**
209
213
  * serverConfig.ts — reads RagConfig from environment variables at runtime.
210
214
  *
@@ -245,6 +249,7 @@ interface RuntimeTierConfig {
245
249
  chunkSize?: number;
246
250
  chunkOverlap?: number;
247
251
  tier?: string;
252
+ allowedModels?: string[];
248
253
  }
249
254
  /**
250
255
  * Inject tier-based config fetched from /api/v1/config + /api/v1/credentials.