@retrivora-ai/rag-engine 2.6.3 → 2.6.5
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/{ILLMProvider-CzXcTA6d.d.mts → ILLMProvider-Csukdic7.d.mts} +12 -0
- package/dist/{ILLMProvider-CzXcTA6d.d.ts → ILLMProvider-Csukdic7.d.ts} +12 -0
- package/dist/{PineconeProvider-22RF2QPF.mjs → PineconeProvider-RDXBD3PE.mjs} +3 -3
- package/dist/{chunk-QUY3E6HJ.mjs → chunk-4NRSH3VX.mjs} +1 -1
- package/dist/{chunk-3E4GZGDX.mjs → chunk-7PVV4TV2.mjs} +471 -42
- package/dist/{chunk-N3TI27LG.mjs → chunk-PLODIWBN.mjs} +1 -1
- package/dist/{chunk-AT4TFUQN.mjs → chunk-SYI7TYRP.mjs} +1 -1
- package/dist/{chunk-LFNV6DEL.mjs → chunk-UB4IVERI.mjs} +1 -1
- package/dist/handlers/index.d.mts +2 -2
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.js +457 -41
- package/dist/handlers/index.mjs +2 -2
- package/dist/{index-BST9Gzsv.d.mts → index-Bzpu_Ujt.d.mts} +3 -1
- package/dist/{index-BZ_rR6V8.d.ts → index-CAN5ZTWN.d.ts} +1 -1
- package/dist/{index-BBbt5A2y.d.mts → index-CYhWkWaX.d.mts} +1 -1
- package/dist/{index-qLvtMUr-.d.ts → index-DYgeV_V5.d.ts} +3 -1
- package/dist/index.css +13 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +11 -2
- package/dist/index.min.css +1 -1
- package/dist/index.mjs +13 -4
- package/dist/server.d.mts +179 -35
- package/dist/server.d.ts +179 -35
- package/dist/server.js +485 -43
- package/dist/server.mjs +33 -7
- package/package.json +1 -1
- package/dist/PineconeProvider-HBBIXLT3.mjs +0 -10
- package/dist/chunk-NWYE4Q7B.mjs +0 -334
- package/dist/chunk-OJMAT4EG.mjs +0 -219
- package/dist/chunk-QKZM3RSJ.mjs +0 -10851
- package/dist/chunk-WOJCOTXI.mjs +0 -281
- package/dist/chunk-XP6NJMX4.mjs +0 -168
package/dist/handlers/index.mjs
CHANGED
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
sseObservabilityFrame,
|
|
17
17
|
sseTextFrame,
|
|
18
18
|
sseUIFrame
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-7PVV4TV2.mjs";
|
|
20
20
|
import "../chunk-XYBKDJDW.mjs";
|
|
21
21
|
import "../chunk-SG6XYLQE.mjs";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-4NRSH3VX.mjs";
|
|
23
23
|
import "../chunk-BEPLYQBS.mjs";
|
|
24
24
|
import "../chunk-UT6SZZEC.mjs";
|
|
25
25
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
|
|
2
|
-
import { W as WidgetPosition, P as Product, U as UIConfig, a as ProjectChatSettings, R as RagMessage, V as VectorMatch, b as RagConfig, I as ILLMProvider, c as IngestDocument, C as ChatMessage, d as ChatResponse, e as RetrievalResult, f as UniversalRagConfig, g as UITransformationResponse, L as LLMConfig, E as EmbeddingConfig, h as VectorDBConfig } from './ILLMProvider-
|
|
2
|
+
import { W as WidgetPosition, P as Product, U as UIConfig, a as ProjectChatSettings, R as RagMessage, V as VectorMatch, b as RagConfig, I as ILLMProvider, c as IngestDocument, C as ChatMessage, d as ChatResponse, e as RetrievalResult, f as UniversalRagConfig, g as UITransformationResponse, L as LLMConfig, E as EmbeddingConfig, h as VectorDBConfig } from './ILLMProvider-Csukdic7.mjs';
|
|
3
3
|
|
|
4
4
|
interface ArchitectureCardProps {
|
|
5
5
|
icon: ReactNode;
|
|
@@ -396,6 +396,8 @@ declare class Pipeline {
|
|
|
396
396
|
private initialised;
|
|
397
397
|
/** Namespace-specific static cold context cache for CAG */
|
|
398
398
|
private coldContexts;
|
|
399
|
+
private semanticCache;
|
|
400
|
+
private docChunkHashes;
|
|
399
401
|
constructor(config: RagConfig);
|
|
400
402
|
/**
|
|
401
403
|
* Expose the underlying LLM provider (set after initialize()).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextRequest } from 'next/server';
|
|
2
|
-
import { b as RagConfig, I as ILLMProvider, C as ChatMessage, d as ChatResponse, c as IngestDocument } from './ILLMProvider-
|
|
2
|
+
import { b as RagConfig, I as ILLMProvider, C as ChatMessage, d as ChatResponse, c as IngestDocument } from './ILLMProvider-Csukdic7.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Shared options accepted by every handler factory.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NextRequest } from 'next/server';
|
|
2
|
-
import { b as RagConfig, I as ILLMProvider, C as ChatMessage, d as ChatResponse, c as IngestDocument } from './ILLMProvider-
|
|
2
|
+
import { b as RagConfig, I as ILLMProvider, C as ChatMessage, d as ChatResponse, c as IngestDocument } from './ILLMProvider-Csukdic7.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Shared options accepted by every handler factory.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
|
|
2
|
-
import { W as WidgetPosition, P as Product, U as UIConfig, a as ProjectChatSettings, R as RagMessage, V as VectorMatch, b as RagConfig, I as ILLMProvider, c as IngestDocument, C as ChatMessage, d as ChatResponse, e as RetrievalResult, f as UniversalRagConfig, g as UITransformationResponse, L as LLMConfig, E as EmbeddingConfig, h as VectorDBConfig } from './ILLMProvider-
|
|
2
|
+
import { W as WidgetPosition, P as Product, U as UIConfig, a as ProjectChatSettings, R as RagMessage, V as VectorMatch, b as RagConfig, I as ILLMProvider, c as IngestDocument, C as ChatMessage, d as ChatResponse, e as RetrievalResult, f as UniversalRagConfig, g as UITransformationResponse, L as LLMConfig, E as EmbeddingConfig, h as VectorDBConfig } from './ILLMProvider-Csukdic7.js';
|
|
3
3
|
|
|
4
4
|
interface ArchitectureCardProps {
|
|
5
5
|
icon: ReactNode;
|
|
@@ -396,6 +396,8 @@ declare class Pipeline {
|
|
|
396
396
|
private initialised;
|
|
397
397
|
/** Namespace-specific static cold context cache for CAG */
|
|
398
398
|
private coldContexts;
|
|
399
|
+
private semanticCache;
|
|
400
|
+
private docChunkHashes;
|
|
399
401
|
constructor(config: RagConfig);
|
|
400
402
|
/**
|
|
401
403
|
* Expose the underlying LLM provider (set after initialize()).
|
package/dist/index.css
CHANGED
|
@@ -120,6 +120,7 @@
|
|
|
120
120
|
--color-black: #000;
|
|
121
121
|
--color-white: #fff;
|
|
122
122
|
--spacing: 0.25rem;
|
|
123
|
+
--container-xs: 20rem;
|
|
123
124
|
--container-sm: 24rem;
|
|
124
125
|
--container-md: 28rem;
|
|
125
126
|
--container-2xl: 42rem;
|
|
@@ -740,6 +741,9 @@
|
|
|
740
741
|
.w-9 {
|
|
741
742
|
width: calc(var(--spacing) * 9);
|
|
742
743
|
}
|
|
744
|
+
.w-10 {
|
|
745
|
+
width: calc(var(--spacing) * 10);
|
|
746
|
+
}
|
|
743
747
|
.w-11 {
|
|
744
748
|
width: calc(var(--spacing) * 11);
|
|
745
749
|
}
|
|
@@ -821,6 +825,9 @@
|
|
|
821
825
|
.max-w-sm {
|
|
822
826
|
max-width: var(--container-sm);
|
|
823
827
|
}
|
|
828
|
+
.max-w-xs {
|
|
829
|
+
max-width: var(--container-xs);
|
|
830
|
+
}
|
|
824
831
|
.min-w-0 {
|
|
825
832
|
min-width: 0px;
|
|
826
833
|
}
|
|
@@ -1429,6 +1436,12 @@
|
|
|
1429
1436
|
.bg-rose-500 {
|
|
1430
1437
|
background-color: var(--color-rose-500);
|
|
1431
1438
|
}
|
|
1439
|
+
.bg-rose-500\/10 {
|
|
1440
|
+
background-color: color-mix(in srgb, oklch(64.5% 0.246 16.439) 10%, transparent);
|
|
1441
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
1442
|
+
background-color: color-mix(in oklab, var(--color-rose-500) 10%, transparent);
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1432
1445
|
.bg-rose-500\/80 {
|
|
1433
1446
|
background-color: color-mix(in srgb, oklch(64.5% 0.246 16.439) 80%, transparent);
|
|
1434
1447
|
@supports (color: color-mix(in lab, red, red)) {
|
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-
|
|
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-
|
|
4
|
-
import { O as ObservabilityTrace, P as Product, g as UITransformationResponse, i as UseRagChatOptions, j as UseRagChatReturn, a as ProjectChatSettings } from './ILLMProvider-
|
|
5
|
-
export { A as AuthMode, C as ChatMessage, k as ChatOptions, d as ChatResponse, l as EmbedOptions, E as EmbeddingConfig, m as EmbeddingProvider, I as ILLMProvider, c as IngestDocument, L as LLMConfig, n as LLMProvider, o as LatencyBreakdown, p as ProjectAiSettings, q as ProjectAuthSettings, r as ProjectBrandingSettings, s as ProjectTelemetrySettings, t as ProjectWidgetSettings, u as RAGConfig, b as RagConfig, R as RagMessage, v as RetrievalConfig, w as RetrievedChunk, T as ThemeMode, x as TokenUsage, U as UIConfig, f as UniversalRagConfig, y as UpsertDocument, h as VectorDBConfig, z as VectorDBProvider, V as VectorMatch, W as WidgetPosition, B as WorkflowConfig, D as createDefaultProjectSettings, F as normalizeProjectSettings, G as projectSettingsToUiConfig } from './ILLMProvider-
|
|
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-Bzpu_Ujt.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-Bzpu_Ujt.mjs';
|
|
4
|
+
import { O as ObservabilityTrace, P as Product, g as UITransformationResponse, i as UseRagChatOptions, j as UseRagChatReturn, a as ProjectChatSettings } from './ILLMProvider-Csukdic7.mjs';
|
|
5
|
+
export { A as AuthMode, C as ChatMessage, k as ChatOptions, d as ChatResponse, l as EmbedOptions, E as EmbeddingConfig, m as EmbeddingProvider, I as ILLMProvider, c as IngestDocument, L as LLMConfig, n as LLMProvider, o as LatencyBreakdown, p as ProjectAiSettings, q as ProjectAuthSettings, r as ProjectBrandingSettings, s as ProjectTelemetrySettings, t as ProjectWidgetSettings, u as RAGConfig, b as RagConfig, R as RagMessage, v as RetrievalConfig, w as RetrievedChunk, T as ThemeMode, x as TokenUsage, U as UIConfig, f as UniversalRagConfig, y as UpsertDocument, h as VectorDBConfig, z as VectorDBProvider, V as VectorMatch, W as WidgetPosition, B as WorkflowConfig, D as createDefaultProjectSettings, F as normalizeProjectSettings, G as projectSettingsToUiConfig } from './ILLMProvider-Csukdic7.mjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* ChatWidget — Floating Action Button (FAB) that toggles the chat window.
|
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-
|
|
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-
|
|
4
|
-
import { O as ObservabilityTrace, P as Product, g as UITransformationResponse, i as UseRagChatOptions, j as UseRagChatReturn, a as ProjectChatSettings } from './ILLMProvider-
|
|
5
|
-
export { A as AuthMode, C as ChatMessage, k as ChatOptions, d as ChatResponse, l as EmbedOptions, E as EmbeddingConfig, m as EmbeddingProvider, I as ILLMProvider, c as IngestDocument, L as LLMConfig, n as LLMProvider, o as LatencyBreakdown, p as ProjectAiSettings, q as ProjectAuthSettings, r as ProjectBrandingSettings, s as ProjectTelemetrySettings, t as ProjectWidgetSettings, u as RAGConfig, b as RagConfig, R as RagMessage, v as RetrievalConfig, w as RetrievedChunk, T as ThemeMode, x as TokenUsage, U as UIConfig, f as UniversalRagConfig, y as UpsertDocument, h as VectorDBConfig, z as VectorDBProvider, V as VectorMatch, W as WidgetPosition, B as WorkflowConfig, D as createDefaultProjectSettings, F as normalizeProjectSettings, G as projectSettingsToUiConfig } from './ILLMProvider-
|
|
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-DYgeV_V5.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-DYgeV_V5.js';
|
|
4
|
+
import { O as ObservabilityTrace, P as Product, g as UITransformationResponse, i as UseRagChatOptions, j as UseRagChatReturn, a as ProjectChatSettings } from './ILLMProvider-Csukdic7.js';
|
|
5
|
+
export { A as AuthMode, C as ChatMessage, k as ChatOptions, d as ChatResponse, l as EmbedOptions, E as EmbeddingConfig, m as EmbeddingProvider, I as ILLMProvider, c as IngestDocument, L as LLMConfig, n as LLMProvider, o as LatencyBreakdown, p as ProjectAiSettings, q as ProjectAuthSettings, r as ProjectBrandingSettings, s as ProjectTelemetrySettings, t as ProjectWidgetSettings, u as RAGConfig, b as RagConfig, R as RagMessage, v as RetrievalConfig, w as RetrievedChunk, T as ThemeMode, x as TokenUsage, U as UIConfig, f as UniversalRagConfig, y as UpsertDocument, h as VectorDBConfig, z as VectorDBProvider, V as VectorMatch, W as WidgetPosition, B as WorkflowConfig, D as createDefaultProjectSettings, F as normalizeProjectSettings, G as projectSettingsToUiConfig } from './ILLMProvider-Csukdic7.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* ChatWidget — Floating Action Button (FAB) that toggles the chat window.
|