@retrivora-ai/rag-engine 2.5.7 → 2.5.9

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.
Files changed (51) hide show
  1. package/dist/{ILLMProvider-DwFj0h2u.d.mts → ILLMProvider-B2N3lMBc.d.mts} +10 -1
  2. package/dist/{ILLMProvider-DwFj0h2u.d.ts → ILLMProvider-B2N3lMBc.d.ts} +10 -1
  3. package/dist/handlers/index.d.mts +2 -2
  4. package/dist/handlers/index.d.ts +2 -2
  5. package/dist/handlers/index.js +962 -193
  6. package/dist/handlers/index.mjs +12821 -24
  7. package/dist/{index-Cb0GsT16.d.ts → index-37V810a-.d.mts} +3 -3
  8. package/dist/{index-D1jN8KSF.d.mts → index-BxzDv2jd.d.ts} +3 -3
  9. package/dist/{index-9h_ENWQn.d.mts → index-CAGGPyI7.d.mts} +6 -2
  10. package/dist/{index-Xci6GfpI.d.ts → index-DdQxoIpu.d.ts} +6 -2
  11. package/dist/index.css +76 -4
  12. package/dist/index.d.mts +6 -6
  13. package/dist/index.d.ts +6 -6
  14. package/dist/index.js +138 -96
  15. package/dist/index.min.css +1 -1
  16. package/dist/index.mjs +1554 -130
  17. package/dist/server.d.mts +100 -9
  18. package/dist/server.d.ts +100 -9
  19. package/dist/server.js +964 -193
  20. package/dist/server.mjs +13378 -372
  21. package/package.json +5 -2
  22. package/dist/ChromaDBProvider-4RPJN7Y3.mjs +0 -8
  23. package/dist/MilvusProvider-WJLLZ6TW.mjs +0 -8
  24. package/dist/MongoDBProvider-QSERELZX.mjs +0 -8
  25. package/dist/MultiTablePostgresProvider-JF2HEUDZ.mjs +0 -9
  26. package/dist/PineconeProvider-HLZL7HKU.mjs +0 -10
  27. package/dist/PostgreSQLProvider-JQMCNHRO.mjs +0 -8
  28. package/dist/QdrantProvider-6MNFPEVC.mjs +0 -8
  29. package/dist/RedisProvider-ERQL6AEB.mjs +0 -8
  30. package/dist/SimpleGraphProvider-OP3HAJJM.mjs +0 -70
  31. package/dist/UniversalVectorProvider-INM3KH5F.mjs +0 -9
  32. package/dist/WeaviateProvider-VHWWICCC.mjs +0 -8
  33. package/dist/chunk-366EFBZC.mjs +0 -165
  34. package/dist/chunk-6MGVQTU4.mjs +0 -8883
  35. package/dist/chunk-B4AXIUM7.mjs +0 -49
  36. package/dist/chunk-BEPLYQBS.mjs +0 -89
  37. package/dist/chunk-BNOPQCZW.mjs +0 -238
  38. package/dist/chunk-FJ43J4FW.mjs +0 -654
  39. package/dist/chunk-GP2AJQRQ.mjs +0 -107
  40. package/dist/chunk-IMP6FUCY.mjs +0 -30
  41. package/dist/chunk-JRQWSJNF.mjs +0 -202
  42. package/dist/chunk-LYHCKUNF.mjs +0 -112
  43. package/dist/chunk-MFIWWUC7.mjs +0 -152
  44. package/dist/chunk-MWICNCB2.mjs +0 -157
  45. package/dist/chunk-N54YTFBN.mjs +0 -76
  46. package/dist/chunk-POOWU2HR.mjs +0 -211
  47. package/dist/chunk-QGDGPOZH.mjs +0 -217
  48. package/dist/chunk-QI3FTN6G.mjs +0 -281
  49. package/dist/chunk-QJIDGVG6.mjs +0 -334
  50. package/dist/chunk-W2DKVD3G.mjs +0 -81
  51. package/dist/chunk-XHSDHPKI.mjs +0 -336
@@ -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-DwFj0h2u.js';
2
+ import { p as RagConfig, I as ILLMProvider, C as ChatMessage, e as ChatResponse, h as IngestDocument } from './ILLMProvider-B2N3lMBc.mjs';
3
3
 
4
4
  interface ValidationError {
5
5
  field: string;
@@ -243,7 +243,7 @@ declare function createIngestHandler(configOrPlugin?: Partial<RagConfig> | Vecto
243
243
  * @param options - Optional `onAuthorize` gate (rarely used here).
244
244
  * @returns Async GET handler.
245
245
  */
246
- declare function createHealthHandler(configOrPlugin?: Partial<RagConfig> | VectorPlugin, options?: HandlerOptions): (req?: NextRequest) => Promise<any>;
246
+ declare function createHealthHandler(configOrPlugin?: Partial<RagConfig> | VectorPlugin, options?: HandlerOptions): (req?: any, context?: any) => Promise<any>;
247
247
  /**
248
248
  * Build a POST handler for the SDK-facing `/v1/license/validate` endpoint.
249
249
  *
@@ -339,7 +339,7 @@ declare function createFeedbackHandler(configOrPlugin?: Partial<RagConfig> | Vec
339
339
  * @param options - Optional `onAuthorize` gate.
340
340
  * @returns Async GET handler returning a session listing.
341
341
  */
342
- declare function createSessionsHandler(configOrPlugin?: Partial<RagConfig> | VectorPlugin, options?: HandlerOptions): (req?: NextRequest) => Promise<any>;
342
+ declare function createSessionsHandler(configOrPlugin?: Partial<RagConfig> | VectorPlugin, options?: HandlerOptions): (req?: any, context?: any) => Promise<any>;
343
343
  /**
344
344
  * Build a Next.js catch-all route that dispatches to every sub-handler by path.
345
345
  *
@@ -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-DwFj0h2u.mjs';
2
+ import { p as RagConfig, I as ILLMProvider, C as ChatMessage, e as ChatResponse, h as IngestDocument } from './ILLMProvider-B2N3lMBc.js';
3
3
 
4
4
  interface ValidationError {
5
5
  field: string;
@@ -243,7 +243,7 @@ declare function createIngestHandler(configOrPlugin?: Partial<RagConfig> | Vecto
243
243
  * @param options - Optional `onAuthorize` gate (rarely used here).
244
244
  * @returns Async GET handler.
245
245
  */
246
- declare function createHealthHandler(configOrPlugin?: Partial<RagConfig> | VectorPlugin, options?: HandlerOptions): (req?: NextRequest) => Promise<any>;
246
+ declare function createHealthHandler(configOrPlugin?: Partial<RagConfig> | VectorPlugin, options?: HandlerOptions): (req?: any, context?: any) => Promise<any>;
247
247
  /**
248
248
  * Build a POST handler for the SDK-facing `/v1/license/validate` endpoint.
249
249
  *
@@ -339,7 +339,7 @@ declare function createFeedbackHandler(configOrPlugin?: Partial<RagConfig> | Vec
339
339
  * @param options - Optional `onAuthorize` gate.
340
340
  * @returns Async GET handler returning a session listing.
341
341
  */
342
- declare function createSessionsHandler(configOrPlugin?: Partial<RagConfig> | VectorPlugin, options?: HandlerOptions): (req?: NextRequest) => Promise<any>;
342
+ declare function createSessionsHandler(configOrPlugin?: Partial<RagConfig> | VectorPlugin, options?: HandlerOptions): (req?: any, context?: any) => Promise<any>;
343
343
  /**
344
344
  * Build a Next.js catch-all route that dispatches to every sub-handler by path.
345
345
  *
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
2
- import { W as WidgetPosition, P as Product, u as UIConfig, c as ProjectChatSettings, q as RagMessage, y as VectorMatch, p as RagConfig, I as ILLMProvider, h as IngestDocument, C as ChatMessage, e as ChatResponse, _ as RetrievalResult, v as UniversalRagConfig, U as UITransformationResponse, L as LLMConfig, f as EmbeddingConfig, V as VectorDBConfig } from './ILLMProvider-DwFj0h2u.mjs';
2
+ import { W as WidgetPosition, P as Product, u as UIConfig, c as ProjectChatSettings, q as RagMessage, y as VectorMatch, p as RagConfig, I as ILLMProvider, h as IngestDocument, C as ChatMessage, e as ChatResponse, _ as RetrievalResult, v as UniversalRagConfig, U as UITransformationResponse, L as LLMConfig, f as EmbeddingConfig, V as VectorDBConfig } from './ILLMProvider-B2N3lMBc.mjs';
3
3
 
4
4
  interface ArchitectureCardProps {
5
5
  icon: ReactNode;
@@ -53,6 +53,8 @@ interface ChatWindowProps {
53
53
  onAddToCart?: (product: Product) => void;
54
54
  /** Optional custom API URL to send chat messages to */
55
55
  apiUrl?: string;
56
+ /** Optional custom API URL to send file upload requests to */
57
+ uploadUrl?: string;
56
58
  /** Base URL for Retrivora SDK history/feedback/sessions endpoints.
57
59
  * Defaults to '/api/retrivora'. Set this to match your catch-all route location.
58
60
  */
@@ -79,6 +81,8 @@ interface ChatWidgetProps {
79
81
  onAddToCart?: (product: Product) => void;
80
82
  /** Optional custom API URL to send chat messages to */
81
83
  apiUrl?: string;
84
+ /** Optional custom API URL to send file upload requests to */
85
+ uploadUrl?: string;
82
86
  /**
83
87
  * Base URL for Retrivora SDK history/feedback/sessions endpoints.
84
88
  * Defaults to '/api/retrivora'.
@@ -425,7 +429,7 @@ declare class Pipeline {
425
429
  private prepareChunks;
426
430
  /**
427
431
  * Step 2: Generate embeddings for chunks with retry logic.
428
- * Uses batchEmbed when available for efficiency; falls back to sequential embedding.
432
+ * Uses batchEmbed when available for efficiency; falls back to concurrent embedding.
429
433
  */
430
434
  private processEmbeddings;
431
435
  /** Step 3: Upsert chunks to vector database with retry logic. */
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
2
- import { W as WidgetPosition, P as Product, u as UIConfig, c as ProjectChatSettings, q as RagMessage, y as VectorMatch, p as RagConfig, I as ILLMProvider, h as IngestDocument, C as ChatMessage, e as ChatResponse, _ as RetrievalResult, v as UniversalRagConfig, U as UITransformationResponse, L as LLMConfig, f as EmbeddingConfig, V as VectorDBConfig } from './ILLMProvider-DwFj0h2u.js';
2
+ import { W as WidgetPosition, P as Product, u as UIConfig, c as ProjectChatSettings, q as RagMessage, y as VectorMatch, p as RagConfig, I as ILLMProvider, h as IngestDocument, C as ChatMessage, e as ChatResponse, _ as RetrievalResult, v as UniversalRagConfig, U as UITransformationResponse, L as LLMConfig, f as EmbeddingConfig, V as VectorDBConfig } from './ILLMProvider-B2N3lMBc.js';
3
3
 
4
4
  interface ArchitectureCardProps {
5
5
  icon: ReactNode;
@@ -53,6 +53,8 @@ interface ChatWindowProps {
53
53
  onAddToCart?: (product: Product) => void;
54
54
  /** Optional custom API URL to send chat messages to */
55
55
  apiUrl?: string;
56
+ /** Optional custom API URL to send file upload requests to */
57
+ uploadUrl?: string;
56
58
  /** Base URL for Retrivora SDK history/feedback/sessions endpoints.
57
59
  * Defaults to '/api/retrivora'. Set this to match your catch-all route location.
58
60
  */
@@ -79,6 +81,8 @@ interface ChatWidgetProps {
79
81
  onAddToCart?: (product: Product) => void;
80
82
  /** Optional custom API URL to send chat messages to */
81
83
  apiUrl?: string;
84
+ /** Optional custom API URL to send file upload requests to */
85
+ uploadUrl?: string;
82
86
  /**
83
87
  * Base URL for Retrivora SDK history/feedback/sessions endpoints.
84
88
  * Defaults to '/api/retrivora'.
@@ -425,7 +429,7 @@ declare class Pipeline {
425
429
  private prepareChunks;
426
430
  /**
427
431
  * Step 2: Generate embeddings for chunks with retry logic.
428
- * Uses batchEmbed when available for efficiency; falls back to sequential embedding.
432
+ * Uses batchEmbed when available for efficiency; falls back to concurrent embedding.
429
433
  */
430
434
  private processEmbeddings;
431
435
  /** Step 3: Upsert chunks to vector database with retry logic. */
package/dist/index.css CHANGED
@@ -38,6 +38,7 @@
38
38
  --color-emerald-800: oklch(43.2% 0.095 166.913);
39
39
  --color-emerald-900: oklch(37.8% 0.077 168.94);
40
40
  --color-emerald-950: oklch(26.2% 0.051 172.552);
41
+ --color-teal-400: oklch(77.7% 0.152 181.912);
41
42
  --color-cyan-50: oklch(98.4% 0.019 200.873);
42
43
  --color-cyan-100: oklch(95.6% 0.045 203.388);
43
44
  --color-cyan-200: oklch(91.7% 0.08 205.041);
@@ -119,7 +120,6 @@
119
120
  --color-black: #000;
120
121
  --color-white: #fff;
121
122
  --spacing: 0.25rem;
122
- --container-xs: 20rem;
123
123
  --container-sm: 24rem;
124
124
  --container-md: 28rem;
125
125
  --container-2xl: 42rem;
@@ -815,9 +815,6 @@
815
815
  .max-w-sm {
816
816
  max-width: var(--container-sm);
817
817
  }
818
- .max-w-xs {
819
- max-width: var(--container-xs);
820
- }
821
818
  .min-w-0 {
822
819
  min-width: 0px;
823
820
  }
@@ -1171,6 +1168,18 @@
1171
1168
  .border-emerald-200 {
1172
1169
  border-color: var(--color-emerald-200);
1173
1170
  }
1171
+ .border-emerald-200\/80 {
1172
+ border-color: color-mix(in srgb, oklch(90.5% 0.093 164.15) 80%, transparent);
1173
+ @supports (color: color-mix(in lab, red, red)) {
1174
+ border-color: color-mix(in oklab, var(--color-emerald-200) 80%, transparent);
1175
+ }
1176
+ }
1177
+ .border-emerald-300\/40 {
1178
+ border-color: color-mix(in srgb, oklch(84.5% 0.143 164.978) 40%, transparent);
1179
+ @supports (color: color-mix(in lab, red, red)) {
1180
+ border-color: color-mix(in oklab, var(--color-emerald-300) 40%, transparent);
1181
+ }
1182
+ }
1174
1183
  .border-emerald-500 {
1175
1184
  border-color: var(--color-emerald-500);
1176
1185
  }
@@ -1210,6 +1219,12 @@
1210
1219
  border-color: color-mix(in oklab, var(--color-rose-200) 60%, transparent);
1211
1220
  }
1212
1221
  }
1222
+ .border-rose-200\/80 {
1223
+ border-color: color-mix(in srgb, oklch(89.2% 0.058 10.001) 80%, transparent);
1224
+ @supports (color: color-mix(in lab, red, red)) {
1225
+ border-color: color-mix(in oklab, var(--color-rose-200) 80%, transparent);
1226
+ }
1227
+ }
1213
1228
  .border-slate-100 {
1214
1229
  border-color: var(--color-slate-100);
1215
1230
  }
@@ -1315,9 +1330,21 @@
1315
1330
  background-color: color-mix(in oklab, var(--color-emerald-50) 50%, transparent);
1316
1331
  }
1317
1332
  }
1333
+ .bg-emerald-50\/60 {
1334
+ background-color: color-mix(in srgb, oklch(97.9% 0.021 166.113) 60%, transparent);
1335
+ @supports (color: color-mix(in lab, red, red)) {
1336
+ background-color: color-mix(in oklab, var(--color-emerald-50) 60%, transparent);
1337
+ }
1338
+ }
1318
1339
  .bg-emerald-100 {
1319
1340
  background-color: var(--color-emerald-100);
1320
1341
  }
1342
+ .bg-emerald-100\/70 {
1343
+ background-color: color-mix(in srgb, oklch(95% 0.052 163.051) 70%, transparent);
1344
+ @supports (color: color-mix(in lab, red, red)) {
1345
+ background-color: color-mix(in oklab, var(--color-emerald-100) 70%, transparent);
1346
+ }
1347
+ }
1321
1348
  .bg-emerald-200 {
1322
1349
  background-color: var(--color-emerald-200);
1323
1350
  }
@@ -1384,6 +1411,12 @@
1384
1411
  background-color: color-mix(in oklab, var(--color-rose-50) 50%, transparent);
1385
1412
  }
1386
1413
  }
1414
+ .bg-rose-50\/60 {
1415
+ background-color: color-mix(in srgb, oklch(96.9% 0.015 12.422) 60%, transparent);
1416
+ @supports (color: color-mix(in lab, red, red)) {
1417
+ background-color: color-mix(in oklab, var(--color-rose-50) 60%, transparent);
1418
+ }
1419
+ }
1387
1420
  .bg-rose-100 {
1388
1421
  background-color: var(--color-rose-100);
1389
1422
  }
@@ -1484,6 +1517,14 @@
1484
1517
  --tw-gradient-position: to bottom right in oklab;
1485
1518
  background-image: linear-gradient(var(--tw-gradient-stops));
1486
1519
  }
1520
+ .bg-gradient-to-r {
1521
+ --tw-gradient-position: to right in oklab;
1522
+ background-image: linear-gradient(var(--tw-gradient-stops));
1523
+ }
1524
+ .from-emerald-500 {
1525
+ --tw-gradient-from: var(--color-emerald-500);
1526
+ --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
1527
+ }
1487
1528
  .from-slate-100 {
1488
1529
  --tw-gradient-from: var(--color-slate-100);
1489
1530
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
@@ -1492,6 +1533,10 @@
1492
1533
  --tw-gradient-to: var(--color-slate-200);
1493
1534
  --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
1494
1535
  }
1536
+ .to-teal-400 {
1537
+ --tw-gradient-to: var(--color-teal-400);
1538
+ --tw-gradient-stops: var(--tw-gradient-via-stops, var(--tw-gradient-position), var(--tw-gradient-from) var(--tw-gradient-from-position), var(--tw-gradient-to) var(--tw-gradient-to-position));
1539
+ }
1495
1540
  .stroke-\[2\.5\] {
1496
1541
  stroke-width: 2.5;
1497
1542
  }
@@ -2332,6 +2377,9 @@
2332
2377
  .sm\:inline {
2333
2378
  display: inline;
2334
2379
  }
2380
+ .sm\:inline-flex {
2381
+ display: inline-flex;
2382
+ }
2335
2383
  .sm\:grid-cols-2 {
2336
2384
  grid-template-columns: repeat(2, minmax(0, 1fr));
2337
2385
  }
@@ -2415,6 +2463,14 @@
2415
2463
  border-color: color-mix(in oklab, var(--color-emerald-500) 25%, transparent);
2416
2464
  }
2417
2465
  }
2466
+ .dark\:border-emerald-500\/30 {
2467
+ border-color: color-mix(in srgb, oklch(69.6% 0.17 162.48) 30%, transparent);
2468
+ }
2469
+ @supports (color: color-mix(in lab, red, red)) {
2470
+ .dark\:border-emerald-500\/30 {
2471
+ border-color: color-mix(in oklab, var(--color-emerald-500) 30%, transparent);
2472
+ }
2473
+ }
2418
2474
  .dark\:border-indigo-500\/20 {
2419
2475
  border-color: color-mix(in srgb, oklch(58.5% 0.233 277.117) 20%, transparent);
2420
2476
  }
@@ -2463,6 +2519,14 @@
2463
2519
  border-color: color-mix(in oklab, var(--color-rose-500) 25%, transparent);
2464
2520
  }
2465
2521
  }
2522
+ .dark\:border-rose-500\/30 {
2523
+ border-color: color-mix(in srgb, oklch(64.5% 0.246 16.439) 30%, transparent);
2524
+ }
2525
+ @supports (color: color-mix(in lab, red, red)) {
2526
+ .dark\:border-rose-500\/30 {
2527
+ border-color: color-mix(in oklab, var(--color-rose-500) 30%, transparent);
2528
+ }
2529
+ }
2466
2530
  .dark\:border-rose-800\/40 {
2467
2531
  border-color: color-mix(in srgb, oklch(45.5% 0.188 13.697) 40%, transparent);
2468
2532
  }
@@ -2663,6 +2727,14 @@
2663
2727
  background-color: color-mix(in oklab, var(--color-emerald-500) 10%, transparent);
2664
2728
  }
2665
2729
  }
2730
+ .dark\:bg-emerald-500\/20 {
2731
+ background-color: color-mix(in srgb, oklch(69.6% 0.17 162.48) 20%, transparent);
2732
+ }
2733
+ @supports (color: color-mix(in lab, red, red)) {
2734
+ .dark\:bg-emerald-500\/20 {
2735
+ background-color: color-mix(in oklab, var(--color-emerald-500) 20%, transparent);
2736
+ }
2737
+ }
2666
2738
  .dark\:bg-emerald-700\/40 {
2667
2739
  background-color: color-mix(in srgb, oklch(50.8% 0.118 165.612) 40%, transparent);
2668
2740
  }
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import React$1 from 'react';
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, e as ChatViewportSize, R as RemoteConfig } from './index-9h_ENWQn.mjs';
3
- export { A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, i as Chunk, j as ChunkOptions, k as CircuitBreaker, l as CircuitBreakerOptions, m as ConfigFetcher, n as ConfigurationException, o as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, p as IRendererStrategy, q as IntentCategory, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, v as ProviderCredentials, w as ProviderNotFoundException, x as RateLimitException, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, G as RenderDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, U as isTransientError } from './index-9h_ENWQn.mjs';
4
- import { O as ObservabilityTrace, P as Product, U as UITransformationResponse, a as UseRagChatOptions, b as UseRagChatReturn, c as ProjectChatSettings } from './ILLMProvider-DwFj0h2u.mjs';
5
- export { A as AuthMode, C as ChatMessage, d as ChatOptions, e as ChatResponse, E as EmbedOptions, f as EmbeddingConfig, g as EmbeddingProvider, I as ILLMProvider, h as IngestDocument, L as LLMConfig, i as LLMProvider, j as LatencyBreakdown, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, R as RAGConfig, p as RagConfig, q as RagMessage, r as RetrievalConfig, s as RetrievedChunk, T as ThemeMode, t as TokenUsage, u as UIConfig, v as UniversalRagConfig, w as UpsertDocument, V as VectorDBConfig, x as VectorDBProvider, y as VectorMatch, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-DwFj0h2u.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, e as ChatViewportSize, R as RemoteConfig } from './index-CAGGPyI7.mjs';
3
+ export { A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, i as Chunk, j as ChunkOptions, k as CircuitBreaker, l as CircuitBreakerOptions, m as ConfigFetcher, n as ConfigurationException, o as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, p as IRendererStrategy, q as IntentCategory, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, v as ProviderCredentials, w as ProviderNotFoundException, x as RateLimitException, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, G as RenderDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, U as isTransientError } from './index-CAGGPyI7.mjs';
4
+ import { O as ObservabilityTrace, P as Product, U as UITransformationResponse, a as UseRagChatOptions, b as UseRagChatReturn, c as ProjectChatSettings } from './ILLMProvider-B2N3lMBc.mjs';
5
+ export { A as AuthMode, C as ChatMessage, d as ChatOptions, e as ChatResponse, E as EmbedOptions, f as EmbeddingConfig, g as EmbeddingProvider, I as ILLMProvider, h as IngestDocument, L as LLMConfig, i as LLMProvider, j as LatencyBreakdown, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, R as RAGConfig, p as RagConfig, q as RagMessage, r as RetrievalConfig, s as RetrievedChunk, T as ThemeMode, t as TokenUsage, u as UIConfig, v as UniversalRagConfig, w as UpsertDocument, V as VectorDBConfig, x as VectorDBProvider, y as VectorMatch, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-B2N3lMBc.mjs';
6
6
 
7
7
  /**
8
8
  * ChatWidget — Floating Action Button (FAB) that toggles the chat window.
@@ -17,7 +17,7 @@ export { A as AuthMode, C as ChatMessage, d as ChatOptions, e as ChatResponse, E
17
17
  *
18
18
  * No additional network calls are made by ChatWidget itself.
19
19
  */
20
- declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers, enableVoice, autoSpeak, voiceLang, }: ChatWidgetProps): React$1.JSX.Element | null;
20
+ declare function ChatWidget({ position, onAddToCart, apiUrl, uploadUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers, enableVoice, autoSpeak, voiceLang, }: ChatWidgetProps): React$1.JSX.Element | null;
21
21
 
22
22
  /**
23
23
  * ChatWindow — The primary chat interface container component.
@@ -50,7 +50,7 @@ declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, l
50
50
  * @param licenseKey - Override license key (highest priority; falls back to headers/env).
51
51
  * @param headers - Custom headers forwarded with every network request.
52
52
  */
53
- declare function ChatWindow({ className, style, onClose, showClose, onResizeStart, onResetResize, isResized, onMaximize, isMaximized, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers, sessionId: sessionIdProp, showHistory, enableVoice, autoSpeak: autoSpeakProp, voiceLang, }: ChatWindowProps): React$1.JSX.Element;
53
+ declare function ChatWindow({ className, style, onClose, showClose, onResizeStart, onResetResize, isResized, onMaximize, isMaximized, onAddToCart, apiUrl, uploadUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers, sessionId: sessionIdProp, showHistory, enableVoice, autoSpeak: autoSpeakProp, voiceLang, }: ChatWindowProps): React$1.JSX.Element;
54
54
 
55
55
  declare function DocumentUpload({ namespace, uploadUrl, retrivoraApiBase, onUploadComplete, className }: DocumentUploadProps): React$1.JSX.Element;
56
56
 
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import React$1 from 'react';
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, e as ChatViewportSize, R as RemoteConfig } from './index-Xci6GfpI.js';
3
- export { A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, i as Chunk, j as ChunkOptions, k as CircuitBreaker, l as CircuitBreakerOptions, m as ConfigFetcher, n as ConfigurationException, o as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, p as IRendererStrategy, q as IntentCategory, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, v as ProviderCredentials, w as ProviderNotFoundException, x as RateLimitException, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, G as RenderDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, U as isTransientError } from './index-Xci6GfpI.js';
4
- import { O as ObservabilityTrace, P as Product, U as UITransformationResponse, a as UseRagChatOptions, b as UseRagChatReturn, c as ProjectChatSettings } from './ILLMProvider-DwFj0h2u.js';
5
- export { A as AuthMode, C as ChatMessage, d as ChatOptions, e as ChatResponse, E as EmbedOptions, f as EmbeddingConfig, g as EmbeddingProvider, I as ILLMProvider, h as IngestDocument, L as LLMConfig, i as LLMProvider, j as LatencyBreakdown, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, R as RAGConfig, p as RagConfig, q as RagMessage, r as RetrievalConfig, s as RetrievedChunk, T as ThemeMode, t as TokenUsage, u as UIConfig, v as UniversalRagConfig, w as UpsertDocument, V as VectorDBConfig, x as VectorDBProvider, y as VectorMatch, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-DwFj0h2u.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, e as ChatViewportSize, R as RemoteConfig } from './index-DdQxoIpu.js';
3
+ export { A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, i as Chunk, j as ChunkOptions, k as CircuitBreaker, l as CircuitBreakerOptions, m as ConfigFetcher, n as ConfigurationException, o as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, p as IRendererStrategy, q as IntentCategory, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, v as ProviderCredentials, w as ProviderNotFoundException, x as RateLimitException, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, G as RenderDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, U as isTransientError } from './index-DdQxoIpu.js';
4
+ import { O as ObservabilityTrace, P as Product, U as UITransformationResponse, a as UseRagChatOptions, b as UseRagChatReturn, c as ProjectChatSettings } from './ILLMProvider-B2N3lMBc.js';
5
+ export { A as AuthMode, C as ChatMessage, d as ChatOptions, e as ChatResponse, E as EmbedOptions, f as EmbeddingConfig, g as EmbeddingProvider, I as ILLMProvider, h as IngestDocument, L as LLMConfig, i as LLMProvider, j as LatencyBreakdown, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, R as RAGConfig, p as RagConfig, q as RagMessage, r as RetrievalConfig, s as RetrievedChunk, T as ThemeMode, t as TokenUsage, u as UIConfig, v as UniversalRagConfig, w as UpsertDocument, V as VectorDBConfig, x as VectorDBProvider, y as VectorMatch, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-B2N3lMBc.js';
6
6
 
7
7
  /**
8
8
  * ChatWidget — Floating Action Button (FAB) that toggles the chat window.
@@ -17,7 +17,7 @@ export { A as AuthMode, C as ChatMessage, d as ChatOptions, e as ChatResponse, E
17
17
  *
18
18
  * No additional network calls are made by ChatWidget itself.
19
19
  */
20
- declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers, enableVoice, autoSpeak, voiceLang, }: ChatWidgetProps): React$1.JSX.Element | null;
20
+ declare function ChatWidget({ position, onAddToCart, apiUrl, uploadUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers, enableVoice, autoSpeak, voiceLang, }: ChatWidgetProps): React$1.JSX.Element | null;
21
21
 
22
22
  /**
23
23
  * ChatWindow — The primary chat interface container component.
@@ -50,7 +50,7 @@ declare function ChatWidget({ position, onAddToCart, apiUrl, retrivoraApiBase, l
50
50
  * @param licenseKey - Override license key (highest priority; falls back to headers/env).
51
51
  * @param headers - Custom headers forwarded with every network request.
52
52
  */
53
- declare function ChatWindow({ className, style, onClose, showClose, onResizeStart, onResetResize, isResized, onMaximize, isMaximized, onAddToCart, apiUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers, sessionId: sessionIdProp, showHistory, enableVoice, autoSpeak: autoSpeakProp, voiceLang, }: ChatWindowProps): React$1.JSX.Element;
53
+ declare function ChatWindow({ className, style, onClose, showClose, onResizeStart, onResetResize, isResized, onMaximize, isMaximized, onAddToCart, apiUrl, uploadUrl, retrivoraApiBase, licenseKey: licenseKeyProp, headers, sessionId: sessionIdProp, showHistory, enableVoice, autoSpeak: autoSpeakProp, voiceLang, }: ChatWindowProps): React$1.JSX.Element;
54
54
 
55
55
  declare function DocumentUpload({ namespace, uploadUrl, retrivoraApiBase, onUploadComplete, className }: DocumentUploadProps): React$1.JSX.Element;
56
56