@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/FREE_TIER_ARCHITECTURE.md +232 -232
- package/README.md +206 -206
- package/dist/handlers/index.d.mts +2 -2
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.js +271 -202
- package/dist/handlers/index.mjs +271 -202
- package/dist/{BatchProcessor-B8OLSahY.d.ts → index--RhMcXrt.d.ts} +380 -379
- package/dist/{index-BC635WW-.d.ts → index-DE8qPWpI.d.mts} +3 -17
- package/dist/{BatchProcessor-OVOIlNfK.d.mts → index-Dex_gQ3P.d.mts} +380 -379
- package/dist/{index-D2mY1CrY.d.mts → index-DkOhRqEc.d.ts} +3 -17
- package/dist/index.css +869 -1302
- package/dist/index.d.mts +37 -18
- package/dist/index.d.ts +37 -18
- package/dist/index.js +421 -225
- package/dist/index.min.css +2 -2
- package/dist/index.mjs +445 -249
- package/dist/server.d.mts +36 -31
- package/dist/server.d.ts +36 -31
- package/dist/server.js +271 -202
- package/dist/server.mjs +271 -202
- package/package.json +156 -148
- package/dist/{ILLMProvider-BynaFBpy.d.mts → ILLMProvider-DO5gj-e5.d.mts} +83 -83
- package/dist/{ILLMProvider-BynaFBpy.d.ts → ILLMProvider-DO5gj-e5.d.ts} +83 -83
package/dist/server.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
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-
|
|
3
|
-
import { o as DecisionContext, q as IntentCategory, I as IRenderRule, G as RenderDecision, p as IRendererStrategy } from './
|
|
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 './
|
|
5
|
-
import {
|
|
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-
|
|
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 {
|
|
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-
|
|
3
|
-
import { o as DecisionContext, q as IntentCategory, I as IRenderRule, G as RenderDecision, p as IRendererStrategy } from './
|
|
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 './
|
|
5
|
-
import {
|
|
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-
|
|
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.
|