@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextRequest } from 'next/server';
|
|
2
|
-
import { p as RagConfig, I as ILLMProvider, C as ChatMessage, e as ChatResponse, h as IngestDocument } from './ILLMProvider-
|
|
2
|
+
import { p as RagConfig, I as ILLMProvider, C as ChatMessage, e as ChatResponse, h as IngestDocument } from './ILLMProvider-DO5gj-e5.js';
|
|
3
3
|
|
|
4
4
|
interface ValidationError {
|
|
5
5
|
field: string;
|
|
@@ -9,25 +9,11 @@ interface ValidationError {
|
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* ConfigValidator.ts — Comprehensive configuration validation.
|
|
12
|
-
* Uses
|
|
12
|
+
* Uses Zod for strict runtime schema checking, and delegates to
|
|
13
|
+
* pluggable providers for specific connection string validations.
|
|
13
14
|
*/
|
|
14
15
|
declare class ConfigValidator {
|
|
15
|
-
/**
|
|
16
|
-
* Validates the entire RagConfig object.
|
|
17
|
-
*/
|
|
18
16
|
static validate(config: RagConfig): Promise<ValidationError[]>;
|
|
19
|
-
private static validateVectorDbConfig;
|
|
20
|
-
private static validateLLMConfig;
|
|
21
|
-
private static validateEmbeddingConfig;
|
|
22
|
-
/**
|
|
23
|
-
* Temporary fallbacks for providers not yet migrated to the pluggable architecture.
|
|
24
|
-
*/
|
|
25
|
-
private static fallbackVectorValidation;
|
|
26
|
-
private static fallbackLLMValidation;
|
|
27
|
-
private static fallbackEmbeddingValidation;
|
|
28
|
-
private static validateUIConfig;
|
|
29
|
-
private static validateRAGConfig;
|
|
30
|
-
private static isValidCSSColor;
|
|
31
17
|
static validateAndThrow(config: RagConfig): Promise<void>;
|
|
32
18
|
}
|
|
33
19
|
|