@retrivora-ai/rag-engine 2.3.0 → 2.3.2
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/{LicenseValidator-CENvo9o2.d.mts → BatchProcessor-7yV-UCHW.d.mts} +142 -3
- package/dist/{LicenseValidator-CsjJp2PP.d.ts → BatchProcessor-BfzuU4cK.d.ts} +142 -3
- package/dist/handlers/index.d.mts +1 -1
- package/dist/handlers/index.d.ts +1 -1
- package/dist/handlers/index.js +881 -331
- package/dist/handlers/index.mjs +881 -331
- package/dist/index-DR_O_B-W.d.ts +394 -0
- package/dist/index-fnpaCuma.d.mts +394 -0
- package/dist/index.css +58 -0
- package/dist/index.d.mts +63 -3
- package/dist/index.d.ts +63 -3
- package/dist/index.js +454 -36
- package/dist/index.mjs +453 -38
- package/dist/server.d.mts +35 -73
- package/dist/server.d.ts +35 -73
- package/dist/server.js +911 -345
- package/dist/server.mjs +911 -345
- package/package.json +3 -2
- package/src/components/ChatWidget.tsx +149 -48
- package/src/components/ChatWindow.tsx +52 -9
- package/src/components/CodeViewer.tsx +1 -1
- package/src/core/BatchProcessor.ts +42 -4
- package/src/core/CircuitBreaker.ts +118 -0
- package/src/core/DatabaseStorage.ts +55 -24
- package/src/core/FreeTierLimitsGuard.ts +281 -0
- package/src/core/LangChainAgent.ts +0 -2
- package/src/core/LicenseValidator.ts +66 -2
- package/src/core/LicenseVerifier.ts +31 -3
- package/src/core/VectorPlugin.ts +30 -0
- package/src/handlers/index.ts +491 -36
- package/src/index.css +58 -0
- package/src/index.ts +4 -0
- package/src/providers/vectordb/MilvusProvider.ts +0 -1
- package/src/providers/vectordb/MongoDBProvider.ts +0 -1
- package/src/providers/vectordb/MultiTablePostgresProvider.ts +2 -2
- package/src/providers/vectordb/RedisProvider.ts +0 -1
- package/src/providers/vectordb/WeaviateProvider.ts +0 -1
- package/src/rag/LlamaIndexIngestor.ts +0 -1
- package/src/server.ts +1 -0
- package/dist/index-BPJ3KDYI.d.ts +0 -195
- package/dist/index-Dmq5lH0j.d.mts +0 -195
package/dist/server.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { V as VectorDBConfig, L as LLMConfig, d as EmbeddingConfig, i as RagConfig, n as UniversalRagConfig, o as UpsertDocument, q as VectorMatch, G as GraphDBConfig, r as GraphNode, s as Edge, t as GraphSearchResult, I as ILLMProvider, p as VectorDBProvider, g as LLMProvider, e as EmbeddingProvider, R as RAGConfig, m as UIConfig, C as ChatMessage, b as ChatOptions, E as EmbedOptions } from './ILLMProvider-teTNQ1lh.mjs';
|
|
2
2
|
export { B as BarChartData, u as CarouselProduct, c as ChatResponse, v as IRetriever, f as IngestDocument, h as LatencyBreakdown, w as LineChartDataPoint, M as MessageRole, x as MetricCardData, O as ObservabilityTrace, P as PieChartData, y as Product, j as RagMessage, k as RetrievalConfig, z as RetrievalResult, l as RetrievedChunk, A as RetrivoraChunkMetadata, D as RetrivoraIngestedDocument, S as ScatterPlotDataPoint, F as SuggestionsResponse, H as TableData, T as TokenUsage, J as UITransformationResponse, U as UseRagChatOptions, a as UseRagChatReturn, K as VisualizationType, W as WorkflowConfig } from './ILLMProvider-teTNQ1lh.mjs';
|
|
3
|
-
import { I as IRenderRule,
|
|
4
|
-
export {
|
|
5
|
-
import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-
|
|
6
|
-
export { C as ConfigValidator, V as ValidationError,
|
|
3
|
+
import { I as IRenderRule, k as DecisionContext, m as IntentCategory, s as RenderDecision } from './BatchProcessor-7yV-UCHW.mjs';
|
|
4
|
+
export { K as ArchitectureCardProps, A as AuthenticationException, B as BatchOptions, e as BatchProcessor, f as BatchResult, N as CarouselRendererStrategy, O as ChartRendererStrategy, g as ChartType, Q as ChatViewportSize, C as ChatWidgetProps, a as ChatWindowProps, h as Chunk, i as ChunkOptions, c as ClientConfig, b as ConfigProviderProps, j as ConfigurationException, T as DocumentChunker, D as DocumentUploadProps, E as EmbeddingFailedException, l as IRendererStrategy, n as IntentClassifier, L as LicenseValidationError, o as LicenseValidationRequest, p as LicenseValidationResponse, q as LicenseValidator, M as MessageBubbleProps, U as MixedRendererStrategy, W as Pipeline, X as PipelineStep, P as ProductCardProps, d as ProductCarouselProps, r as ProviderNotFoundException, Y as ProviderPill, R as RateLimitException, Z as RenderSectionDecision, t as RenderType, u as RendererRegistry, v as RetrievalException, w as Retrivora, x as RetrivoraError, y as RetrivoraErrorCode, z as RuleEngine, F as SDKVersionUnsupportedError, G as SDK_VERSION, _ as Snippet, S as SourceCardProps, $ as TableRendererStrategy, a0 as TextRendererStrategy, V as VisualizationDecisionEngine, H as decideVisualization, a1 as wrapError } from './BatchProcessor-7yV-UCHW.mjs';
|
|
5
|
+
import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-fnpaCuma.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-fnpaCuma.mjs';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'next/server';
|
|
9
9
|
|
|
@@ -49,14 +49,42 @@ declare class Rule7LargeTableRule implements IRenderRule {
|
|
|
49
49
|
evaluate(context: DecisionContext, intent: IntentCategory): RenderDecision | null;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Decoded payload of a Retrivora license JWT.
|
|
54
|
+
*
|
|
55
|
+
* Retrivora licenses are signed with RS256 using a key held exclusively by
|
|
56
|
+
* Retrivora SaaS. They carry the project binding, the expiration time, and
|
|
57
|
+
* the customer tier, which the SDK uses to enforce per-tier feature limits
|
|
58
|
+
* (vector DB provider whitelist).
|
|
59
|
+
*/
|
|
52
60
|
interface LicensePayload {
|
|
61
|
+
/** Project ID this license is bound to — used to prevent cross-tenant reuse. */
|
|
53
62
|
projectId: string;
|
|
63
|
+
/** UNIX timestamp in seconds after which the license must be considered expired. */
|
|
54
64
|
expiresAt: number;
|
|
65
|
+
/** Customer tier (hobby | pro | enterprise). */
|
|
55
66
|
tier: string;
|
|
67
|
+
/** Optional: License lifecycle status propagated by the server validator (ACTIVE/TERMINATED/etc). */
|
|
68
|
+
licenseStatus?: string;
|
|
56
69
|
}
|
|
57
70
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
71
|
+
* Zero-latency cryptographic license verifier.
|
|
72
|
+
*
|
|
73
|
+
* Responsibilities:
|
|
74
|
+
* 1. Parse the `rtv_`-prefixed JWT (base64url header.payload.signature)
|
|
75
|
+
* 2. Verify the RS256 signature against Retrivora's embedded PUBLIC_KEY
|
|
76
|
+
* 3. Match the license's projectId to the currently configured projectId
|
|
77
|
+
* 4. Enforce expiration (current UNIX seconds > expiresAt)
|
|
78
|
+
* 5. Enforce per-tier vector DB provider whitelist in production
|
|
79
|
+
*
|
|
80
|
+
* Fail-open policy: In non-production environments a missing license key
|
|
81
|
+
* produces a console-warning and a synthetic 24h "hobby" payload so that
|
|
82
|
+
* local development continues to work without signing up. In production
|
|
83
|
+
* any missing/invalid key throws `ConfigurationException`.
|
|
84
|
+
*
|
|
85
|
+
* Caching: Cryptographic verification is CPU-expensive — successful results
|
|
86
|
+
* are cached for 60 seconds keyed by (licenseKey, projectId, provider,
|
|
87
|
+
* publicKeyOverride). Cache hits still re-verify expiresAt.
|
|
60
88
|
*/
|
|
61
89
|
declare class LicenseVerifier {
|
|
62
90
|
private static readonly cache;
|
|
@@ -73,72 +101,6 @@ declare class LicenseVerifier {
|
|
|
73
101
|
static verifyIP(licenseKey: string | undefined): Promise<void>;
|
|
74
102
|
}
|
|
75
103
|
|
|
76
|
-
/**
|
|
77
|
-
* BatchProcessor.ts — Handles batch operations with retry logic.
|
|
78
|
-
*
|
|
79
|
-
* Provides exponential backoff, partial failure tracking, and
|
|
80
|
-
* configurable batch sizing for efficient bulk operations.
|
|
81
|
-
*/
|
|
82
|
-
interface BatchOptions {
|
|
83
|
-
/** Maximum number of items per batch */
|
|
84
|
-
batchSize?: number;
|
|
85
|
-
/** Maximum number of retries for transient failures */
|
|
86
|
-
maxRetries?: number;
|
|
87
|
-
/** Initial delay before retry in milliseconds */
|
|
88
|
-
initialDelayMs?: number;
|
|
89
|
-
/** Maximum delay between retries in milliseconds */
|
|
90
|
-
maxDelayMs?: number;
|
|
91
|
-
/** Multiplier for exponential backoff */
|
|
92
|
-
backoffMultiplier?: number;
|
|
93
|
-
/** Whether to throw on any partial failure */
|
|
94
|
-
throwOnPartialFailure?: boolean;
|
|
95
|
-
}
|
|
96
|
-
interface BatchResult<T> {
|
|
97
|
-
results: T[];
|
|
98
|
-
errors: Array<{
|
|
99
|
-
index: number;
|
|
100
|
-
error: Error;
|
|
101
|
-
itemCount?: number;
|
|
102
|
-
}>;
|
|
103
|
-
totalProcessed: number;
|
|
104
|
-
totalFailed: number;
|
|
105
|
-
}
|
|
106
|
-
declare class BatchProcessor {
|
|
107
|
-
/**
|
|
108
|
-
* Processes an array of items in configurable batches with retry logic.
|
|
109
|
-
*
|
|
110
|
-
* @param items - Items to process
|
|
111
|
-
* @param processor - Async function that processes a batch of items
|
|
112
|
-
* @param options - Configuration for batch size, retries, etc.
|
|
113
|
-
* @returns Object with results, errors, and statistics
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* const docs = [...];
|
|
117
|
-
* const result = await BatchProcessor.processBatch(
|
|
118
|
-
* docs,
|
|
119
|
-
* (batch) => vectorDB.batchUpsert(batch),
|
|
120
|
-
* { batchSize: 100, maxRetries: 3 }
|
|
121
|
-
* );
|
|
122
|
-
*/
|
|
123
|
-
static processBatch<T, R>(items: T[], processor: (batch: T[]) => Promise<R>, options?: BatchOptions): Promise<BatchResult<R>>;
|
|
124
|
-
/**
|
|
125
|
-
* Processes items sequentially (one at a time) with retry logic.
|
|
126
|
-
* Useful for operations that don't support batching or when granular
|
|
127
|
-
* error tracking is needed.
|
|
128
|
-
*/
|
|
129
|
-
static processSequential<T, R>(items: T[], processor: (item: T) => Promise<R>, options?: BatchOptions): Promise<BatchResult<R>>;
|
|
130
|
-
/**
|
|
131
|
-
* Maps over items with retry logic, returning results in order.
|
|
132
|
-
* Like Array.map() but with async processing and automatic retries.
|
|
133
|
-
*/
|
|
134
|
-
static mapWithRetry<T, R>(items: T[], mapper: (item: T) => Promise<R>, options?: BatchOptions): Promise<R[]>;
|
|
135
|
-
/**
|
|
136
|
-
* Parallel processor with concurrency limit.
|
|
137
|
-
* Processes up to `concurrency` items at the same time.
|
|
138
|
-
*/
|
|
139
|
-
static processConcurrent<T, R>(items: T[], processor: (item: T) => Promise<R>, concurrency?: number, options?: BatchOptions): Promise<BatchResult<R>>;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
104
|
/**
|
|
143
105
|
* ProviderHealthCheck.ts — Pre-flight validation for vector DB and LLM providers.
|
|
144
106
|
* Performs connectivity tests, credential validation, and capability checks.
|
|
@@ -1027,4 +989,4 @@ declare class UniversalLLMAdapter implements ILLMProvider {
|
|
|
1027
989
|
ping(): Promise<boolean>;
|
|
1028
990
|
}
|
|
1029
991
|
|
|
1030
|
-
export { AnthropicProvider, BaseVectorProvider,
|
|
992
|
+
export { AnthropicProvider, BaseVectorProvider, ChatMessage, ChatOptions, ChromaDBProvider, ConfigBuilder, ConfigResolver, DecisionContext, DocumentParser, Edge, EmbedOptions, EmbeddingConfig, EmbeddingProvider, EmbeddingStrategy, EmbeddingStrategyResolver, GraphNode, GraphSearchResult, GroqProvider, HealthCheckResult, ILLMProvider, IProviderHealthChecker, IProviderValidator, IRenderRule, IntentCategory, LLMConfig, LLMFactory, LLMProvider, LLM_PROFILES, type LicensePayload, LicenseVerifier, MilvusProvider, MongoDBProvider, MultiTablePostgresProvider, OllamaProvider, OpenAIProvider, PRESETS, PineconeProvider, PostgreSQLProvider, ProviderHealthCheck, ProviderRegistry, QdrantProvider, QwenProvider, RAGConfig, RagConfig, RedisProvider, RenderDecision, Rule1SpecificInfoRule, Rule2ComparisonRule, Rule3ProductDiscoveryRule, Rule4AnalyticalRule, Rule5MixedResponseRule, Rule6SmallResultSetRule, Rule7LargeTableRule, UIConfig, UniversalLLMAdapter, UniversalRagConfig, UniversalVectorProvider, UpsertDocument, VECTOR_PROFILES, VectorDBConfig, VectorDBProvider, VectorMatch, WeaviateProvider, createFromPreset, getRagConfig };
|
package/dist/server.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { V as VectorDBConfig, L as LLMConfig, d as EmbeddingConfig, i as RagConfig, n as UniversalRagConfig, o as UpsertDocument, q as VectorMatch, G as GraphDBConfig, r as GraphNode, s as Edge, t as GraphSearchResult, I as ILLMProvider, p as VectorDBProvider, g as LLMProvider, e as EmbeddingProvider, R as RAGConfig, m as UIConfig, C as ChatMessage, b as ChatOptions, E as EmbedOptions } from './ILLMProvider-teTNQ1lh.js';
|
|
2
2
|
export { B as BarChartData, u as CarouselProduct, c as ChatResponse, v as IRetriever, f as IngestDocument, h as LatencyBreakdown, w as LineChartDataPoint, M as MessageRole, x as MetricCardData, O as ObservabilityTrace, P as PieChartData, y as Product, j as RagMessage, k as RetrievalConfig, z as RetrievalResult, l as RetrievedChunk, A as RetrivoraChunkMetadata, D as RetrivoraIngestedDocument, S as ScatterPlotDataPoint, F as SuggestionsResponse, H as TableData, T as TokenUsage, J as UITransformationResponse, U as UseRagChatOptions, a as UseRagChatReturn, K as VisualizationType, W as WorkflowConfig } from './ILLMProvider-teTNQ1lh.js';
|
|
3
|
-
import { I as IRenderRule,
|
|
4
|
-
export {
|
|
5
|
-
import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-
|
|
6
|
-
export { C as ConfigValidator, V as ValidationError,
|
|
3
|
+
import { I as IRenderRule, k as DecisionContext, m as IntentCategory, s as RenderDecision } from './BatchProcessor-BfzuU4cK.js';
|
|
4
|
+
export { K as ArchitectureCardProps, A as AuthenticationException, B as BatchOptions, e as BatchProcessor, f as BatchResult, N as CarouselRendererStrategy, O as ChartRendererStrategy, g as ChartType, Q as ChatViewportSize, C as ChatWidgetProps, a as ChatWindowProps, h as Chunk, i as ChunkOptions, c as ClientConfig, b as ConfigProviderProps, j as ConfigurationException, T as DocumentChunker, D as DocumentUploadProps, E as EmbeddingFailedException, l as IRendererStrategy, n as IntentClassifier, L as LicenseValidationError, o as LicenseValidationRequest, p as LicenseValidationResponse, q as LicenseValidator, M as MessageBubbleProps, U as MixedRendererStrategy, W as Pipeline, X as PipelineStep, P as ProductCardProps, d as ProductCarouselProps, r as ProviderNotFoundException, Y as ProviderPill, R as RateLimitException, Z as RenderSectionDecision, t as RenderType, u as RendererRegistry, v as RetrievalException, w as Retrivora, x as RetrivoraError, y as RetrivoraErrorCode, z as RuleEngine, F as SDKVersionUnsupportedError, G as SDK_VERSION, _ as Snippet, S as SourceCardProps, $ as TableRendererStrategy, a0 as TextRendererStrategy, V as VisualizationDecisionEngine, H as decideVisualization, a1 as wrapError } from './BatchProcessor-BfzuU4cK.js';
|
|
5
|
+
import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-DR_O_B-W.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-DR_O_B-W.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'next/server';
|
|
9
9
|
|
|
@@ -49,14 +49,42 @@ declare class Rule7LargeTableRule implements IRenderRule {
|
|
|
49
49
|
evaluate(context: DecisionContext, intent: IntentCategory): RenderDecision | null;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Decoded payload of a Retrivora license JWT.
|
|
54
|
+
*
|
|
55
|
+
* Retrivora licenses are signed with RS256 using a key held exclusively by
|
|
56
|
+
* Retrivora SaaS. They carry the project binding, the expiration time, and
|
|
57
|
+
* the customer tier, which the SDK uses to enforce per-tier feature limits
|
|
58
|
+
* (vector DB provider whitelist).
|
|
59
|
+
*/
|
|
52
60
|
interface LicensePayload {
|
|
61
|
+
/** Project ID this license is bound to — used to prevent cross-tenant reuse. */
|
|
53
62
|
projectId: string;
|
|
63
|
+
/** UNIX timestamp in seconds after which the license must be considered expired. */
|
|
54
64
|
expiresAt: number;
|
|
65
|
+
/** Customer tier (hobby | pro | enterprise). */
|
|
55
66
|
tier: string;
|
|
67
|
+
/** Optional: License lifecycle status propagated by the server validator (ACTIVE/TERMINATED/etc). */
|
|
68
|
+
licenseStatus?: string;
|
|
56
69
|
}
|
|
57
70
|
/**
|
|
58
|
-
*
|
|
59
|
-
*
|
|
71
|
+
* Zero-latency cryptographic license verifier.
|
|
72
|
+
*
|
|
73
|
+
* Responsibilities:
|
|
74
|
+
* 1. Parse the `rtv_`-prefixed JWT (base64url header.payload.signature)
|
|
75
|
+
* 2. Verify the RS256 signature against Retrivora's embedded PUBLIC_KEY
|
|
76
|
+
* 3. Match the license's projectId to the currently configured projectId
|
|
77
|
+
* 4. Enforce expiration (current UNIX seconds > expiresAt)
|
|
78
|
+
* 5. Enforce per-tier vector DB provider whitelist in production
|
|
79
|
+
*
|
|
80
|
+
* Fail-open policy: In non-production environments a missing license key
|
|
81
|
+
* produces a console-warning and a synthetic 24h "hobby" payload so that
|
|
82
|
+
* local development continues to work without signing up. In production
|
|
83
|
+
* any missing/invalid key throws `ConfigurationException`.
|
|
84
|
+
*
|
|
85
|
+
* Caching: Cryptographic verification is CPU-expensive — successful results
|
|
86
|
+
* are cached for 60 seconds keyed by (licenseKey, projectId, provider,
|
|
87
|
+
* publicKeyOverride). Cache hits still re-verify expiresAt.
|
|
60
88
|
*/
|
|
61
89
|
declare class LicenseVerifier {
|
|
62
90
|
private static readonly cache;
|
|
@@ -73,72 +101,6 @@ declare class LicenseVerifier {
|
|
|
73
101
|
static verifyIP(licenseKey: string | undefined): Promise<void>;
|
|
74
102
|
}
|
|
75
103
|
|
|
76
|
-
/**
|
|
77
|
-
* BatchProcessor.ts — Handles batch operations with retry logic.
|
|
78
|
-
*
|
|
79
|
-
* Provides exponential backoff, partial failure tracking, and
|
|
80
|
-
* configurable batch sizing for efficient bulk operations.
|
|
81
|
-
*/
|
|
82
|
-
interface BatchOptions {
|
|
83
|
-
/** Maximum number of items per batch */
|
|
84
|
-
batchSize?: number;
|
|
85
|
-
/** Maximum number of retries for transient failures */
|
|
86
|
-
maxRetries?: number;
|
|
87
|
-
/** Initial delay before retry in milliseconds */
|
|
88
|
-
initialDelayMs?: number;
|
|
89
|
-
/** Maximum delay between retries in milliseconds */
|
|
90
|
-
maxDelayMs?: number;
|
|
91
|
-
/** Multiplier for exponential backoff */
|
|
92
|
-
backoffMultiplier?: number;
|
|
93
|
-
/** Whether to throw on any partial failure */
|
|
94
|
-
throwOnPartialFailure?: boolean;
|
|
95
|
-
}
|
|
96
|
-
interface BatchResult<T> {
|
|
97
|
-
results: T[];
|
|
98
|
-
errors: Array<{
|
|
99
|
-
index: number;
|
|
100
|
-
error: Error;
|
|
101
|
-
itemCount?: number;
|
|
102
|
-
}>;
|
|
103
|
-
totalProcessed: number;
|
|
104
|
-
totalFailed: number;
|
|
105
|
-
}
|
|
106
|
-
declare class BatchProcessor {
|
|
107
|
-
/**
|
|
108
|
-
* Processes an array of items in configurable batches with retry logic.
|
|
109
|
-
*
|
|
110
|
-
* @param items - Items to process
|
|
111
|
-
* @param processor - Async function that processes a batch of items
|
|
112
|
-
* @param options - Configuration for batch size, retries, etc.
|
|
113
|
-
* @returns Object with results, errors, and statistics
|
|
114
|
-
*
|
|
115
|
-
* @example
|
|
116
|
-
* const docs = [...];
|
|
117
|
-
* const result = await BatchProcessor.processBatch(
|
|
118
|
-
* docs,
|
|
119
|
-
* (batch) => vectorDB.batchUpsert(batch),
|
|
120
|
-
* { batchSize: 100, maxRetries: 3 }
|
|
121
|
-
* );
|
|
122
|
-
*/
|
|
123
|
-
static processBatch<T, R>(items: T[], processor: (batch: T[]) => Promise<R>, options?: BatchOptions): Promise<BatchResult<R>>;
|
|
124
|
-
/**
|
|
125
|
-
* Processes items sequentially (one at a time) with retry logic.
|
|
126
|
-
* Useful for operations that don't support batching or when granular
|
|
127
|
-
* error tracking is needed.
|
|
128
|
-
*/
|
|
129
|
-
static processSequential<T, R>(items: T[], processor: (item: T) => Promise<R>, options?: BatchOptions): Promise<BatchResult<R>>;
|
|
130
|
-
/**
|
|
131
|
-
* Maps over items with retry logic, returning results in order.
|
|
132
|
-
* Like Array.map() but with async processing and automatic retries.
|
|
133
|
-
*/
|
|
134
|
-
static mapWithRetry<T, R>(items: T[], mapper: (item: T) => Promise<R>, options?: BatchOptions): Promise<R[]>;
|
|
135
|
-
/**
|
|
136
|
-
* Parallel processor with concurrency limit.
|
|
137
|
-
* Processes up to `concurrency` items at the same time.
|
|
138
|
-
*/
|
|
139
|
-
static processConcurrent<T, R>(items: T[], processor: (item: T) => Promise<R>, concurrency?: number, options?: BatchOptions): Promise<BatchResult<R>>;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
104
|
/**
|
|
143
105
|
* ProviderHealthCheck.ts — Pre-flight validation for vector DB and LLM providers.
|
|
144
106
|
* Performs connectivity tests, credential validation, and capability checks.
|
|
@@ -1027,4 +989,4 @@ declare class UniversalLLMAdapter implements ILLMProvider {
|
|
|
1027
989
|
ping(): Promise<boolean>;
|
|
1028
990
|
}
|
|
1029
991
|
|
|
1030
|
-
export { AnthropicProvider, BaseVectorProvider,
|
|
992
|
+
export { AnthropicProvider, BaseVectorProvider, ChatMessage, ChatOptions, ChromaDBProvider, ConfigBuilder, ConfigResolver, DecisionContext, DocumentParser, Edge, EmbedOptions, EmbeddingConfig, EmbeddingProvider, EmbeddingStrategy, EmbeddingStrategyResolver, GraphNode, GraphSearchResult, GroqProvider, HealthCheckResult, ILLMProvider, IProviderHealthChecker, IProviderValidator, IRenderRule, IntentCategory, LLMConfig, LLMFactory, LLMProvider, LLM_PROFILES, type LicensePayload, LicenseVerifier, MilvusProvider, MongoDBProvider, MultiTablePostgresProvider, OllamaProvider, OpenAIProvider, PRESETS, PineconeProvider, PostgreSQLProvider, ProviderHealthCheck, ProviderRegistry, QdrantProvider, QwenProvider, RAGConfig, RagConfig, RedisProvider, RenderDecision, Rule1SpecificInfoRule, Rule2ComparisonRule, Rule3ProductDiscoveryRule, Rule4AnalyticalRule, Rule5MixedResponseRule, Rule6SmallResultSetRule, Rule7LargeTableRule, UIConfig, UniversalLLMAdapter, UniversalRagConfig, UniversalVectorProvider, UpsertDocument, VECTOR_PROFILES, VectorDBConfig, VectorDBProvider, VectorMatch, WeaviateProvider, createFromPreset, getRagConfig };
|