@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/{BatchProcessor-BGslIR5l.d.mts → BatchProcessor-BZhwvT6o.d.mts} +2 -2
- package/dist/{BatchProcessor-C3gY6kZ0.d.ts → BatchProcessor-DlAkfGbv.d.ts} +2 -2
- package/dist/{ILLMProvider-Y6aL5N8J.d.mts → ILLMProvider-BYQd0Nys.d.mts} +1 -1
- package/dist/{ILLMProvider-Y6aL5N8J.d.ts → ILLMProvider-BYQd0Nys.d.ts} +1 -1
- package/dist/handlers/index.d.mts +2 -2
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.js +17 -8
- package/dist/handlers/index.mjs +17 -8
- package/dist/{index-59CHg0V3.d.mts → index-BTLsJ0da.d.mts} +1 -1
- package/dist/{index-BgKRInpa.d.ts → index-DtDY4Dwa.d.ts} +1 -1
- package/dist/index.css +46 -0
- package/dist/index.d.mts +74 -6
- package/dist/index.d.ts +74 -6
- package/dist/index.js +658 -355
- package/dist/index.min.css +1 -1
- package/dist/index.mjs +622 -322
- package/dist/server.d.mts +6 -6
- package/dist/server.d.ts +6 -6
- package/dist/server.js +17 -8
- package/dist/server.mjs +17 -8
- package/package.json +1 -1
package/dist/server.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { V as VectorDBConfig, L as LLMConfig,
|
|
2
|
-
export { A as AuthMode,
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-
|
|
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-
|
|
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,
|
|
2
|
-
export { A as AuthMode,
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
5
|
-
import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-
|
|
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-
|
|
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.
|
|
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: {
|
|
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: {
|
|
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: {
|
|
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.
|
|
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: {
|
|
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: {
|
|
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: {
|
|
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.
|
|
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",
|