@retrivora-ai/rag-engine 2.3.6 → 2.3.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-Dfn23VAd.d.mts → BatchProcessor-BhLczWj5.d.mts} +100 -2
- package/dist/{BatchProcessor-ByBl-1MA.d.ts → BatchProcessor-C42_RVWO.d.ts} +100 -2
- package/dist/handlers/index.d.mts +1 -1
- package/dist/handlers/index.d.ts +1 -1
- package/dist/handlers/index.js +340 -172
- package/dist/handlers/index.mjs +342 -174
- package/dist/{index-ejOWsaqb.d.ts → index-BQd6Bax0.d.ts} +1 -1
- package/dist/{index-xxQOFx-u.d.mts → index-C7aHK7_g.d.mts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +114 -87
- package/dist/index.mjs +114 -87
- package/dist/server.d.mts +263 -37
- package/dist/server.d.ts +263 -37
- package/dist/server.js +957 -178
- package/dist/server.mjs +949 -180
- package/package.json +1 -1
- package/src/LicensedRetrivora.ts +273 -0
- package/src/components/ChatWidget.tsx +0 -1
- package/src/components/ConfigProvider.tsx +2 -1
- package/src/config/LicenseConfigResolver.ts +296 -0
- package/src/config/serverConfig.ts +75 -16
- package/src/core/ConfigFetcher.ts +36 -3
- package/src/core/DatabaseStorage.ts +13 -13
- package/src/core/LicenseValidator.ts +5 -3
- package/src/core/LicenseVerifier.ts +85 -120
- package/src/core/Retrivora.ts +1 -1
- package/src/core/VectorPlugin.ts +1 -1
- package/src/handlers/index.ts +25 -11
- package/src/index.ts +9 -0
- package/src/llm/providers/UniversalLLMAdapter.ts +67 -12
- package/src/providers/vectordb/PineconeProvider.ts +69 -2
- package/src/server.ts +23 -1
- package/src/telemetry/TelemetryService.ts +330 -0
package/dist/server.d.ts
CHANGED
|
@@ -1,62 +1,40 @@
|
|
|
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 } from './ILLMProvider-B8TAVx3j.js';
|
|
2
|
-
export { A as AuthMode, K as BarChartData, M as CarouselProduct,
|
|
3
|
-
import { l as DecisionContext, n as IntentCategory, I as IRenderRule,
|
|
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, 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-B8TAVx3j.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-B8TAVx3j.js';
|
|
3
|
+
import { l as DecisionContext, n as IntentCategory, I as IRenderRule, y as RenderDecision, m as IRendererStrategy } from './BatchProcessor-C42_RVWO.js';
|
|
4
|
+
export { Q as ArchitectureCardProps, A as AuthenticationException, B as BatchOptions, e as BatchProcessor, f as BatchResult, g as ChartType, T as ChatViewportSize, C as ChatWidgetProps, a as ChatWindowProps, h as Chunk, i as ChunkOptions, c as ClientConfig, j as ConfigFetcher, b as ConfigProviderProps, k as ConfigurationException, U as DocumentChunker, D as DocumentUploadProps, E as EmbeddingFailedException, V as LicenseConfigResolver, L as LicenseTierConfig, o as LicenseValidationError, p as LicenseValidationRequest, q as LicenseValidationResponse, r as LicenseValidator, M as MessageBubbleProps, W as Pipeline, X as PipelineStep, P as ProductCardProps, d as ProductCarouselProps, s as ProviderCredentials, t as ProviderNotFoundException, Y as ProviderPill, u as RateLimitException, R as RemoteConfig, v as RemoteEmbeddingConfig, w as RemoteLLMConfig, x as RemoteVectorConfig, Z as RenderSectionDecision, z as RenderType, F as RetrievalException, G as Retrivora, H as RetrivoraError, J as RetrivoraErrorCode, K as SDKVersionUnsupportedError, N as SDK_VERSION, _ as Snippet, S as SourceCardProps, $ as wrapError } from './BatchProcessor-C42_RVWO.js';
|
|
5
|
+
import { H as HealthCheckResult, I as IProviderValidator, a as IProviderHealthChecker } from './index-BQd6Bax0.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-BQd6Bax0.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'next/server';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Decoded payload of a Retrivora license JWT.
|
|
12
|
-
*
|
|
13
|
-
* Retrivora licenses are signed with RS256 using a key held exclusively by
|
|
14
|
-
* Retrivora SaaS. They carry the project binding, the expiration time, and
|
|
15
|
-
* the customer tier, which the SDK uses to enforce per-tier feature limits
|
|
16
|
-
* (vector DB provider whitelist).
|
|
17
12
|
*/
|
|
18
13
|
interface LicensePayload {
|
|
19
|
-
/** Project ID this license is bound to — used to prevent cross-tenant reuse. */
|
|
20
14
|
projectId: string;
|
|
21
|
-
/** UNIX timestamp in seconds after which the license must be considered expired. */
|
|
22
15
|
expiresAt: number;
|
|
23
|
-
/** Customer tier (hobby | pro | enterprise). */
|
|
24
16
|
tier: string;
|
|
25
|
-
/** Optional: License lifecycle status propagated by the server validator (ACTIVE/TERMINATED/etc). */
|
|
26
17
|
licenseStatus?: string;
|
|
18
|
+
minimumSupportedVersion?: string;
|
|
19
|
+
forceUpgrade?: boolean;
|
|
27
20
|
}
|
|
28
21
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
* Responsibilities:
|
|
32
|
-
* 1. Parse the `rtv_`-prefixed JWT (base64url header.payload.signature)
|
|
33
|
-
* 2. Verify the RS256 signature against Retrivora's embedded PUBLIC_KEY
|
|
34
|
-
* 3. Match the license's projectId to the currently configured projectId
|
|
35
|
-
* 4. Enforce expiration (current UNIX seconds > expiresAt)
|
|
36
|
-
* 5. Enforce per-tier vector DB provider whitelist in production
|
|
37
|
-
*
|
|
38
|
-
* Fail-open policy: In non-production environments a missing license key
|
|
39
|
-
* produces a console-warning and a synthetic 24h "hobby" payload so that
|
|
40
|
-
* local development continues to work without signing up. In production
|
|
41
|
-
* any missing/invalid key throws `ConfigurationException`.
|
|
42
|
-
*
|
|
43
|
-
* Caching: Cryptographic verification is CPU-expensive — successful results
|
|
44
|
-
* are cached for 60 seconds keyed by (licenseKey, projectId, provider,
|
|
45
|
-
* publicKeyOverride). Cache hits still re-verify expiresAt.
|
|
22
|
+
* Validates licenses against the central Retrivora API.
|
|
23
|
+
* Replaces the old zero-latency local cryptographic verifier.
|
|
46
24
|
*/
|
|
47
25
|
declare class LicenseVerifier {
|
|
48
26
|
private static readonly cache;
|
|
49
27
|
private static readonly CACHE_TTL_MS;
|
|
50
|
-
private static readonly PUBLIC_KEY;
|
|
51
28
|
/**
|
|
52
|
-
*
|
|
29
|
+
* Validates the license key asynchronously by calling the Retrivora backend.
|
|
53
30
|
*
|
|
54
31
|
* @param licenseKey - Base64url signed JWT license key.
|
|
55
32
|
* @param currentProjectId - Project namespace ID.
|
|
56
|
-
* @param
|
|
33
|
+
* @param provider - Optional provider for tier checks.
|
|
57
34
|
*/
|
|
58
|
-
static
|
|
35
|
+
static verifyAsync(licenseKey: string | undefined, currentProjectId: string, provider?: string): Promise<LicensePayload>;
|
|
59
36
|
static verifyIP(licenseKey: string | undefined): Promise<void>;
|
|
37
|
+
static extractTier(licenseKey: string | undefined): string;
|
|
60
38
|
}
|
|
61
39
|
|
|
62
40
|
/**
|
|
@@ -246,6 +224,32 @@ declare class ProviderRegistry {
|
|
|
246
224
|
* universal_rest→ VECTOR_BASE_URL, VECTOR_DB_REST_API_KEY
|
|
247
225
|
*/
|
|
248
226
|
|
|
227
|
+
/**
|
|
228
|
+
* Runtime tier configuration injected from the /api/v1/config + /api/v1/credentials
|
|
229
|
+
* API responses at app startup. This overrides static env-var defaults so that
|
|
230
|
+
* the tier-based model selection from the license is applied to all SDK calls.
|
|
231
|
+
*/
|
|
232
|
+
interface RuntimeTierConfig {
|
|
233
|
+
llmModel?: string;
|
|
234
|
+
embeddingModel?: string;
|
|
235
|
+
/** LiteLLM master key for authenticating with llm.retrivora.com */
|
|
236
|
+
litellmApiKey?: string;
|
|
237
|
+
/** LiteLLM gateway base URL (defaults to https://llm.retrivora.com/api/v1) */
|
|
238
|
+
llmBaseUrl?: string;
|
|
239
|
+
embeddingBaseUrl?: string;
|
|
240
|
+
maxTokens?: number;
|
|
241
|
+
topK?: number;
|
|
242
|
+
chunkSize?: number;
|
|
243
|
+
chunkOverlap?: number;
|
|
244
|
+
tier?: string;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Inject tier-based config fetched from /api/v1/config + /api/v1/credentials.
|
|
248
|
+
* Call this once after successful license init (e.g. in validate-env.ts).
|
|
249
|
+
*/
|
|
250
|
+
declare function injectRuntimeConfig(config: RuntimeTierConfig): void;
|
|
251
|
+
/** Returns the currently injected runtime config, or null if not yet set. */
|
|
252
|
+
declare function getRuntimeConfig(): RuntimeTierConfig | null;
|
|
249
253
|
declare function getRagConfig(baseConfig?: Partial<RagConfig>, env?: Record<string, string | undefined>): RagConfig;
|
|
250
254
|
|
|
251
255
|
/**
|
|
@@ -716,7 +720,9 @@ declare class Rule7LargeTableRule implements IRenderRule {
|
|
|
716
720
|
declare class PineconeProvider extends BaseVectorProvider {
|
|
717
721
|
private client;
|
|
718
722
|
private apiKey;
|
|
723
|
+
private licenseKey?;
|
|
719
724
|
constructor(config: VectorDBConfig);
|
|
725
|
+
private getControlPlaneUrl;
|
|
720
726
|
static getValidator(): IProviderValidator;
|
|
721
727
|
static getHealthChecker(): IProviderHealthChecker;
|
|
722
728
|
initialize(): Promise<void>;
|
|
@@ -1126,4 +1132,224 @@ declare class UniversalLLMAdapter implements ILLMProvider {
|
|
|
1126
1132
|
ping(): Promise<boolean>;
|
|
1127
1133
|
}
|
|
1128
1134
|
|
|
1129
|
-
|
|
1135
|
+
/**
|
|
1136
|
+
* LicensedRetrivora — End-user facing SDK that only requires:
|
|
1137
|
+
* - License Key (JWT from Retrivora)
|
|
1138
|
+
* - Project ID (workspace identifier)
|
|
1139
|
+
*
|
|
1140
|
+
* Everything else (models, vector DB, embeddings) is resolved from
|
|
1141
|
+
* the Retrivora admin dashboard based on tier.
|
|
1142
|
+
*
|
|
1143
|
+
* NOTE: This is a SERVER-ONLY module. Import from '@retrivora-ai/rag-engine/server'
|
|
1144
|
+
* Do NOT import in client components.
|
|
1145
|
+
*/
|
|
1146
|
+
|
|
1147
|
+
interface LicensedRetrivoraOptions {
|
|
1148
|
+
licenseKey: string;
|
|
1149
|
+
projectId: string;
|
|
1150
|
+
userTelemetryUrl?: string;
|
|
1151
|
+
enableTelemetry?: boolean;
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* End-user facing SDK for Retrivora RAG engine
|
|
1155
|
+
*/
|
|
1156
|
+
declare class LicensedRetrivora {
|
|
1157
|
+
private licenseKey;
|
|
1158
|
+
private projectId;
|
|
1159
|
+
private pipeline?;
|
|
1160
|
+
private ragConfig?;
|
|
1161
|
+
private initialized;
|
|
1162
|
+
constructor(options: LicensedRetrivoraOptions);
|
|
1163
|
+
/**
|
|
1164
|
+
* Initialize the SDK by validating license and fetching config
|
|
1165
|
+
*/
|
|
1166
|
+
private generateId;
|
|
1167
|
+
/**
|
|
1168
|
+
* Initialize the SDK by validating license and fetching config
|
|
1169
|
+
*/
|
|
1170
|
+
initialize(): Promise<void>;
|
|
1171
|
+
/**
|
|
1172
|
+
* Ingest documents (upload files to vector database)
|
|
1173
|
+
* Returns success/failure status to end-user
|
|
1174
|
+
*/
|
|
1175
|
+
ingest(documents: IngestDocument[]): Promise<{
|
|
1176
|
+
success: boolean;
|
|
1177
|
+
message: string;
|
|
1178
|
+
documentIds?: string[];
|
|
1179
|
+
}>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Execute a user query and get response
|
|
1182
|
+
* Returns only the response text and sources (abstracted from underlying models)
|
|
1183
|
+
*/
|
|
1184
|
+
query(queryText: string, options?: {
|
|
1185
|
+
topK?: number;
|
|
1186
|
+
}): Promise<ChatResponse>;
|
|
1187
|
+
/**
|
|
1188
|
+
* Get license tier information (for UI display if needed)
|
|
1189
|
+
*/
|
|
1190
|
+
getTierInfo(): Promise<{
|
|
1191
|
+
tier: string;
|
|
1192
|
+
model: string;
|
|
1193
|
+
embeddingModel: string;
|
|
1194
|
+
}>;
|
|
1195
|
+
/**
|
|
1196
|
+
* Cleanup and shutdown
|
|
1197
|
+
*/
|
|
1198
|
+
shutdown(): Promise<void>;
|
|
1199
|
+
/**
|
|
1200
|
+
* Check if SDK is initialized
|
|
1201
|
+
*/
|
|
1202
|
+
isInitialized(): boolean;
|
|
1203
|
+
/**
|
|
1204
|
+
* Get current RAG configuration (for debugging)
|
|
1205
|
+
*/
|
|
1206
|
+
getConfig(): RagConfig | undefined;
|
|
1207
|
+
}
|
|
1208
|
+
/**
|
|
1209
|
+
* Convenience function to create and initialize SDK in one call
|
|
1210
|
+
*/
|
|
1211
|
+
declare function createRetrivora(options: LicensedRetrivoraOptions): Promise<LicensedRetrivora>;
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* TelemetryService — Tracks LLM calls, embedding operations, and user interactions
|
|
1215
|
+
* for billing, analytics, and usage monitoring.
|
|
1216
|
+
*
|
|
1217
|
+
* Sends telemetry to both:
|
|
1218
|
+
* - Admin dashboard (retrivora.com)
|
|
1219
|
+
* - User's own dashboard (if configured)
|
|
1220
|
+
*/
|
|
1221
|
+
declare enum EventType {
|
|
1222
|
+
EMBEDDING_GENERATED = "embedding_generated",
|
|
1223
|
+
LLM_CHAT_COMPLETION = "llm_chat_completion",
|
|
1224
|
+
DOCUMENT_INGESTED = "document_ingested",
|
|
1225
|
+
QUERY_EXECUTED = "query_executed",
|
|
1226
|
+
ERROR_OCCURRED = "error_occurred",
|
|
1227
|
+
CONFIGURATION_LOADED = "configuration_loaded"
|
|
1228
|
+
}
|
|
1229
|
+
interface TelemetryEvent {
|
|
1230
|
+
eventType: EventType;
|
|
1231
|
+
projectId: string;
|
|
1232
|
+
timestamp: number;
|
|
1233
|
+
operationId?: string;
|
|
1234
|
+
durationMs?: number;
|
|
1235
|
+
model?: string;
|
|
1236
|
+
inputTokens?: number;
|
|
1237
|
+
outputTokens?: number;
|
|
1238
|
+
totalTokens?: number;
|
|
1239
|
+
embeddingModel?: string;
|
|
1240
|
+
vectorDimensions?: number;
|
|
1241
|
+
textLength?: number;
|
|
1242
|
+
documentId?: string;
|
|
1243
|
+
documentName?: string;
|
|
1244
|
+
documentSize?: number;
|
|
1245
|
+
chunksGenerated?: number;
|
|
1246
|
+
queryText?: string;
|
|
1247
|
+
resultCount?: number;
|
|
1248
|
+
errorCode?: string;
|
|
1249
|
+
errorMessage?: string;
|
|
1250
|
+
stackTrace?: string;
|
|
1251
|
+
metadata?: Record<string, unknown>;
|
|
1252
|
+
}
|
|
1253
|
+
/**
|
|
1254
|
+
* Telemetry service for tracking usage, billing, and analytics
|
|
1255
|
+
*/
|
|
1256
|
+
declare class TelemetryService {
|
|
1257
|
+
private static readonly RETRIVORA_TELEMETRY_URL;
|
|
1258
|
+
private static readonly USER_TELEMETRY_URL_ENV_KEY;
|
|
1259
|
+
private http;
|
|
1260
|
+
private projectId;
|
|
1261
|
+
private licenseKey;
|
|
1262
|
+
private userTelemetryUrl?;
|
|
1263
|
+
private batchSize;
|
|
1264
|
+
private flushIntervalMs;
|
|
1265
|
+
private eventQueue;
|
|
1266
|
+
private flushTimer?;
|
|
1267
|
+
private enabled;
|
|
1268
|
+
constructor(projectId: string, licenseKey: string, userTelemetryUrl?: string);
|
|
1269
|
+
/**
|
|
1270
|
+
* Record a telemetry event
|
|
1271
|
+
*/
|
|
1272
|
+
recordEvent(event: Partial<TelemetryEvent>): void;
|
|
1273
|
+
/**
|
|
1274
|
+
* Record LLM completion event
|
|
1275
|
+
*/
|
|
1276
|
+
recordLLMCompletion(data: {
|
|
1277
|
+
model: string;
|
|
1278
|
+
inputTokens: number;
|
|
1279
|
+
outputTokens: number;
|
|
1280
|
+
durationMs: number;
|
|
1281
|
+
operationId?: string;
|
|
1282
|
+
metadata?: Record<string, unknown>;
|
|
1283
|
+
}): void;
|
|
1284
|
+
/**
|
|
1285
|
+
* Record embedding generation event
|
|
1286
|
+
*/
|
|
1287
|
+
recordEmbeddingGenerated(data: {
|
|
1288
|
+
embeddingModel: string;
|
|
1289
|
+
vectorDimensions: number;
|
|
1290
|
+
textLength: number;
|
|
1291
|
+
durationMs: number;
|
|
1292
|
+
operationId?: string;
|
|
1293
|
+
}): void;
|
|
1294
|
+
/**
|
|
1295
|
+
* Record document ingestion event
|
|
1296
|
+
*/
|
|
1297
|
+
recordDocumentIngested(data: {
|
|
1298
|
+
documentId: string;
|
|
1299
|
+
documentName: string;
|
|
1300
|
+
documentSize: number;
|
|
1301
|
+
chunksGenerated: number;
|
|
1302
|
+
durationMs: number;
|
|
1303
|
+
}): void;
|
|
1304
|
+
/**
|
|
1305
|
+
* Record query execution event
|
|
1306
|
+
*/
|
|
1307
|
+
recordQueryExecuted(data: {
|
|
1308
|
+
queryText: string;
|
|
1309
|
+
resultCount: number;
|
|
1310
|
+
durationMs: number;
|
|
1311
|
+
operationId?: string;
|
|
1312
|
+
}): void;
|
|
1313
|
+
/**
|
|
1314
|
+
* Record error event
|
|
1315
|
+
*/
|
|
1316
|
+
recordError(error: Error, context?: Record<string, unknown>): void;
|
|
1317
|
+
/**
|
|
1318
|
+
* Flush all queued events to telemetry endpoints
|
|
1319
|
+
*/
|
|
1320
|
+
flush(): Promise<void>;
|
|
1321
|
+
/**
|
|
1322
|
+
* Start automatic flush interval
|
|
1323
|
+
*/
|
|
1324
|
+
private startAutoFlush;
|
|
1325
|
+
/**
|
|
1326
|
+
* Stop telemetry service and flush remaining events
|
|
1327
|
+
*/
|
|
1328
|
+
shutdown(): Promise<void>;
|
|
1329
|
+
/**
|
|
1330
|
+
* Disable telemetry temporarily
|
|
1331
|
+
*/
|
|
1332
|
+
disable(): void;
|
|
1333
|
+
/**
|
|
1334
|
+
* Enable telemetry
|
|
1335
|
+
*/
|
|
1336
|
+
enable(): void;
|
|
1337
|
+
/**
|
|
1338
|
+
* Get current queue size (for debugging)
|
|
1339
|
+
*/
|
|
1340
|
+
getQueueSize(): number;
|
|
1341
|
+
}
|
|
1342
|
+
/**
|
|
1343
|
+
* Get or create global telemetry service instance
|
|
1344
|
+
*/
|
|
1345
|
+
declare function getTelemetryService(): TelemetryService | null;
|
|
1346
|
+
/**
|
|
1347
|
+
* Initialize global telemetry service
|
|
1348
|
+
*/
|
|
1349
|
+
declare function initializeTelemetryService(projectId: string, licenseKey: string, userTelemetryUrl?: string): TelemetryService;
|
|
1350
|
+
/**
|
|
1351
|
+
* Shutdown global telemetry service
|
|
1352
|
+
*/
|
|
1353
|
+
declare function shutdownTelemetryService(): Promise<void>;
|
|
1354
|
+
|
|
1355
|
+
export { AnthropicProvider, BaseVectorProvider, CarouselRendererStrategy, ChartRendererStrategy, ChatMessage, ChatOptions, ChatResponse, ChromaDBProvider, ConfigBuilder, ConfigResolver, DecisionContext, DocumentParser, Edge, EmbedOptions, EmbeddingConfig, EmbeddingProvider, EmbeddingStrategy, EmbeddingStrategyResolver, EventType, GraphNode, GraphSearchResult, GroqProvider, HealthCheckResult, ILLMProvider, IProviderHealthChecker, IProviderValidator, IRenderRule, IRendererStrategy, IngestDocument, IntentCategory, IntentClassifier, LLMConfig, LLMFactory, LLMProvider, LLM_PROFILES, type LicensePayload, LicenseVerifier, LicensedRetrivora, type LicensedRetrivoraOptions, MilvusProvider, MixedRendererStrategy, MongoDBProvider, MultiTablePostgresProvider, OllamaProvider, OpenAIProvider, PRESETS, PineconeProvider, PostgreSQLProvider, ProviderHealthCheck, ProviderRegistry, QdrantProvider, QwenProvider, RAGConfig, RagConfig, RedisProvider, RenderDecision, RendererRegistry, Rule1SpecificInfoRule, Rule2ComparisonRule, Rule3ProductDiscoveryRule, Rule4AnalyticalRule, Rule5MixedResponseRule, Rule6SmallResultSetRule, Rule7LargeTableRule, RuleEngine, type RuntimeTierConfig, TableRendererStrategy, type TelemetryEvent, TelemetryService, TextRendererStrategy, UIConfig, UITransformationResponse, UniversalLLMAdapter, UniversalRagConfig, UniversalVectorProvider, UpsertDocument, VECTOR_PROFILES, VectorDBConfig, VectorDBProvider, VectorMatch, VisualizationDecisionEngine, WeaviateProvider, createFromPreset, createRetrivora, decideVisualization, getRagConfig, getRuntimeConfig, getTelemetryService, initializeTelemetryService, injectRuntimeConfig, shutdownTelemetryService };
|