@retrivora-ai/rag-engine 2.4.6 → 2.4.8

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/server.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { V as VectorDBConfig, L as LLMConfig, d as EmbeddingConfig, n as RagConfig, t as UniversalRagConfig, u as UpsertDocument, w as VectorMatch, G as GraphDBConfig, D as GraphNode, F as Edge, H as GraphSearchResult, I as ILLMProvider, v as VectorDBProvider, g as LLMProvider, e as EmbeddingProvider, R as RAGConfig, s as UIConfig, J as UITransformationResponse, C as ChatMessage, b as ChatOptions, E as EmbedOptions, f as IngestDocument, c as ChatResponse } from './ILLMProvider-Y6aL5N8J.mjs';
2
- export { A as AuthMode, K as BarChartData, M as CarouselProduct, N as IRetriever, h as LatencyBreakdown, Q as LineChartDataPoint, S as MessageRole, X as MetricCardData, O as ObservabilityTrace, Y as PieChartData, Z as Product, i as ProjectAiSettings, j as ProjectAuthSettings, k as ProjectBrandingSettings, P as ProjectChatSettings, l as ProjectTelemetrySettings, m as ProjectWidgetSettings, o as RagMessage, p as RetrievalConfig, _ as RetrievalResult, q as RetrievedChunk, $ as RetrivoraChunkMetadata, a0 as RetrivoraIngestedDocument, a1 as ScatterPlotDataPoint, a2 as SuggestionsResponse, a3 as TableData, T as ThemeMode, r as TokenUsage, U as UseRagChatOptions, a as UseRagChatReturn, a4 as VisualizationType, W as WidgetPosition, x as WorkflowConfig, y as createDefaultProjectSettings, z as normalizeProjectSettings, B as projectSettingsToUiConfig } from './ILLMProvider-Y6aL5N8J.mjs';
3
- import { n as DecisionContext, p as IntentCategory, I as IRenderRule, F as RenderDecision, o as IRendererStrategy } from './BatchProcessor-BGslIR5l.mjs';
4
- export { U as ArchitectureCardProps, A as AuthenticationException, B as BatchOptions, e as BatchProcessor, f as BatchResult, g as ChartType, V as ChatViewportSize, C as ChatWidgetProps, a as ChatWindowProps, h as Chunk, i as ChunkOptions, c as ClientConfig, l as ConfigFetcher, b as ConfigProviderProps, m as ConfigurationException, W as DocumentChunker, D as DocumentUploadProps, E as EmbeddingFailedException, X as LicenseConfigResolver, L as LicenseTierConfig, q as LicenseValidationError, r as LicenseValidationRequest, s as LicenseValidationResponse, t as LicenseValidator, M as MessageBubbleProps, Y as Pipeline, Z as PipelineStep, P as ProductCardProps, d as ProductCarouselProps, u as ProviderCredentials, v as ProviderNotFoundException, _ as ProviderPill, w as RateLimitException, R as RemoteConfig, x as RemoteEmbeddingConfig, y as RemoteLLMConfig, z as RemoteVectorConfig, $ as RenderSectionDecision, G as RenderType, H as RetrievalException, J as Retrivora, K as RetrivoraError, N as RetrivoraErrorCode, O as SDKVersionUnsupportedError, Q as SDK_VERSION, a0 as Snippet, S as SourceCardProps, a1 as wrapError } from './BatchProcessor-BGslIR5l.mjs';
5
- import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-59CHg0V3.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-59CHg0V3.mjs';
1
+ import { V as VectorDBConfig, L as LLMConfig, f as EmbeddingConfig, p as RagConfig, v as UniversalRagConfig, w as UpsertDocument, y as VectorMatch, G as GraphDBConfig, H as GraphNode, J as Edge, K as GraphSearchResult, I as ILLMProvider, x as VectorDBProvider, i as LLMProvider, g as EmbeddingProvider, R as RAGConfig, u as UIConfig, U as UITransformationResponse, C as ChatMessage, d as ChatOptions, E as EmbedOptions, h as IngestDocument, e as ChatResponse } from './ILLMProvider-BYQd0Nys.mjs';
2
+ export { A as AuthMode, M as BarChartData, N as CarouselProduct, Q as IRetriever, j as LatencyBreakdown, S as LineChartDataPoint, X as MessageRole, Y as MetricCardData, O as ObservabilityTrace, Z as PieChartData, P as Product, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, c as ProjectChatSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, q as RagMessage, r as RetrievalConfig, _ as RetrievalResult, s as RetrievedChunk, $ as RetrivoraChunkMetadata, a0 as RetrivoraIngestedDocument, a1 as ScatterPlotDataPoint, a2 as SuggestionsResponse, a3 as TableData, T as ThemeMode, t as TokenUsage, a as UseRagChatOptions, b as UseRagChatReturn, a4 as VisualizationType, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-BYQd0Nys.mjs';
3
+ import { o as DecisionContext, q as IntentCategory, I as IRenderRule, G as RenderDecision, p as IRendererStrategy } from './BatchProcessor-BZhwvT6o.mjs';
4
+ export { V as ArchitectureCardProps, A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, e as ChatViewportSize, C as ChatWidgetProps, a as ChatWindowProps, i as Chunk, j as ChunkOptions, c as ClientConfig, m as ConfigFetcher, b as ConfigProviderProps, n as ConfigurationException, W as DocumentChunker, D as DocumentUploadProps, E as EmbeddingFailedException, X as LicenseConfigResolver, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, M as MessageBubbleProps, Y as Pipeline, Z as PipelineStep, P as ProductCardProps, d as ProductCarouselProps, v as ProviderCredentials, w as ProviderNotFoundException, _ as ProviderPill, x as RateLimitException, R as RemoteConfig, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, $ as RenderSectionDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, a0 as Snippet, S as SourceCardProps, a1 as wrapError } from './BatchProcessor-BZhwvT6o.mjs';
5
+ import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-BTLsJ0da.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-BTLsJ0da.mjs';
7
7
  import 'react';
8
8
  import 'next/server';
9
9
 
package/dist/server.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { V as VectorDBConfig, L as LLMConfig, d as EmbeddingConfig, n as RagConfig, t as UniversalRagConfig, u as UpsertDocument, w as VectorMatch, G as GraphDBConfig, D as GraphNode, F as Edge, H as GraphSearchResult, I as ILLMProvider, v as VectorDBProvider, g as LLMProvider, e as EmbeddingProvider, R as RAGConfig, s as UIConfig, J as UITransformationResponse, C as ChatMessage, b as ChatOptions, E as EmbedOptions, f as IngestDocument, c as ChatResponse } from './ILLMProvider-Y6aL5N8J.js';
2
- export { A as AuthMode, K as BarChartData, M as CarouselProduct, N as IRetriever, h as LatencyBreakdown, Q as LineChartDataPoint, S as MessageRole, X as MetricCardData, O as ObservabilityTrace, Y as PieChartData, Z as Product, i as ProjectAiSettings, j as ProjectAuthSettings, k as ProjectBrandingSettings, P as ProjectChatSettings, l as ProjectTelemetrySettings, m as ProjectWidgetSettings, o as RagMessage, p as RetrievalConfig, _ as RetrievalResult, q as RetrievedChunk, $ as RetrivoraChunkMetadata, a0 as RetrivoraIngestedDocument, a1 as ScatterPlotDataPoint, a2 as SuggestionsResponse, a3 as TableData, T as ThemeMode, r as TokenUsage, U as UseRagChatOptions, a as UseRagChatReturn, a4 as VisualizationType, W as WidgetPosition, x as WorkflowConfig, y as createDefaultProjectSettings, z as normalizeProjectSettings, B as projectSettingsToUiConfig } from './ILLMProvider-Y6aL5N8J.js';
3
- import { n as DecisionContext, p as IntentCategory, I as IRenderRule, F as RenderDecision, o as IRendererStrategy } from './BatchProcessor-C3gY6kZ0.js';
4
- export { U as ArchitectureCardProps, A as AuthenticationException, B as BatchOptions, e as BatchProcessor, f as BatchResult, g as ChartType, V as ChatViewportSize, C as ChatWidgetProps, a as ChatWindowProps, h as Chunk, i as ChunkOptions, c as ClientConfig, l as ConfigFetcher, b as ConfigProviderProps, m as ConfigurationException, W as DocumentChunker, D as DocumentUploadProps, E as EmbeddingFailedException, X as LicenseConfigResolver, L as LicenseTierConfig, q as LicenseValidationError, r as LicenseValidationRequest, s as LicenseValidationResponse, t as LicenseValidator, M as MessageBubbleProps, Y as Pipeline, Z as PipelineStep, P as ProductCardProps, d as ProductCarouselProps, u as ProviderCredentials, v as ProviderNotFoundException, _ as ProviderPill, w as RateLimitException, R as RemoteConfig, x as RemoteEmbeddingConfig, y as RemoteLLMConfig, z as RemoteVectorConfig, $ as RenderSectionDecision, G as RenderType, H as RetrievalException, J as Retrivora, K as RetrivoraError, N as RetrivoraErrorCode, O as SDKVersionUnsupportedError, Q as SDK_VERSION, a0 as Snippet, S as SourceCardProps, a1 as wrapError } from './BatchProcessor-C3gY6kZ0.js';
5
- import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-BgKRInpa.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-BgKRInpa.js';
1
+ import { V as VectorDBConfig, L as LLMConfig, f as EmbeddingConfig, p as RagConfig, v as UniversalRagConfig, w as UpsertDocument, y as VectorMatch, G as GraphDBConfig, H as GraphNode, J as Edge, K as GraphSearchResult, I as ILLMProvider, x as VectorDBProvider, i as LLMProvider, g as EmbeddingProvider, R as RAGConfig, u as UIConfig, U as UITransformationResponse, C as ChatMessage, d as ChatOptions, E as EmbedOptions, h as IngestDocument, e as ChatResponse } from './ILLMProvider-BYQd0Nys.js';
2
+ export { A as AuthMode, M as BarChartData, N as CarouselProduct, Q as IRetriever, j as LatencyBreakdown, S as LineChartDataPoint, X as MessageRole, Y as MetricCardData, O as ObservabilityTrace, Z as PieChartData, P as Product, k as ProjectAiSettings, l as ProjectAuthSettings, m as ProjectBrandingSettings, c as ProjectChatSettings, n as ProjectTelemetrySettings, o as ProjectWidgetSettings, q as RagMessage, r as RetrievalConfig, _ as RetrievalResult, s as RetrievedChunk, $ as RetrivoraChunkMetadata, a0 as RetrivoraIngestedDocument, a1 as ScatterPlotDataPoint, a2 as SuggestionsResponse, a3 as TableData, T as ThemeMode, t as TokenUsage, a as UseRagChatOptions, b as UseRagChatReturn, a4 as VisualizationType, W as WidgetPosition, z as WorkflowConfig, B as createDefaultProjectSettings, D as normalizeProjectSettings, F as projectSettingsToUiConfig } from './ILLMProvider-BYQd0Nys.js';
3
+ import { o as DecisionContext, q as IntentCategory, I as IRenderRule, G as RenderDecision, p as IRendererStrategy } from './BatchProcessor-DlAkfGbv.js';
4
+ export { V as ArchitectureCardProps, A as AuthenticationException, B as BatchOptions, f as BatchProcessor, g as BatchResult, h as ChartType, e as ChatViewportSize, C as ChatWidgetProps, a as ChatWindowProps, i as Chunk, j as ChunkOptions, c as ClientConfig, m as ConfigFetcher, b as ConfigProviderProps, n as ConfigurationException, W as DocumentChunker, D as DocumentUploadProps, E as EmbeddingFailedException, X as LicenseConfigResolver, L as LicenseTierConfig, r as LicenseValidationError, s as LicenseValidationRequest, t as LicenseValidationResponse, u as LicenseValidator, M as MessageBubbleProps, Y as Pipeline, Z as PipelineStep, P as ProductCardProps, d as ProductCarouselProps, v as ProviderCredentials, w as ProviderNotFoundException, _ as ProviderPill, x as RateLimitException, R as RemoteConfig, y as RemoteEmbeddingConfig, z as RemoteLLMConfig, F as RemoteVectorConfig, $ as RenderSectionDecision, H as RenderType, J as RetrievalException, K as Retrivora, N as RetrivoraError, O as RetrivoraErrorCode, Q as SDKVersionUnsupportedError, T as SDK_VERSION, a0 as Snippet, S as SourceCardProps, a1 as wrapError } from './BatchProcessor-DlAkfGbv.js';
5
+ import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-DtDY4Dwa.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-DtDY4Dwa.js';
7
7
  import 'react';
8
8
  import 'next/server';
9
9
 
package/dist/server.js CHANGED
@@ -332,7 +332,7 @@ var init_package = __esm({
332
332
  "package.json"() {
333
333
  package_default = {
334
334
  name: "@retrivora-ai/rag-engine",
335
- version: "2.4.6",
335
+ version: "2.4.8",
336
336
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
337
337
  author: "Abhinav Alkuchi",
338
338
  license: "UNLICENSED",
@@ -539,10 +539,10 @@ var init_ConfigFetcher = __esm({
539
539
  const url = `${baseUrl}/api/v1/config?projectId=${encodeURIComponent(projectId)}`;
540
540
  const res = await fetch(url, {
541
541
  method: "GET",
542
- headers: __spreadValues({
542
+ headers: __spreadValues(__spreadValues({
543
543
  "Content-Type": "application/json",
544
544
  "x-sdk-version": SDK_VERSION
545
- }, licenseKey ? { "x-license-key": licenseKey } : {})
545
+ }, licenseKey ? { "x-license-key": licenseKey } : {}), projectId ? { "x-project-id": projectId } : {})
546
546
  });
547
547
  if (!res.ok) {
548
548
  console.warn(`[ConfigFetcher] Error text: ${await res.text()}`);
@@ -594,9 +594,9 @@ var init_ConfigFetcher = __esm({
594
594
  const credUrl = `${baseUrl}/api/v1/credentials`;
595
595
  const credRes = await fetch(credUrl, {
596
596
  method: "POST",
597
- headers: {
597
+ headers: __spreadValues(__spreadValues({
598
598
  "Content-Type": "application/json"
599
- },
599
+ }, licenseKey ? { "x-license-key": licenseKey } : {}), fetchedProjectId ? { "x-project-id": fetchedProjectId } : {}),
600
600
  body: JSON.stringify({ licenseKey, projectId: fetchedProjectId })
601
601
  });
602
602
  if (credRes.ok) {
@@ -782,7 +782,10 @@ var init_PineconeProvider = __esm({
782
782
  if (!this.licenseKey) throw new Error("[PineconeProvider] Cannot execute vector operation: Missing API key and License key.");
783
783
  const res = await fetch(`${this.getControlPlaneUrl()}/api/v1/vectors/upsert`, {
784
784
  method: "POST",
785
- headers: { "Content-Type": "application/json", "x-license-key": this.licenseKey },
785
+ headers: __spreadValues({
786
+ "Content-Type": "application/json",
787
+ "x-license-key": this.licenseKey
788
+ }, this.projectId ? { "x-project-id": this.projectId } : {}),
786
789
  body: JSON.stringify({
787
790
  projectId: this.projectId,
788
791
  indexName: this.indexName,
@@ -817,7 +820,10 @@ var init_PineconeProvider = __esm({
817
820
  });
818
821
  const res = await fetch(`${this.getControlPlaneUrl()}/api/v1/vectors/upsert`, {
819
822
  method: "POST",
820
- headers: { "Content-Type": "application/json", "x-license-key": this.licenseKey },
823
+ headers: __spreadValues({
824
+ "Content-Type": "application/json",
825
+ "x-license-key": this.licenseKey
826
+ }, this.projectId ? { "x-project-id": this.projectId } : {}),
821
827
  body: JSON.stringify({
822
828
  projectId: this.projectId,
823
829
  indexName: this.indexName,
@@ -849,7 +855,10 @@ var init_PineconeProvider = __esm({
849
855
  if (!this.licenseKey) throw new Error("[PineconeProvider] Cannot execute vector operation: Missing API key and License key.");
850
856
  const res = await fetch(`${this.getControlPlaneUrl()}/api/v1/vectors/query`, {
851
857
  method: "POST",
852
- headers: { "Content-Type": "application/json", "x-license-key": this.licenseKey },
858
+ headers: __spreadValues({
859
+ "Content-Type": "application/json",
860
+ "x-license-key": this.licenseKey
861
+ }, this.projectId ? { "x-project-id": this.projectId } : {}),
853
862
  body: JSON.stringify({
854
863
  projectId: this.projectId,
855
864
  indexName: this.indexName,
package/dist/server.mjs CHANGED
@@ -326,7 +326,7 @@ var init_package = __esm({
326
326
  "package.json"() {
327
327
  package_default = {
328
328
  name: "@retrivora-ai/rag-engine",
329
- version: "2.4.6",
329
+ version: "2.4.8",
330
330
  description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
331
331
  author: "Abhinav Alkuchi",
332
332
  license: "UNLICENSED",
@@ -533,10 +533,10 @@ var init_ConfigFetcher = __esm({
533
533
  const url = `${baseUrl}/api/v1/config?projectId=${encodeURIComponent(projectId)}`;
534
534
  const res = await fetch(url, {
535
535
  method: "GET",
536
- headers: __spreadValues({
536
+ headers: __spreadValues(__spreadValues({
537
537
  "Content-Type": "application/json",
538
538
  "x-sdk-version": SDK_VERSION
539
- }, licenseKey ? { "x-license-key": licenseKey } : {})
539
+ }, licenseKey ? { "x-license-key": licenseKey } : {}), projectId ? { "x-project-id": projectId } : {})
540
540
  });
541
541
  if (!res.ok) {
542
542
  console.warn(`[ConfigFetcher] Error text: ${await res.text()}`);
@@ -588,9 +588,9 @@ var init_ConfigFetcher = __esm({
588
588
  const credUrl = `${baseUrl}/api/v1/credentials`;
589
589
  const credRes = await fetch(credUrl, {
590
590
  method: "POST",
591
- headers: {
591
+ headers: __spreadValues(__spreadValues({
592
592
  "Content-Type": "application/json"
593
- },
593
+ }, licenseKey ? { "x-license-key": licenseKey } : {}), fetchedProjectId ? { "x-project-id": fetchedProjectId } : {}),
594
594
  body: JSON.stringify({ licenseKey, projectId: fetchedProjectId })
595
595
  });
596
596
  if (credRes.ok) {
@@ -776,7 +776,10 @@ var init_PineconeProvider = __esm({
776
776
  if (!this.licenseKey) throw new Error("[PineconeProvider] Cannot execute vector operation: Missing API key and License key.");
777
777
  const res = await fetch(`${this.getControlPlaneUrl()}/api/v1/vectors/upsert`, {
778
778
  method: "POST",
779
- headers: { "Content-Type": "application/json", "x-license-key": this.licenseKey },
779
+ headers: __spreadValues({
780
+ "Content-Type": "application/json",
781
+ "x-license-key": this.licenseKey
782
+ }, this.projectId ? { "x-project-id": this.projectId } : {}),
780
783
  body: JSON.stringify({
781
784
  projectId: this.projectId,
782
785
  indexName: this.indexName,
@@ -811,7 +814,10 @@ var init_PineconeProvider = __esm({
811
814
  });
812
815
  const res = await fetch(`${this.getControlPlaneUrl()}/api/v1/vectors/upsert`, {
813
816
  method: "POST",
814
- headers: { "Content-Type": "application/json", "x-license-key": this.licenseKey },
817
+ headers: __spreadValues({
818
+ "Content-Type": "application/json",
819
+ "x-license-key": this.licenseKey
820
+ }, this.projectId ? { "x-project-id": this.projectId } : {}),
815
821
  body: JSON.stringify({
816
822
  projectId: this.projectId,
817
823
  indexName: this.indexName,
@@ -843,7 +849,10 @@ var init_PineconeProvider = __esm({
843
849
  if (!this.licenseKey) throw new Error("[PineconeProvider] Cannot execute vector operation: Missing API key and License key.");
844
850
  const res = await fetch(`${this.getControlPlaneUrl()}/api/v1/vectors/query`, {
845
851
  method: "POST",
846
- headers: { "Content-Type": "application/json", "x-license-key": this.licenseKey },
852
+ headers: __spreadValues({
853
+ "Content-Type": "application/json",
854
+ "x-license-key": this.licenseKey
855
+ }, this.projectId ? { "x-project-id": this.projectId } : {}),
847
856
  body: JSON.stringify({
848
857
  projectId: this.projectId,
849
858
  indexName: this.indexName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retrivora-ai/rag-engine",
3
- "version": "2.4.6",
3
+ "version": "2.4.8",
4
4
  "description": "Retrivora AI is a plug-and-play AI engine for RAG chat experiences — generic vector DB + LLM provider, embeddable or standalone.",
5
5
  "author": "Abhinav Alkuchi",
6
6
  "license": "UNLICENSED",