@retrivora-ai/rag-engine 2.3.2 → 2.3.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.
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
2
- import { y as Product, m as UIConfig, j as RagMessage, q as VectorMatch, J as UITransformationResponse, i as RagConfig, I as ILLMProvider, f as IngestDocument, C as ChatMessage, c as ChatResponse, z as RetrievalResult, n as UniversalRagConfig } from './ILLMProvider-teTNQ1lh.js';
2
+ import { z as Product, m as UIConfig, j as RagMessage, q as VectorMatch, u as UITransformationResponse, i as RagConfig, I as ILLMProvider, f as IngestDocument, C as ChatMessage, c as ChatResponse, A as RetrievalResult, n as UniversalRagConfig } from './ILLMProvider-CcJ5N6XD.js';
3
3
 
4
4
  interface ArchitectureCardProps {
5
5
  icon: ReactNode;
@@ -210,143 +210,6 @@ interface IRendererStrategy {
210
210
  render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
211
211
  }
212
212
 
213
- interface DataSignals {
214
- rowCount: number;
215
- hasNumericFields: boolean;
216
- hasDateFields: boolean;
217
- hasCategoricalFields: boolean;
218
- isProductLike: boolean;
219
- numericFieldCount: number;
220
- categoricalFieldCount: number;
221
- }
222
- declare class IntentClassifier {
223
- /**
224
- * Fast, zero-latency classifier that maps a user query and optional data context
225
- * into a high-level IntentCategory.
226
- */
227
- static classify(context: DecisionContext): {
228
- intent: IntentCategory;
229
- signals: DataSignals;
230
- };
231
- /**
232
- * Extract key data structure signals from retrieved documents.
233
- */
234
- static extractDataSignals(context: DecisionContext): DataSignals;
235
- private static isInformationLookup;
236
- private static isComparisonQuery;
237
- private static isProductQuery;
238
- private static isRecommendationQuery;
239
- private static isTrendQuery;
240
- private static isRankingQuery;
241
- private static isAnalyticsQuery;
242
- }
243
-
244
- declare class RuleEngine {
245
- private rules;
246
- constructor();
247
- /**
248
- * Register standard rules in priority order.
249
- */
250
- private registerDefaultRules;
251
- /**
252
- * Add or replace a rule in the engine.
253
- * Automatically keeps rules sorted by descending priority.
254
- */
255
- registerRule(rule: IRenderRule): void;
256
- /**
257
- * Evaluate context against rules in descending priority order.
258
- * Returns the first non-null RenderDecision.
259
- */
260
- evaluate(context: DecisionContext, intent: IntentCategory): RenderDecision;
261
- /**
262
- * List all registered rules.
263
- */
264
- getRegisteredRules(): Array<{
265
- name: string;
266
- priority: number;
267
- }>;
268
- }
269
-
270
- declare class TextRendererStrategy implements IRendererStrategy {
271
- readonly type = "text";
272
- render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
273
- }
274
- declare class TableRendererStrategy implements IRendererStrategy {
275
- readonly type = "table";
276
- render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
277
- }
278
- declare class CarouselRendererStrategy implements IRendererStrategy {
279
- readonly type = "carousel";
280
- render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
281
- }
282
- declare class ChartRendererStrategy implements IRendererStrategy {
283
- readonly type = "chart";
284
- render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
285
- }
286
- declare class MixedRendererStrategy implements IRendererStrategy {
287
- readonly type = "mixed";
288
- render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
289
- }
290
- declare class RendererRegistry {
291
- private static strategies;
292
- /**
293
- * Register a new renderer strategy.
294
- * Enables seamless addition of custom visualizers (Timeline, Maps, Flow Diagrams, etc.).
295
- */
296
- static registerStrategy(strategy: IRendererStrategy): void;
297
- /**
298
- * Retrieve a registered renderer strategy by type string.
299
- */
300
- static getStrategy(type: string): IRendererStrategy;
301
- /**
302
- * Check if a renderer strategy is registered.
303
- */
304
- static hasStrategy(type: string): boolean;
305
- /**
306
- * List all registered strategy types.
307
- */
308
- static getRegisteredTypes(): string[];
309
- }
310
-
311
- /**
312
- * High-Performance Visualization Decision Engine.
313
- * Intelligently determines whether to render text, table, carousel, chart, or mixed sections
314
- * BEFORE expensive visual generation or LLM visual calls execute.
315
- */
316
- declare class VisualizationDecisionEngine {
317
- private static ruleEngine;
318
- private static cache;
319
- /**
320
- * Evaluate user query, documents, and context to produce a RenderDecision.
321
- * Execution time is < 1ms for cached or rule-matched queries.
322
- */
323
- static decideVisualization(userQuery: string, retrievedDocuments?: VectorMatch[], llmResponse?: string, metadata?: Record<string, unknown>): RenderDecision;
324
- /**
325
- * Convenience helper to decide AND render the data into a UITransformationResponse.
326
- */
327
- static render(userQuery: string, retrievedDocuments?: VectorMatch[], llmResponse?: string, metadata?: Record<string, unknown>): UITransformationResponse;
328
- /**
329
- * Register a custom rule in the rule engine.
330
- */
331
- static registerRule(rule: IRenderRule): void;
332
- /**
333
- * Register a custom renderer strategy.
334
- */
335
- static registerRendererStrategy(strategy: IRendererStrategy): void;
336
- /**
337
- * Clear the decision cache.
338
- */
339
- static clearCache(): void;
340
- /**
341
- * Get size of current decision cache.
342
- */
343
- static getCacheSize(): number;
344
- }
345
- /**
346
- * Top-level function export matching prompt specification.
347
- */
348
- declare function decideVisualization(userQuery: string, retrievedDocuments?: VectorMatch[], llmResponse?: string, metadata?: Record<string, unknown>): RenderDecision;
349
-
350
213
  /**
351
214
  * DocumentChunker — splits long text into overlapping chunks
352
215
  * suitable for vector embedding and retrieval.
@@ -720,4 +583,4 @@ declare class BatchProcessor {
720
583
  static processConcurrent<T, R>(items: T[], processor: (item: T) => Promise<R>, concurrency?: number, options?: BatchOptions): Promise<BatchResult<R>>;
721
584
  }
722
585
 
723
- export { TableRendererStrategy as $, AuthenticationException as A, type BatchOptions as B, type ChatWidgetProps as C, type DocumentUploadProps as D, EmbeddingFailedException as E, SDKVersionUnsupportedError as F, SDK_VERSION as G, decideVisualization as H, type IRenderRule as I, isTransientError as J, type ArchitectureCardProps as K, LicenseValidationError as L, type MessageBubbleProps as M, CarouselRendererStrategy as N, ChartRendererStrategy as O, type ProductCardProps as P, type ChatViewportSize as Q, RateLimitException as R, type SourceCardProps as S, DocumentChunker as T, MixedRendererStrategy as U, VisualizationDecisionEngine as V, Pipeline as W, type PipelineStep as X, type ProviderPill as Y, type RenderSectionDecision as Z, type Snippet as _, type ChatWindowProps as a, TextRendererStrategy as a0, wrapError as a1, type ConfigProviderProps as b, type ClientConfig as c, type ProductCarouselProps as d, BatchProcessor as e, type BatchResult as f, type ChartType as g, type Chunk as h, type ChunkOptions as i, ConfigurationException as j, type DecisionContext as k, type IRendererStrategy as l, type IntentCategory as m, IntentClassifier as n, type LicenseValidationRequest as o, type LicenseValidationResponse as p, LicenseValidator as q, ProviderNotFoundException as r, type RenderDecision as s, type RenderType as t, RendererRegistry as u, RetrievalException as v, Retrivora as w, RetrivoraError as x, type RetrivoraErrorCode as y, RuleEngine as z };
586
+ export { AuthenticationException as A, type BatchOptions as B, type ChatWidgetProps as C, type DocumentUploadProps as D, EmbeddingFailedException as E, type ArchitectureCardProps as F, type ChatViewportSize as G, DocumentChunker as H, type IRenderRule as I, Pipeline as J, type PipelineStep as K, LicenseValidationError as L, type MessageBubbleProps as M, type ProviderPill as N, type RenderSectionDecision as O, type ProductCardProps as P, type Snippet as Q, RateLimitException as R, type SourceCardProps as S, wrapError as T, type ChatWindowProps as a, type ConfigProviderProps as b, type ClientConfig as c, type ProductCarouselProps as d, BatchProcessor as e, type BatchResult as f, type ChartType as g, type Chunk as h, type ChunkOptions as i, ConfigurationException as j, type DecisionContext as k, type IRendererStrategy as l, type IntentCategory as m, type LicenseValidationRequest as n, type LicenseValidationResponse as o, LicenseValidator as p, ProviderNotFoundException as q, type RenderDecision as r, type RenderType as s, RetrievalException as t, Retrivora as u, RetrivoraError as v, type RetrivoraErrorCode as w, SDKVersionUnsupportedError as x, SDK_VERSION as y, isTransientError as z };
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
2
- import { y as Product, m as UIConfig, j as RagMessage, q as VectorMatch, J as UITransformationResponse, i as RagConfig, I as ILLMProvider, f as IngestDocument, C as ChatMessage, c as ChatResponse, z as RetrievalResult, n as UniversalRagConfig } from './ILLMProvider-teTNQ1lh.mjs';
2
+ import { z as Product, m as UIConfig, j as RagMessage, q as VectorMatch, u as UITransformationResponse, i as RagConfig, I as ILLMProvider, f as IngestDocument, C as ChatMessage, c as ChatResponse, A as RetrievalResult, n as UniversalRagConfig } from './ILLMProvider-CcJ5N6XD.mjs';
3
3
 
4
4
  interface ArchitectureCardProps {
5
5
  icon: ReactNode;
@@ -210,143 +210,6 @@ interface IRendererStrategy {
210
210
  render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
211
211
  }
212
212
 
213
- interface DataSignals {
214
- rowCount: number;
215
- hasNumericFields: boolean;
216
- hasDateFields: boolean;
217
- hasCategoricalFields: boolean;
218
- isProductLike: boolean;
219
- numericFieldCount: number;
220
- categoricalFieldCount: number;
221
- }
222
- declare class IntentClassifier {
223
- /**
224
- * Fast, zero-latency classifier that maps a user query and optional data context
225
- * into a high-level IntentCategory.
226
- */
227
- static classify(context: DecisionContext): {
228
- intent: IntentCategory;
229
- signals: DataSignals;
230
- };
231
- /**
232
- * Extract key data structure signals from retrieved documents.
233
- */
234
- static extractDataSignals(context: DecisionContext): DataSignals;
235
- private static isInformationLookup;
236
- private static isComparisonQuery;
237
- private static isProductQuery;
238
- private static isRecommendationQuery;
239
- private static isTrendQuery;
240
- private static isRankingQuery;
241
- private static isAnalyticsQuery;
242
- }
243
-
244
- declare class RuleEngine {
245
- private rules;
246
- constructor();
247
- /**
248
- * Register standard rules in priority order.
249
- */
250
- private registerDefaultRules;
251
- /**
252
- * Add or replace a rule in the engine.
253
- * Automatically keeps rules sorted by descending priority.
254
- */
255
- registerRule(rule: IRenderRule): void;
256
- /**
257
- * Evaluate context against rules in descending priority order.
258
- * Returns the first non-null RenderDecision.
259
- */
260
- evaluate(context: DecisionContext, intent: IntentCategory): RenderDecision;
261
- /**
262
- * List all registered rules.
263
- */
264
- getRegisteredRules(): Array<{
265
- name: string;
266
- priority: number;
267
- }>;
268
- }
269
-
270
- declare class TextRendererStrategy implements IRendererStrategy {
271
- readonly type = "text";
272
- render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
273
- }
274
- declare class TableRendererStrategy implements IRendererStrategy {
275
- readonly type = "table";
276
- render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
277
- }
278
- declare class CarouselRendererStrategy implements IRendererStrategy {
279
- readonly type = "carousel";
280
- render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
281
- }
282
- declare class ChartRendererStrategy implements IRendererStrategy {
283
- readonly type = "chart";
284
- render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
285
- }
286
- declare class MixedRendererStrategy implements IRendererStrategy {
287
- readonly type = "mixed";
288
- render(data: unknown, options?: Record<string, unknown>): UITransformationResponse;
289
- }
290
- declare class RendererRegistry {
291
- private static strategies;
292
- /**
293
- * Register a new renderer strategy.
294
- * Enables seamless addition of custom visualizers (Timeline, Maps, Flow Diagrams, etc.).
295
- */
296
- static registerStrategy(strategy: IRendererStrategy): void;
297
- /**
298
- * Retrieve a registered renderer strategy by type string.
299
- */
300
- static getStrategy(type: string): IRendererStrategy;
301
- /**
302
- * Check if a renderer strategy is registered.
303
- */
304
- static hasStrategy(type: string): boolean;
305
- /**
306
- * List all registered strategy types.
307
- */
308
- static getRegisteredTypes(): string[];
309
- }
310
-
311
- /**
312
- * High-Performance Visualization Decision Engine.
313
- * Intelligently determines whether to render text, table, carousel, chart, or mixed sections
314
- * BEFORE expensive visual generation or LLM visual calls execute.
315
- */
316
- declare class VisualizationDecisionEngine {
317
- private static ruleEngine;
318
- private static cache;
319
- /**
320
- * Evaluate user query, documents, and context to produce a RenderDecision.
321
- * Execution time is < 1ms for cached or rule-matched queries.
322
- */
323
- static decideVisualization(userQuery: string, retrievedDocuments?: VectorMatch[], llmResponse?: string, metadata?: Record<string, unknown>): RenderDecision;
324
- /**
325
- * Convenience helper to decide AND render the data into a UITransformationResponse.
326
- */
327
- static render(userQuery: string, retrievedDocuments?: VectorMatch[], llmResponse?: string, metadata?: Record<string, unknown>): UITransformationResponse;
328
- /**
329
- * Register a custom rule in the rule engine.
330
- */
331
- static registerRule(rule: IRenderRule): void;
332
- /**
333
- * Register a custom renderer strategy.
334
- */
335
- static registerRendererStrategy(strategy: IRendererStrategy): void;
336
- /**
337
- * Clear the decision cache.
338
- */
339
- static clearCache(): void;
340
- /**
341
- * Get size of current decision cache.
342
- */
343
- static getCacheSize(): number;
344
- }
345
- /**
346
- * Top-level function export matching prompt specification.
347
- */
348
- declare function decideVisualization(userQuery: string, retrievedDocuments?: VectorMatch[], llmResponse?: string, metadata?: Record<string, unknown>): RenderDecision;
349
-
350
213
  /**
351
214
  * DocumentChunker — splits long text into overlapping chunks
352
215
  * suitable for vector embedding and retrieval.
@@ -720,4 +583,4 @@ declare class BatchProcessor {
720
583
  static processConcurrent<T, R>(items: T[], processor: (item: T) => Promise<R>, concurrency?: number, options?: BatchOptions): Promise<BatchResult<R>>;
721
584
  }
722
585
 
723
- export { TableRendererStrategy as $, AuthenticationException as A, type BatchOptions as B, type ChatWidgetProps as C, type DocumentUploadProps as D, EmbeddingFailedException as E, SDKVersionUnsupportedError as F, SDK_VERSION as G, decideVisualization as H, type IRenderRule as I, isTransientError as J, type ArchitectureCardProps as K, LicenseValidationError as L, type MessageBubbleProps as M, CarouselRendererStrategy as N, ChartRendererStrategy as O, type ProductCardProps as P, type ChatViewportSize as Q, RateLimitException as R, type SourceCardProps as S, DocumentChunker as T, MixedRendererStrategy as U, VisualizationDecisionEngine as V, Pipeline as W, type PipelineStep as X, type ProviderPill as Y, type RenderSectionDecision as Z, type Snippet as _, type ChatWindowProps as a, TextRendererStrategy as a0, wrapError as a1, type ConfigProviderProps as b, type ClientConfig as c, type ProductCarouselProps as d, BatchProcessor as e, type BatchResult as f, type ChartType as g, type Chunk as h, type ChunkOptions as i, ConfigurationException as j, type DecisionContext as k, type IRendererStrategy as l, type IntentCategory as m, IntentClassifier as n, type LicenseValidationRequest as o, type LicenseValidationResponse as p, LicenseValidator as q, ProviderNotFoundException as r, type RenderDecision as s, type RenderType as t, RendererRegistry as u, RetrievalException as v, Retrivora as w, RetrivoraError as x, type RetrivoraErrorCode as y, RuleEngine as z };
586
+ export { AuthenticationException as A, type BatchOptions as B, type ChatWidgetProps as C, type DocumentUploadProps as D, EmbeddingFailedException as E, type ArchitectureCardProps as F, type ChatViewportSize as G, DocumentChunker as H, type IRenderRule as I, Pipeline as J, type PipelineStep as K, LicenseValidationError as L, type MessageBubbleProps as M, type ProviderPill as N, type RenderSectionDecision as O, type ProductCardProps as P, type Snippet as Q, RateLimitException as R, type SourceCardProps as S, wrapError as T, type ChatWindowProps as a, type ConfigProviderProps as b, type ClientConfig as c, type ProductCarouselProps as d, BatchProcessor as e, type BatchResult as f, type ChartType as g, type Chunk as h, type ChunkOptions as i, ConfigurationException as j, type DecisionContext as k, type IRendererStrategy as l, type IntentCategory as m, type LicenseValidationRequest as n, type LicenseValidationResponse as o, LicenseValidator as p, ProviderNotFoundException as q, type RenderDecision as r, type RenderType as s, RetrievalException as t, Retrivora as u, RetrivoraError as v, type RetrivoraErrorCode as w, SDKVersionUnsupportedError as x, SDK_VERSION as y, isTransientError as z };
@@ -616,4 +616,4 @@ interface ILLMProvider {
616
616
  ping(): Promise<boolean>;
617
617
  }
618
618
 
619
- export type { RetrivoraChunkMetadata as A, BarChartData as B, ChatMessage as C, RetrivoraIngestedDocument as D, EmbedOptions as E, SuggestionsResponse as F, GraphDBConfig as G, TableData as H, ILLMProvider as I, UITransformationResponse as J, VisualizationType as K, LLMConfig as L, MessageRole as M, ObservabilityTrace as O, PieChartData as P, RAGConfig as R, ScatterPlotDataPoint as S, TokenUsage as T, UseRagChatOptions as U, VectorDBConfig as V, WorkflowConfig as W, UseRagChatReturn as a, ChatOptions as b, ChatResponse as c, EmbeddingConfig as d, EmbeddingProvider as e, IngestDocument as f, LLMProvider as g, LatencyBreakdown as h, RagConfig as i, RagMessage as j, RetrievalConfig as k, RetrievedChunk as l, UIConfig as m, UniversalRagConfig as n, UpsertDocument as o, VectorDBProvider as p, VectorMatch as q, GraphNode as r, Edge as s, GraphSearchResult as t, CarouselProduct as u, IRetriever as v, LineChartDataPoint as w, MetricCardData as x, Product as y, RetrievalResult as z };
619
+ export type { RetrievalResult as A, BarChartData as B, ChatMessage as C, RetrivoraChunkMetadata as D, EmbedOptions as E, RetrivoraIngestedDocument as F, GraphDBConfig as G, SuggestionsResponse as H, ILLMProvider as I, TableData as J, VisualizationType as K, LLMConfig as L, MessageRole as M, ObservabilityTrace as O, PieChartData as P, RAGConfig as R, ScatterPlotDataPoint as S, TokenUsage as T, UseRagChatOptions as U, VectorDBConfig as V, WorkflowConfig as W, UseRagChatReturn as a, ChatOptions as b, ChatResponse as c, EmbeddingConfig as d, EmbeddingProvider as e, IngestDocument as f, LLMProvider as g, LatencyBreakdown as h, RagConfig as i, RagMessage as j, RetrievalConfig as k, RetrievedChunk as l, UIConfig as m, UniversalRagConfig as n, UpsertDocument as o, VectorDBProvider as p, VectorMatch as q, GraphNode as r, Edge as s, GraphSearchResult as t, UITransformationResponse as u, CarouselProduct as v, IRetriever as w, LineChartDataPoint as x, MetricCardData as y, Product as z };
@@ -616,4 +616,4 @@ interface ILLMProvider {
616
616
  ping(): Promise<boolean>;
617
617
  }
618
618
 
619
- export type { RetrivoraChunkMetadata as A, BarChartData as B, ChatMessage as C, RetrivoraIngestedDocument as D, EmbedOptions as E, SuggestionsResponse as F, GraphDBConfig as G, TableData as H, ILLMProvider as I, UITransformationResponse as J, VisualizationType as K, LLMConfig as L, MessageRole as M, ObservabilityTrace as O, PieChartData as P, RAGConfig as R, ScatterPlotDataPoint as S, TokenUsage as T, UseRagChatOptions as U, VectorDBConfig as V, WorkflowConfig as W, UseRagChatReturn as a, ChatOptions as b, ChatResponse as c, EmbeddingConfig as d, EmbeddingProvider as e, IngestDocument as f, LLMProvider as g, LatencyBreakdown as h, RagConfig as i, RagMessage as j, RetrievalConfig as k, RetrievedChunk as l, UIConfig as m, UniversalRagConfig as n, UpsertDocument as o, VectorDBProvider as p, VectorMatch as q, GraphNode as r, Edge as s, GraphSearchResult as t, CarouselProduct as u, IRetriever as v, LineChartDataPoint as w, MetricCardData as x, Product as y, RetrievalResult as z };
619
+ export type { RetrievalResult as A, BarChartData as B, ChatMessage as C, RetrivoraChunkMetadata as D, EmbedOptions as E, RetrivoraIngestedDocument as F, GraphDBConfig as G, SuggestionsResponse as H, ILLMProvider as I, TableData as J, VisualizationType as K, LLMConfig as L, MessageRole as M, ObservabilityTrace as O, PieChartData as P, RAGConfig as R, ScatterPlotDataPoint as S, TokenUsage as T, UseRagChatOptions as U, VectorDBConfig as V, WorkflowConfig as W, UseRagChatReturn as a, ChatOptions as b, ChatResponse as c, EmbeddingConfig as d, EmbeddingProvider as e, IngestDocument as f, LLMProvider as g, LatencyBreakdown as h, RagConfig as i, RagMessage as j, RetrievalConfig as k, RetrievedChunk as l, UIConfig as m, UniversalRagConfig as n, UpsertDocument as o, VectorDBProvider as p, VectorMatch as q, GraphNode as r, Edge as s, GraphSearchResult as t, UITransformationResponse as u, CarouselProduct as v, IRetriever as w, LineChartDataPoint as x, MetricCardData as y, Product as z };
@@ -1,3 +1,3 @@
1
1
  import 'next/server';
2
- export { b as HandlerOptions, d as createChatHandler, e as createFeedbackHandler, f as createHealthHandler, g as createHistoryHandler, h as createIngestHandler, p as createLicenseHandler, i as createRagHandler, j as createSessionsHandler, k as createStreamHandler, q as createSuggestionsHandler, l as createUploadHandler, s as sseErrorFrame, m as sseFrame, n as sseMetaFrame, r as sseObservabilityFrame, o as sseTextFrame, t as sseUIFrame } from '../index-fnpaCuma.mjs';
3
- import '../ILLMProvider-teTNQ1lh.mjs';
2
+ export { b as HandlerOptions, d as createChatHandler, e as createFeedbackHandler, f as createHealthHandler, g as createHistoryHandler, h as createIngestHandler, p as createLicenseHandler, i as createRagHandler, j as createSessionsHandler, k as createStreamHandler, q as createSuggestionsHandler, l as createUploadHandler, s as sseErrorFrame, m as sseFrame, n as sseMetaFrame, r as sseObservabilityFrame, o as sseTextFrame, t as sseUIFrame } from '../index-CL-zF6bD.mjs';
3
+ import '../ILLMProvider-CcJ5N6XD.mjs';
@@ -1,3 +1,3 @@
1
1
  import 'next/server';
2
- export { b as HandlerOptions, d as createChatHandler, e as createFeedbackHandler, f as createHealthHandler, g as createHistoryHandler, h as createIngestHandler, p as createLicenseHandler, i as createRagHandler, j as createSessionsHandler, k as createStreamHandler, q as createSuggestionsHandler, l as createUploadHandler, s as sseErrorFrame, m as sseFrame, n as sseMetaFrame, r as sseObservabilityFrame, o as sseTextFrame, t as sseUIFrame } from '../index-DR_O_B-W.js';
3
- import '../ILLMProvider-teTNQ1lh.js';
2
+ export { b as HandlerOptions, d as createChatHandler, e as createFeedbackHandler, f as createHealthHandler, g as createHistoryHandler, h as createIngestHandler, p as createLicenseHandler, i as createRagHandler, j as createSessionsHandler, k as createStreamHandler, q as createSuggestionsHandler, l as createUploadHandler, s as sseErrorFrame, m as sseFrame, n as sseMetaFrame, r as sseObservabilityFrame, o as sseTextFrame, t as sseUIFrame } from '../index-BwmyPJHp.js';
3
+ import '../ILLMProvider-CcJ5N6XD.js';
@@ -2499,14 +2499,15 @@ LicenseVerifier.CACHE_TTL_MS = 60 * 1e3;
2499
2499
  // Cache verified license for 60 seconds
2500
2500
  // Retrivora's Public Key used to verify the license key signature.
2501
2501
  // In production, this matches the private key held by Retrivora SaaS.
2502
+ // Rotate this key only when the signing private key is replaced.
2502
2503
  LicenseVerifier.PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
2503
- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArMieCkCBtTfByRNOserm
2504
- XM4T0Am29JyNzB4XQPe+WJJ56CN73H1HLXx9n1ByFcxkEJ9po+SURj5DnvUXwEy+
2505
- xstx33wDPpVmcMQe33j5CRYS0S4gICiNqIRN7XkTlJtrcXqrmh1/hdOAwfRbjO1T
2506
- NVtORHwUwWfI/lBLyxUPGtKPed+0fQ7NtcW4o00JXxs3EjCB5BV9CbnXoTjQb/4h
2507
- iwZof4l8rb7oaNzOsVg0RSyxsETX7Ex5sI0CjBz1p2mYp4oVhw/A/h8Ls7H0XzjC
2508
- +Eb6BLtsytt5JHoSp0jExLlCpDmpys2L+kETcBVx+IqiXtdN1n6KbkksvEDUVzLI
2509
- MwIDAQAB
2504
+ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoOQlmDSKfCZaRy06rxwa
2505
+ chuDimlF134xTCitKDTPTPizF23oSn34pGDJakm/0T09JVUX8L/cvhGPe/3lf/g9
2506
+ 4Y1q+Gb2KVM17KNGeT1Aj9Ua3BKz/yao/oFhi/r3Zt3cWY13B/Rd6clqY9WshIAV
2507
+ NqZNM8ilTl777cMbyym+6D+mzGXgmnJAO5brddIAI9FPLW0T3Znt8vEqDOIljEkC
2508
+ HCGHeirKABLbjKSJ4hljCa3vVitWqndhiq8CBSJG6HatiSGYotgMWGRY+0EbdlEv
2509
+ OJP4SqafQ3aD6YnL9q1n15QKwxu/uMK+JGM2VxxuyUi9GANtMIkCYy9xya73P4Qc
2510
+ gQIDAQAB
2510
2511
  -----END PUBLIC KEY-----`;
2511
2512
 
2512
2513
  // src/config/constants.ts
@@ -4708,7 +4709,7 @@ var ConfigValidator = class {
4708
4709
  // package.json
4709
4710
  var package_default = {
4710
4711
  name: "@retrivora-ai/rag-engine",
4711
- version: "2.3.2",
4712
+ version: "2.3.4",
4712
4713
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
4713
4714
  author: "Abhinav Alkuchi",
4714
4715
  license: "UNLICENSED",
@@ -2463,14 +2463,15 @@ LicenseVerifier.CACHE_TTL_MS = 60 * 1e3;
2463
2463
  // Cache verified license for 60 seconds
2464
2464
  // Retrivora's Public Key used to verify the license key signature.
2465
2465
  // In production, this matches the private key held by Retrivora SaaS.
2466
+ // Rotate this key only when the signing private key is replaced.
2466
2467
  LicenseVerifier.PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
2467
- MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArMieCkCBtTfByRNOserm
2468
- XM4T0Am29JyNzB4XQPe+WJJ56CN73H1HLXx9n1ByFcxkEJ9po+SURj5DnvUXwEy+
2469
- xstx33wDPpVmcMQe33j5CRYS0S4gICiNqIRN7XkTlJtrcXqrmh1/hdOAwfRbjO1T
2470
- NVtORHwUwWfI/lBLyxUPGtKPed+0fQ7NtcW4o00JXxs3EjCB5BV9CbnXoTjQb/4h
2471
- iwZof4l8rb7oaNzOsVg0RSyxsETX7Ex5sI0CjBz1p2mYp4oVhw/A/h8Ls7H0XzjC
2472
- +Eb6BLtsytt5JHoSp0jExLlCpDmpys2L+kETcBVx+IqiXtdN1n6KbkksvEDUVzLI
2473
- MwIDAQAB
2468
+ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoOQlmDSKfCZaRy06rxwa
2469
+ chuDimlF134xTCitKDTPTPizF23oSn34pGDJakm/0T09JVUX8L/cvhGPe/3lf/g9
2470
+ 4Y1q+Gb2KVM17KNGeT1Aj9Ua3BKz/yao/oFhi/r3Zt3cWY13B/Rd6clqY9WshIAV
2471
+ NqZNM8ilTl777cMbyym+6D+mzGXgmnJAO5brddIAI9FPLW0T3Znt8vEqDOIljEkC
2472
+ HCGHeirKABLbjKSJ4hljCa3vVitWqndhiq8CBSJG6HatiSGYotgMWGRY+0EbdlEv
2473
+ OJP4SqafQ3aD6YnL9q1n15QKwxu/uMK+JGM2VxxuyUi9GANtMIkCYy9xya73P4Qc
2474
+ gQIDAQAB
2474
2475
  -----END PUBLIC KEY-----`;
2475
2476
 
2476
2477
  // src/config/constants.ts
@@ -4672,7 +4673,7 @@ var ConfigValidator = class {
4672
4673
  // package.json
4673
4674
  var package_default = {
4674
4675
  name: "@retrivora-ai/rag-engine",
4675
- version: "2.3.2",
4676
+ version: "2.3.4",
4676
4677
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
4677
4678
  author: "Abhinav Alkuchi",
4678
4679
  license: "UNLICENSED",
@@ -1,5 +1,5 @@
1
1
  import { NextRequest } from 'next/server';
2
- import { i as RagConfig, I as ILLMProvider, C as ChatMessage, c as ChatResponse, f as IngestDocument } from './ILLMProvider-teTNQ1lh.js';
2
+ import { i as RagConfig, I as ILLMProvider, C as ChatMessage, c as ChatResponse, f as IngestDocument } from './ILLMProvider-CcJ5N6XD.js';
3
3
 
4
4
  interface ValidationError {
5
5
  field: string;
@@ -1,5 +1,5 @@
1
1
  import { NextRequest } from 'next/server';
2
- import { i as RagConfig, I as ILLMProvider, C as ChatMessage, c as ChatResponse, f as IngestDocument } from './ILLMProvider-teTNQ1lh.mjs';
2
+ import { i as RagConfig, I as ILLMProvider, C as ChatMessage, c as ChatResponse, f as IngestDocument } from './ILLMProvider-CcJ5N6XD.mjs';
3
3
 
4
4
  interface ValidationError {
5
5
  field: string;
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps } from './BatchProcessor-7yV-UCHW.mjs';
3
- export { A as AuthenticationException, B as BatchOptions, e as BatchProcessor, f as BatchResult, g as ChartType, h as Chunk, i as ChunkOptions, j as ConfigurationException, k as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, l as IRendererStrategy, m as IntentCategory, n as IntentClassifier, L as LicenseValidationError, o as LicenseValidationRequest, p as LicenseValidationResponse, q as LicenseValidator, r as ProviderNotFoundException, R as RateLimitException, s as RenderDecision, 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, V as VisualizationDecisionEngine, H as decideVisualization, J as isTransientError } from './BatchProcessor-7yV-UCHW.mjs';
4
- import { O as ObservabilityTrace, U as UseRagChatOptions, a as UseRagChatReturn } from './ILLMProvider-teTNQ1lh.mjs';
5
- export { C as ChatMessage, b as ChatOptions, c as ChatResponse, E as EmbedOptions, d as EmbeddingConfig, e as EmbeddingProvider, I as ILLMProvider, f as IngestDocument, L as LLMConfig, g as LLMProvider, h as LatencyBreakdown, R as RAGConfig, i as RagConfig, j as RagMessage, k as RetrievalConfig, l as RetrievedChunk, T as TokenUsage, m as UIConfig, n as UniversalRagConfig, o as UpsertDocument, V as VectorDBConfig, p as VectorDBProvider, q as VectorMatch, W as WorkflowConfig } from './ILLMProvider-teTNQ1lh.mjs';
2
+ import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps } from './BatchProcessor-tVzb9CdE.mjs';
3
+ export { A as AuthenticationException, B as BatchOptions, e as BatchProcessor, f as BatchResult, g as ChartType, h as Chunk, i as ChunkOptions, j as ConfigurationException, k as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, l as IRendererStrategy, m as IntentCategory, L as LicenseValidationError, n as LicenseValidationRequest, o as LicenseValidationResponse, p as LicenseValidator, q as ProviderNotFoundException, R as RateLimitException, r as RenderDecision, s as RenderType, t as RetrievalException, u as Retrivora, v as RetrivoraError, w as RetrivoraErrorCode, x as SDKVersionUnsupportedError, y as SDK_VERSION, z as isTransientError } from './BatchProcessor-tVzb9CdE.mjs';
4
+ import { O as ObservabilityTrace, U as UseRagChatOptions, a as UseRagChatReturn } from './ILLMProvider-CcJ5N6XD.mjs';
5
+ export { C as ChatMessage, b as ChatOptions, c as ChatResponse, E as EmbedOptions, d as EmbeddingConfig, e as EmbeddingProvider, I as ILLMProvider, f as IngestDocument, L as LLMConfig, g as LLMProvider, h as LatencyBreakdown, R as RAGConfig, i as RagConfig, j as RagMessage, k as RetrievalConfig, l as RetrievedChunk, T as TokenUsage, m as UIConfig, n as UniversalRagConfig, o as UpsertDocument, V as VectorDBConfig, p as VectorDBProvider, q as VectorMatch, W as WorkflowConfig } from './ILLMProvider-CcJ5N6XD.mjs';
6
6
  import 'react';
7
7
 
8
8
  /**
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps } from './BatchProcessor-BfzuU4cK.js';
3
- export { A as AuthenticationException, B as BatchOptions, e as BatchProcessor, f as BatchResult, g as ChartType, h as Chunk, i as ChunkOptions, j as ConfigurationException, k as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, l as IRendererStrategy, m as IntentCategory, n as IntentClassifier, L as LicenseValidationError, o as LicenseValidationRequest, p as LicenseValidationResponse, q as LicenseValidator, r as ProviderNotFoundException, R as RateLimitException, s as RenderDecision, 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, V as VisualizationDecisionEngine, H as decideVisualization, J as isTransientError } from './BatchProcessor-BfzuU4cK.js';
4
- import { O as ObservabilityTrace, U as UseRagChatOptions, a as UseRagChatReturn } from './ILLMProvider-teTNQ1lh.js';
5
- export { C as ChatMessage, b as ChatOptions, c as ChatResponse, E as EmbedOptions, d as EmbeddingConfig, e as EmbeddingProvider, I as ILLMProvider, f as IngestDocument, L as LLMConfig, g as LLMProvider, h as LatencyBreakdown, R as RAGConfig, i as RagConfig, j as RagMessage, k as RetrievalConfig, l as RetrievedChunk, T as TokenUsage, m as UIConfig, n as UniversalRagConfig, o as UpsertDocument, V as VectorDBConfig, p as VectorDBProvider, q as VectorMatch, W as WorkflowConfig } from './ILLMProvider-teTNQ1lh.js';
2
+ import { C as ChatWidgetProps, a as ChatWindowProps, D as DocumentUploadProps, M as MessageBubbleProps, S as SourceCardProps, b as ConfigProviderProps, c as ClientConfig, P as ProductCardProps, d as ProductCarouselProps } from './BatchProcessor-CQDtlggz.js';
3
+ export { A as AuthenticationException, B as BatchOptions, e as BatchProcessor, f as BatchResult, g as ChartType, h as Chunk, i as ChunkOptions, j as ConfigurationException, k as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, l as IRendererStrategy, m as IntentCategory, L as LicenseValidationError, n as LicenseValidationRequest, o as LicenseValidationResponse, p as LicenseValidator, q as ProviderNotFoundException, R as RateLimitException, r as RenderDecision, s as RenderType, t as RetrievalException, u as Retrivora, v as RetrivoraError, w as RetrivoraErrorCode, x as SDKVersionUnsupportedError, y as SDK_VERSION, z as isTransientError } from './BatchProcessor-CQDtlggz.js';
4
+ import { O as ObservabilityTrace, U as UseRagChatOptions, a as UseRagChatReturn } from './ILLMProvider-CcJ5N6XD.js';
5
+ export { C as ChatMessage, b as ChatOptions, c as ChatResponse, E as EmbedOptions, d as EmbeddingConfig, e as EmbeddingProvider, I as ILLMProvider, f as IngestDocument, L as LLMConfig, g as LLMProvider, h as LatencyBreakdown, R as RAGConfig, i as RagConfig, j as RagMessage, k as RetrievalConfig, l as RetrievedChunk, T as TokenUsage, m as UIConfig, n as UniversalRagConfig, o as UpsertDocument, V as VectorDBConfig, p as VectorDBProvider, q as VectorMatch, W as WorkflowConfig } from './ILLMProvider-CcJ5N6XD.js';
6
6
  import 'react';
7
7
 
8
8
  /**