@retrivora-ai/rag-engine 2.4.5 → 2.4.6
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/README.md +22 -0
- package/dist/{BatchProcessor-Csy_K1qQ.d.mts → BatchProcessor-BGslIR5l.d.mts} +63 -4
- package/dist/{BatchProcessor-Dg18zZGk.d.ts → BatchProcessor-C3gY6kZ0.d.ts} +63 -4
- package/dist/handlers/index.js +667 -859
- package/dist/handlers/index.mjs +677 -859
- package/dist/index.css +5 -0
- package/dist/index.d.mts +3 -27
- package/dist/index.d.ts +3 -27
- package/dist/index.js +80 -34
- package/dist/index.min.css +1 -1
- package/dist/index.mjs +80 -34
- package/dist/server.d.mts +21 -7
- package/dist/server.d.ts +21 -7
- package/dist/server.js +729 -897
- package/dist/server.mjs +739 -897
- package/package.json +11 -2
package/dist/index.css
CHANGED
|
@@ -1999,6 +1999,11 @@
|
|
|
1999
1999
|
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
2000
2000
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
2001
2001
|
}
|
|
2002
|
+
.transition {
|
|
2003
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
2004
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
2005
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
2006
|
+
}
|
|
2002
2007
|
.transition-all {
|
|
2003
2008
|
transition-property: all;
|
|
2004
2009
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, R as RemoteConfig } from './BatchProcessor-
|
|
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
|
|
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, R as RemoteConfig } from './BatchProcessor-BGslIR5l.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 CircuitBreaker, k as CircuitBreakerOptions, l as ConfigFetcher, m as ConfigurationException, n as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, o as IRendererStrategy, p as IntentCategory, L as LicenseTierConfig, q as LicenseValidationError, r as LicenseValidationRequest, s as LicenseValidationResponse, t as LicenseValidator, u as ProviderCredentials, v as ProviderNotFoundException, w as RateLimitException, x as RemoteEmbeddingConfig, y as RemoteLLMConfig, z as RemoteVectorConfig, F as RenderDecision, G as RenderType, H as RetrievalException, J as Retrivora, K as RetrivoraError, N as RetrivoraErrorCode, O as SDKVersionUnsupportedError, Q as SDK_VERSION, T as isTransientError } from './BatchProcessor-BGslIR5l.mjs';
|
|
4
4
|
import { O as ObservabilityTrace, U as UseRagChatOptions, a as UseRagChatReturn, P as ProjectChatSettings } from './ILLMProvider-Y6aL5N8J.mjs';
|
|
5
5
|
export { A as AuthMode, 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, i as ProjectAiSettings, j as ProjectAuthSettings, k as ProjectBrandingSettings, l as ProjectTelemetrySettings, m as ProjectWidgetSettings, R as RAGConfig, n as RagConfig, o as RagMessage, p as RetrievalConfig, q as RetrievedChunk, T as ThemeMode, r as TokenUsage, s as UIConfig, t as UniversalRagConfig, u as UpsertDocument, V as VectorDBConfig, v as VectorDBProvider, w as VectorMatch, W as WidgetPosition, x as WorkflowConfig, y as createDefaultProjectSettings, z as normalizeProjectSettings, B as projectSettingsToUiConfig } from './ILLMProvider-Y6aL5N8J.mjs';
|
|
6
6
|
import 'react';
|
|
@@ -98,28 +98,4 @@ declare function useProjectSettings(projectId: string, options?: UseProjectSetti
|
|
|
98
98
|
*/
|
|
99
99
|
declare function addSynonyms(customSynonyms: Record<string, string[]>): void;
|
|
100
100
|
|
|
101
|
-
type
|
|
102
|
-
interface CircuitBreakerOptions {
|
|
103
|
-
failureThreshold?: number;
|
|
104
|
-
resetTimeoutMs?: number;
|
|
105
|
-
halfOpenMaxCalls?: number;
|
|
106
|
-
}
|
|
107
|
-
declare class CircuitBreaker {
|
|
108
|
-
private state;
|
|
109
|
-
private failureCount;
|
|
110
|
-
private successCount;
|
|
111
|
-
private lastFailureAt;
|
|
112
|
-
private halfOpenCalls;
|
|
113
|
-
private readonly failureThreshold;
|
|
114
|
-
private readonly resetTimeoutMs;
|
|
115
|
-
private readonly halfOpenMaxCalls;
|
|
116
|
-
constructor(options?: CircuitBreakerOptions);
|
|
117
|
-
record(success: boolean): void;
|
|
118
|
-
canExecute(): boolean;
|
|
119
|
-
wrap<T>(fn: () => Promise<T>): Promise<T>;
|
|
120
|
-
getState(): CircuitState;
|
|
121
|
-
getFailureCount(): number;
|
|
122
|
-
reset(): void;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export { ChatWidget, ChatWidgetProps, ChatWindow, ChatWindowProps, CircuitBreaker, type CircuitBreakerOptions, ClientConfig, CodeViewer, ConfigProvider, DocumentUpload, DocumentUploadProps, MessageBubble, MessageBubbleProps, ObservabilityPanel, ObservabilityTrace, ProductCard, ProductCardProps, ProductCarousel, ProductCarouselProps, ProjectChatSettings, RemoteConfig, SourceCard, SourceCardProps, type UseProjectSettingsOptions, type UseProjectSettingsReturn, UseRagChatOptions, UseRagChatReturn, addSynonyms, useConfig, useProjectSettings, useRagChat };
|
|
101
|
+
export { ChatWidget, ChatWidgetProps, ChatWindow, ChatWindowProps, ClientConfig, CodeViewer, ConfigProvider, DocumentUpload, DocumentUploadProps, MessageBubble, MessageBubbleProps, ObservabilityPanel, ObservabilityTrace, ProductCard, ProductCardProps, ProductCarousel, ProductCarouselProps, ProjectChatSettings, RemoteConfig, SourceCard, SourceCardProps, type UseProjectSettingsOptions, type UseProjectSettingsReturn, UseRagChatOptions, UseRagChatReturn, addSynonyms, useConfig, useProjectSettings, useRagChat };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, R as RemoteConfig } from './BatchProcessor-
|
|
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
|
|
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, R as RemoteConfig } from './BatchProcessor-C3gY6kZ0.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 CircuitBreaker, k as CircuitBreakerOptions, l as ConfigFetcher, m as ConfigurationException, n as DecisionContext, E as EmbeddingFailedException, I as IRenderRule, o as IRendererStrategy, p as IntentCategory, L as LicenseTierConfig, q as LicenseValidationError, r as LicenseValidationRequest, s as LicenseValidationResponse, t as LicenseValidator, u as ProviderCredentials, v as ProviderNotFoundException, w as RateLimitException, x as RemoteEmbeddingConfig, y as RemoteLLMConfig, z as RemoteVectorConfig, F as RenderDecision, G as RenderType, H as RetrievalException, J as Retrivora, K as RetrivoraError, N as RetrivoraErrorCode, O as SDKVersionUnsupportedError, Q as SDK_VERSION, T as isTransientError } from './BatchProcessor-C3gY6kZ0.js';
|
|
4
4
|
import { O as ObservabilityTrace, U as UseRagChatOptions, a as UseRagChatReturn, P as ProjectChatSettings } from './ILLMProvider-Y6aL5N8J.js';
|
|
5
5
|
export { A as AuthMode, 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, i as ProjectAiSettings, j as ProjectAuthSettings, k as ProjectBrandingSettings, l as ProjectTelemetrySettings, m as ProjectWidgetSettings, R as RAGConfig, n as RagConfig, o as RagMessage, p as RetrievalConfig, q as RetrievedChunk, T as ThemeMode, r as TokenUsage, s as UIConfig, t as UniversalRagConfig, u as UpsertDocument, V as VectorDBConfig, v as VectorDBProvider, w as VectorMatch, W as WidgetPosition, x as WorkflowConfig, y as createDefaultProjectSettings, z as normalizeProjectSettings, B as projectSettingsToUiConfig } from './ILLMProvider-Y6aL5N8J.js';
|
|
6
6
|
import 'react';
|
|
@@ -98,28 +98,4 @@ declare function useProjectSettings(projectId: string, options?: UseProjectSetti
|
|
|
98
98
|
*/
|
|
99
99
|
declare function addSynonyms(customSynonyms: Record<string, string[]>): void;
|
|
100
100
|
|
|
101
|
-
type
|
|
102
|
-
interface CircuitBreakerOptions {
|
|
103
|
-
failureThreshold?: number;
|
|
104
|
-
resetTimeoutMs?: number;
|
|
105
|
-
halfOpenMaxCalls?: number;
|
|
106
|
-
}
|
|
107
|
-
declare class CircuitBreaker {
|
|
108
|
-
private state;
|
|
109
|
-
private failureCount;
|
|
110
|
-
private successCount;
|
|
111
|
-
private lastFailureAt;
|
|
112
|
-
private halfOpenCalls;
|
|
113
|
-
private readonly failureThreshold;
|
|
114
|
-
private readonly resetTimeoutMs;
|
|
115
|
-
private readonly halfOpenMaxCalls;
|
|
116
|
-
constructor(options?: CircuitBreakerOptions);
|
|
117
|
-
record(success: boolean): void;
|
|
118
|
-
canExecute(): boolean;
|
|
119
|
-
wrap<T>(fn: () => Promise<T>): Promise<T>;
|
|
120
|
-
getState(): CircuitState;
|
|
121
|
-
getFailureCount(): number;
|
|
122
|
-
reset(): void;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export { ChatWidget, ChatWidgetProps, ChatWindow, ChatWindowProps, CircuitBreaker, type CircuitBreakerOptions, ClientConfig, CodeViewer, ConfigProvider, DocumentUpload, DocumentUploadProps, MessageBubble, MessageBubbleProps, ObservabilityPanel, ObservabilityTrace, ProductCard, ProductCardProps, ProductCarousel, ProductCarouselProps, ProjectChatSettings, RemoteConfig, SourceCard, SourceCardProps, type UseProjectSettingsOptions, type UseProjectSettingsReturn, UseRagChatOptions, UseRagChatReturn, addSynonyms, useConfig, useProjectSettings, useRagChat };
|
|
101
|
+
export { ChatWidget, ChatWidgetProps, ChatWindow, ChatWindowProps, ClientConfig, CodeViewer, ConfigProvider, DocumentUpload, DocumentUploadProps, MessageBubble, MessageBubbleProps, ObservabilityPanel, ObservabilityTrace, ProductCard, ProductCardProps, ProductCarousel, ProductCarouselProps, ProjectChatSettings, RemoteConfig, SourceCard, SourceCardProps, type UseProjectSettingsOptions, type UseProjectSettingsReturn, UseRagChatOptions, UseRagChatReturn, addSynonyms, useConfig, useProjectSettings, useRagChat };
|