@retrivora-ai/rag-engine 2.3.8 → 2.4.0
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-C42_RVWO.d.ts → BatchProcessor-D42E706a.d.ts} +12 -1
- package/dist/{BatchProcessor-BhLczWj5.d.mts → BatchProcessor-zbQMaZHm.d.mts} +12 -1
- package/dist/{ILLMProvider-B8TAVx3j.d.mts → ILLMProvider-Y6aL5N8J.d.mts} +1 -0
- package/dist/{ILLMProvider-B8TAVx3j.d.ts → ILLMProvider-Y6aL5N8J.d.ts} +1 -0
- package/dist/handlers/index.d.mts +2 -2
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.js +73 -42
- package/dist/handlers/index.mjs +73 -42
- package/dist/{index-C7aHK7_g.d.mts → index-59CHg0V3.d.mts} +1 -1
- package/dist/{index-BQd6Bax0.d.ts → index-BgKRInpa.d.ts} +1 -1
- package/dist/index.css +83 -15
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +523 -271
- package/dist/index.mjs +535 -280
- package/dist/server.d.mts +8 -6
- package/dist/server.d.ts +8 -6
- package/dist/server.js +75 -43
- package/dist/server.mjs +75 -43
- package/package.json +1 -1
- package/src/components/ChatWindow.tsx +296 -28
- package/src/components/ConfigProvider.tsx +18 -1
- package/src/components/DocumentUpload.tsx +34 -15
- package/src/config/LicenseConfigResolver.ts +3 -1
- package/src/config/RagConfig.ts +1 -0
- package/src/config/serverConfig.ts +21 -8
- package/src/config/uiConstants.ts +1 -0
- package/src/core/ConfigFetcher.ts +6 -0
- package/src/handlers/index.ts +9 -1
- package/src/index.css +83 -15
- package/src/llm/providers/UniversalLLMAdapter.ts +18 -2
- package/src/types/props.ts +11 -0
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-
|
|
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-
|
|
3
|
-
import { l as DecisionContext, n as IntentCategory, I as IRenderRule, y as RenderDecision, m as IRendererStrategy } from './BatchProcessor-
|
|
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-
|
|
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-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 { l as DecisionContext, n as IntentCategory, I as IRenderRule, y as RenderDecision, m as IRendererStrategy } from './BatchProcessor-zbQMaZHm.mjs';
|
|
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-zbQMaZHm.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';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'next/server';
|
|
9
9
|
|
|
@@ -232,6 +232,8 @@ declare class ProviderRegistry {
|
|
|
232
232
|
interface RuntimeTierConfig {
|
|
233
233
|
llmModel?: string;
|
|
234
234
|
embeddingModel?: string;
|
|
235
|
+
/** Custom system prompt from project configuration */
|
|
236
|
+
systemPrompt?: string;
|
|
235
237
|
/** LiteLLM master key for authenticating with llm.retrivora.com */
|
|
236
238
|
litellmApiKey?: string;
|
|
237
239
|
/** LiteLLM gateway base URL (defaults to https://llm.retrivora.com/api/v1) */
|
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-
|
|
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-
|
|
3
|
-
import { l as DecisionContext, n as IntentCategory, I as IRenderRule, y as RenderDecision, m as IRendererStrategy } from './BatchProcessor-
|
|
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-
|
|
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-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 { l as DecisionContext, n as IntentCategory, I as IRenderRule, y as RenderDecision, m as IRendererStrategy } from './BatchProcessor-D42E706a.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-D42E706a.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';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'next/server';
|
|
9
9
|
|
|
@@ -232,6 +232,8 @@ declare class ProviderRegistry {
|
|
|
232
232
|
interface RuntimeTierConfig {
|
|
233
233
|
llmModel?: string;
|
|
234
234
|
embeddingModel?: string;
|
|
235
|
+
/** Custom system prompt from project configuration */
|
|
236
|
+
systemPrompt?: string;
|
|
235
237
|
/** LiteLLM master key for authenticating with llm.retrivora.com */
|
|
236
238
|
litellmApiKey?: string;
|
|
237
239
|
/** LiteLLM gateway base URL (defaults to https://llm.retrivora.com/api/v1) */
|
package/dist/server.js
CHANGED
|
@@ -330,7 +330,7 @@ var init_package = __esm({
|
|
|
330
330
|
"package.json"() {
|
|
331
331
|
package_default = {
|
|
332
332
|
name: "@retrivora-ai/rag-engine",
|
|
333
|
-
version: "2.
|
|
333
|
+
version: "2.4.0",
|
|
334
334
|
description: "Retrivora AI is a plug-and-play AI engine for RAG chat experiences \u2014 generic vector DB + LLM provider, embeddable or standalone.",
|
|
335
335
|
author: "Abhinav Alkuchi",
|
|
336
336
|
license: "UNLICENSED",
|
|
@@ -525,6 +525,7 @@ var init_ConfigFetcher = __esm({
|
|
|
525
525
|
for (const baseUrl of controlPlaneUrls) {
|
|
526
526
|
try {
|
|
527
527
|
const url = `${baseUrl}/api/v1/config?projectId=${encodeURIComponent(projectId)}`;
|
|
528
|
+
console.log(`[ConfigFetcher] Fetching config from: ${url}`);
|
|
528
529
|
const res = await fetch(url, {
|
|
529
530
|
method: "GET",
|
|
530
531
|
headers: __spreadValues({
|
|
@@ -532,6 +533,10 @@ var init_ConfigFetcher = __esm({
|
|
|
532
533
|
"x-sdk-version": SDK_VERSION
|
|
533
534
|
}, licenseKey ? { "x-license-key": licenseKey } : {})
|
|
534
535
|
});
|
|
536
|
+
console.log(`[ConfigFetcher] Response status: ${res.status}`);
|
|
537
|
+
if (!res.ok) {
|
|
538
|
+
console.warn(`[ConfigFetcher] Error text: ${await res.text()}`);
|
|
539
|
+
}
|
|
535
540
|
if (res.ok) {
|
|
536
541
|
const data = await res.json();
|
|
537
542
|
if ((data == null ? void 0 : data.success) && (data == null ? void 0 : data.vectorDb)) {
|
|
@@ -3142,7 +3147,7 @@ function getRagConfig(baseConfig, env = process.env) {
|
|
|
3142
3147
|
return getEnvConfig(env, baseConfig);
|
|
3143
3148
|
}
|
|
3144
3149
|
function getEnvConfig(env = process.env, base) {
|
|
3145
|
-
var _a3, _b, _c, _d, _e, _f, _g2, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb, _zb, _Ab, _Bb, _Cb, _Db, _Eb, _Fb, _Gb, _Hb;
|
|
3150
|
+
var _a3, _b, _c, _d, _e, _f, _g2, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa, _ga, _ha, _ia, _ja, _ka, _la, _ma, _na, _oa, _pa, _qa, _ra, _sa, _ta, _ua, _va, _wa, _xa, _ya, _za, _Aa, _Ba, _Ca, _Da, _Ea, _Fa, _Ga, _Ha, _Ia, _Ja, _Ka, _La, _Ma, _Na, _Oa, _Pa, _Qa, _Ra, _Sa, _Ta, _Ua, _Va, _Wa, _Xa, _Ya, _Za, __a, _$a, _ab, _bb, _cb, _db, _eb, _fb, _gb, _hb, _ib, _jb, _kb, _lb, _mb, _nb, _ob, _pb, _qb, _rb, _sb, _tb, _ub, _vb, _wb, _xb, _yb, _zb, _Ab, _Bb, _Cb, _Db, _Eb, _Fb, _Gb, _Hb, _Ib, _Jb, _Kb, _Lb, _Mb, _Nb;
|
|
3146
3151
|
const licenseKey = (_d = (_c = (_b = (_a3 = readString(env, "RAG_LICENSE_KEY")) != null ? _a3 : readString(env, "RETRIVORA_LICENSE_KEY")) != null ? _b : readString(env, "NEXT_PUBLIC_RETRIVORA_LICENSE_KEY")) != null ? _c : readString(env, "LICENSE_KEY")) != null ? _d : base == null ? void 0 : base.licenseKey;
|
|
3147
3152
|
const jwtProjectId = (() => {
|
|
3148
3153
|
if (!licenseKey) return void 0;
|
|
@@ -3235,14 +3240,15 @@ function getEnvConfig(env = process.env, base) {
|
|
|
3235
3240
|
})();
|
|
3236
3241
|
const tierBasedLLMModel = isFreeTier2 ? "llama-3.1-8b-instant" : "llama-3.3-70b-versatile";
|
|
3237
3242
|
const tierBasedEmbeddingModel = isFreeTier2 ? "text-embedding-004" : "text-embedding-004";
|
|
3238
|
-
const
|
|
3243
|
+
const controlPlaneUrl = (_qa = readString(env, "RETRIVORA_CONTROL_PLANE_URL")) != null ? _qa : readString(env, "NEXT_PUBLIC_RETRIVORA_CONTROL_PLANE_URL");
|
|
3244
|
+
const defaultGatewayUrl = controlPlaneUrl ? `${controlPlaneUrl.replace(/\/$/, "")}/api/v1` : "https://llm.retrivora.com/api/v1";
|
|
3239
3245
|
const rt = _runtimeConfig;
|
|
3240
3246
|
const defaultLlmProvider = "universal_rest";
|
|
3241
|
-
const llmProvider = (
|
|
3242
|
-
const llmBaseUrl = (
|
|
3243
|
-
const llmModel = (
|
|
3244
|
-
const llmApiKey = (
|
|
3245
|
-
const llmProfile = (
|
|
3247
|
+
const llmProvider = (_ta = (_sa = readEnum(env, "LLM_PROVIDER", defaultLlmProvider, LLM_PROVIDERS)) != null ? _sa : (_ra = base == null ? void 0 : base.llm) == null ? void 0 : _ra.provider) != null ? _ta : defaultLlmProvider;
|
|
3248
|
+
const llmBaseUrl = (_ya = (_xa = (_wa = (_ua = readString(env, "LITELLM_BASE_URL")) != null ? _ua : readString(env, "LLM_BASE_URL")) != null ? _wa : (_va = base == null ? void 0 : base.llm) == null ? void 0 : _va.baseUrl) != null ? _xa : rt == null ? void 0 : rt.llmBaseUrl) != null ? _ya : defaultGatewayUrl;
|
|
3249
|
+
const llmModel = (_Ca = (_Ba = (_Aa = readString(env, "LLM_MODEL")) != null ? _Aa : (_za = base == null ? void 0 : base.llm) == null ? void 0 : _za.model) != null ? _Ba : rt == null ? void 0 : rt.llmModel) != null ? _Ca : tierBasedLLMModel;
|
|
3250
|
+
const llmApiKey = (_Ga = (_Fa = (_Da = readString(env, "LITELLM_MASTER_KEY")) != null ? _Da : rt == null ? void 0 : rt.litellmApiKey) != null ? _Fa : (_Ea = base == null ? void 0 : base.llm) == null ? void 0 : _Ea.apiKey) != null ? _Ga : licenseKey;
|
|
3251
|
+
const llmProfile = (_Ka = (_Ja = readString(env, "LLM_UNIVERSAL_PROFILE")) != null ? _Ja : (_Ia = (_Ha = base == null ? void 0 : base.llm) == null ? void 0 : _Ha.options) == null ? void 0 : _Ia.profile) != null ? _Ka : "litellm";
|
|
3246
3252
|
console.log("[serverConfig] \u{1F527} LLM Configuration:", {
|
|
3247
3253
|
baseUrl: llmBaseUrl,
|
|
3248
3254
|
model: llmModel,
|
|
@@ -3251,17 +3257,24 @@ function getEnvConfig(env = process.env, base) {
|
|
|
3251
3257
|
source: (rt == null ? void 0 : rt.llmModel) ? "runtime-injected" : "env/fallback"
|
|
3252
3258
|
});
|
|
3253
3259
|
const defaultEmbeddingProvider = "universal_rest";
|
|
3254
|
-
const embeddingProvider = (
|
|
3255
|
-
const embeddingBaseUrl = (_Ta = (_Sa = (_Ra = (
|
|
3256
|
-
const embeddingModel = (
|
|
3257
|
-
const embeddingApiKey = (
|
|
3258
|
-
const embeddingProfile = (
|
|
3260
|
+
const embeddingProvider = (_Na = (_Ma = readEnum(env, "EMBEDDING_PROVIDER", defaultEmbeddingProvider, EMBEDDING_PROVIDERS)) != null ? _Ma : (_La = base == null ? void 0 : base.embedding) == null ? void 0 : _La.provider) != null ? _Na : defaultEmbeddingProvider;
|
|
3261
|
+
const embeddingBaseUrl = (_Ua = (_Ta = (_Sa = (_Ra = (_Pa = (_Oa = readString(env, "LITELLM_BASE_URL")) != null ? _Oa : readString(env, "EMBEDDING_BASE_URL")) != null ? _Pa : readString(env, "LLM_BASE_URL")) != null ? _Ra : (_Qa = base == null ? void 0 : base.embedding) == null ? void 0 : _Qa.baseUrl) != null ? _Sa : rt == null ? void 0 : rt.embeddingBaseUrl) != null ? _Ta : rt == null ? void 0 : rt.llmBaseUrl) != null ? _Ua : defaultGatewayUrl;
|
|
3262
|
+
const embeddingModel = (_Ya = (_Xa = (_Wa = readString(env, "EMBEDDING_MODEL")) != null ? _Wa : (_Va = base == null ? void 0 : base.embedding) == null ? void 0 : _Va.model) != null ? _Xa : rt == null ? void 0 : rt.embeddingModel) != null ? _Ya : tierBasedEmbeddingModel;
|
|
3263
|
+
const embeddingApiKey = (_ab = (_$a = (_Za = readString(env, "LITELLM_MASTER_KEY")) != null ? _Za : rt == null ? void 0 : rt.litellmApiKey) != null ? _$a : (__a = base == null ? void 0 : base.embedding) == null ? void 0 : __a.apiKey) != null ? _ab : licenseKey;
|
|
3264
|
+
const embeddingProfile = (_eb = (_db = readString(env, "EMBEDDING_UNIVERSAL_PROFILE")) != null ? _db : (_cb = (_bb = base == null ? void 0 : base.embedding) == null ? void 0 : _bb.options) == null ? void 0 : _cb.profile) != null ? _eb : "litellm";
|
|
3265
|
+
console.log("[serverConfig] \u{1F527} Embedding Configuration:", {
|
|
3266
|
+
baseUrl: embeddingBaseUrl,
|
|
3267
|
+
model: embeddingModel,
|
|
3268
|
+
provider: embeddingProvider,
|
|
3269
|
+
hasApiKey: !!embeddingApiKey,
|
|
3270
|
+
source: (rt == null ? void 0 : rt.embeddingModel) ? "runtime-injected" : "env/fallback"
|
|
3271
|
+
});
|
|
3259
3272
|
return __spreadProps(__spreadValues({
|
|
3260
3273
|
projectId,
|
|
3261
3274
|
licenseKey,
|
|
3262
3275
|
vectorDb: {
|
|
3263
3276
|
provider: vectorProvider,
|
|
3264
|
-
indexName: (
|
|
3277
|
+
indexName: (_gb = (_fb = readString(env, "VECTOR_DB_INDEX")) != null ? _fb : vectorDbOptions.indexName) != null ? _gb : "rag-index",
|
|
3265
3278
|
options: vectorDbOptions
|
|
3266
3279
|
},
|
|
3267
3280
|
llm: {
|
|
@@ -3269,8 +3282,8 @@ function getEnvConfig(env = process.env, base) {
|
|
|
3269
3282
|
model: llmModel,
|
|
3270
3283
|
apiKey: llmApiKey,
|
|
3271
3284
|
baseUrl: llmBaseUrl,
|
|
3272
|
-
systemPrompt: readString(env, "LLM_SYSTEM_PROMPT"),
|
|
3273
|
-
maxTokens: readNumber(env, "LLM_MAX_TOKENS", 4096),
|
|
3285
|
+
systemPrompt: (_hb = readString(env, "LLM_SYSTEM_PROMPT")) != null ? _hb : rt == null ? void 0 : rt.systemPrompt,
|
|
3286
|
+
maxTokens: readNumber(env, "LLM_MAX_TOKENS", (_ib = rt == null ? void 0 : rt.maxTokens) != null ? _ib : 4096),
|
|
3274
3287
|
temperature: readNumber(env, "LLM_TEMPERATURE", 0.7),
|
|
3275
3288
|
options: {
|
|
3276
3289
|
profile: llmProfile,
|
|
@@ -3291,30 +3304,30 @@ function getEnvConfig(env = process.env, base) {
|
|
|
3291
3304
|
}
|
|
3292
3305
|
},
|
|
3293
3306
|
ui: {
|
|
3294
|
-
title: (
|
|
3295
|
-
subtitle: (
|
|
3296
|
-
primaryColor: (
|
|
3297
|
-
accentColor: (
|
|
3298
|
-
logoUrl: (
|
|
3299
|
-
placeholder: (
|
|
3300
|
-
showSources: ((
|
|
3301
|
-
welcomeMessage: (
|
|
3302
|
-
visualStyle: (
|
|
3303
|
-
borderRadius: (
|
|
3304
|
-
allowUpload: ((
|
|
3307
|
+
title: (_kb = (_jb = readString(env, "NEXT_PUBLIC_UI_TITLE")) != null ? _jb : readString(env, "UI_TITLE")) != null ? _kb : "AI Assistant",
|
|
3308
|
+
subtitle: (_mb = (_lb = readString(env, "NEXT_PUBLIC_UI_SUBTITLE")) != null ? _lb : readString(env, "UI_SUBTITLE")) != null ? _mb : "Powered by RAG",
|
|
3309
|
+
primaryColor: (_ob = (_nb = readString(env, "NEXT_PUBLIC_PRIMARY_COLOR")) != null ? _nb : readString(env, "UI_PRIMARY_COLOR")) != null ? _ob : "#10b981",
|
|
3310
|
+
accentColor: (_qb = (_pb = readString(env, "NEXT_PUBLIC_ACCENT_COLOR")) != null ? _pb : readString(env, "UI_ACCENT_COLOR")) != null ? _qb : "#3b82f6",
|
|
3311
|
+
logoUrl: (_rb = readString(env, "NEXT_PUBLIC_LOGO_URL")) != null ? _rb : readString(env, "UI_LOGO_URL"),
|
|
3312
|
+
placeholder: (_tb = (_sb = readString(env, "NEXT_PUBLIC_PLACEHOLDER")) != null ? _sb : readString(env, "UI_PLACEHOLDER")) != null ? _tb : "Ask me anything\u2026",
|
|
3313
|
+
showSources: ((_vb = (_ub = readString(env, "NEXT_PUBLIC_SHOW_SOURCES")) != null ? _ub : readString(env, "UI_SHOW_SOURCES")) != null ? _vb : "true") !== "false",
|
|
3314
|
+
welcomeMessage: (_xb = (_wb = readString(env, "NEXT_PUBLIC_WELCOME_MESSAGE")) != null ? _wb : readString(env, "UI_WELCOME_MESSAGE")) != null ? _xb : "Hello! I'm your AI assistant. Ask me anything about your documents.",
|
|
3315
|
+
visualStyle: (_zb = (_yb = readString(env, "NEXT_PUBLIC_UI_VISUAL_STYLE")) != null ? _yb : readString(env, "UI_VISUAL_STYLE")) != null ? _zb : "glass",
|
|
3316
|
+
borderRadius: (_Bb = (_Ab = readString(env, "NEXT_PUBLIC_UI_BORDER_RADIUS")) != null ? _Ab : readString(env, "UI_BORDER_RADIUS")) != null ? _Bb : "xl",
|
|
3317
|
+
allowUpload: ((_Db = (_Cb = readString(env, "NEXT_PUBLIC_ALLOW_UPLOAD")) != null ? _Cb : readString(env, "UI_ALLOW_UPLOAD")) != null ? _Db : "false") === "true"
|
|
3305
3318
|
},
|
|
3306
3319
|
rag: {
|
|
3307
|
-
topK: readNumber(env, "RAG_TOP_K", 5),
|
|
3320
|
+
topK: readNumber(env, "RAG_TOP_K", (_Eb = rt == null ? void 0 : rt.topK) != null ? _Eb : 5),
|
|
3308
3321
|
scoreThreshold: readNumber(env, "RAG_SCORE_THRESHOLD", 0),
|
|
3309
|
-
chunkSize: readNumber(env, "RAG_CHUNK_SIZE", 1e3),
|
|
3310
|
-
chunkOverlap: readNumber(env, "RAG_CHUNK_OVERLAP", 200),
|
|
3311
|
-
filterableFields: (
|
|
3322
|
+
chunkSize: readNumber(env, "RAG_CHUNK_SIZE", (_Fb = rt == null ? void 0 : rt.chunkSize) != null ? _Fb : 1e3),
|
|
3323
|
+
chunkOverlap: readNumber(env, "RAG_CHUNK_OVERLAP", (_Gb = rt == null ? void 0 : rt.chunkOverlap) != null ? _Gb : 200),
|
|
3324
|
+
filterableFields: (_Hb = readString(env, "RAG_FILTERABLE_FIELDS")) == null ? void 0 : _Hb.split(",").map((f) => f.trim()),
|
|
3312
3325
|
// Query pipeline toggles — read from .env.local
|
|
3313
3326
|
useQueryTransformation: readString(env, "RAG_USE_QUERY_TRANSFORMATION") === "true",
|
|
3314
3327
|
useReranking: readString(env, "RAG_USE_RERANKING") === "true",
|
|
3315
3328
|
useGraphRetrieval: readString(env, "RAG_USE_GRAPH_RETRIEVAL") === "true",
|
|
3316
|
-
architecture: (
|
|
3317
|
-
chunkingStrategy: (
|
|
3329
|
+
architecture: (_Ib = readString(env, "RAG_ARCHITECTURE")) != null ? _Ib : "simple",
|
|
3330
|
+
chunkingStrategy: (_Jb = readString(env, "RAG_CHUNKING_STRATEGY")) != null ? _Jb : "recursive",
|
|
3318
3331
|
uiMapping: (() => {
|
|
3319
3332
|
const raw = readString(env, "RAG_UI_MAPPING");
|
|
3320
3333
|
if (!raw) return void 0;
|
|
@@ -3327,7 +3340,7 @@ function getEnvConfig(env = process.env, base) {
|
|
|
3327
3340
|
},
|
|
3328
3341
|
telemetry: {
|
|
3329
3342
|
enabled: telemetryEnabled,
|
|
3330
|
-
url: (
|
|
3343
|
+
url: (_Nb = (_Mb = (_Kb = readString(env, "TELEMETRY_URL")) != null ? _Kb : readString(env, "NEXT_PUBLIC_TELEMETRY_URL")) != null ? _Mb : (_Lb = base == null ? void 0 : base.telemetry) == null ? void 0 : _Lb.url) != null ? _Nb : "https://www.retrivora.com/api/telemetry"
|
|
3331
3344
|
}
|
|
3332
3345
|
}, readString(env, "GRAPH_DB_PROVIDER") ? {
|
|
3333
3346
|
graphDb: {
|
|
@@ -4677,6 +4690,12 @@ var UniversalLLMAdapter = class {
|
|
|
4677
4690
|
this.resolvedHeaders = __spreadValues(__spreadValues({
|
|
4678
4691
|
"Content-Type": "application/json"
|
|
4679
4692
|
}, config.apiKey ? { Authorization: `Bearer ${config.apiKey}` } : {}), this.opts.headers || {});
|
|
4693
|
+
console.log("[UniversalLLMAdapter] Initialized with:", {
|
|
4694
|
+
model: this.model,
|
|
4695
|
+
baseUrl: this.baseUrl,
|
|
4696
|
+
hasApiKey: !!this.apiKey,
|
|
4697
|
+
apiKeyPrefix: this.apiKey ? `${this.apiKey.slice(0, 12)}...` : void 0
|
|
4698
|
+
});
|
|
4680
4699
|
this.http = import_axios2.default.create({
|
|
4681
4700
|
baseURL: this.baseUrl,
|
|
4682
4701
|
headers: this.resolvedHeaders,
|
|
@@ -4889,14 +4908,21 @@ ${context != null ? context : "None"}` },
|
|
|
4889
4908
|
});
|
|
4890
4909
|
}
|
|
4891
4910
|
async embed(text) {
|
|
4892
|
-
var _a3, _b, _c, _d, _e, _f, _g2;
|
|
4911
|
+
var _a3, _b, _c, _d, _e, _f, _g2, _h;
|
|
4893
4912
|
const path2 = (_a3 = this.opts.embedPath) != null ? _a3 : "/embeddings";
|
|
4894
4913
|
const payload = this.opts.embedPayloadTemplate ? buildPayload(this.opts.embedPayloadTemplate, { input: text, model: this.model }) : { input: text, model: this.model };
|
|
4895
4914
|
try {
|
|
4915
|
+
console.log(`[UniversalLLMAdapter] Posting to embedding endpoint: ${this.baseUrl}${path2}`, {
|
|
4916
|
+
model: this.model,
|
|
4917
|
+
inputLength: typeof text === "string" ? text.length : "unknown"
|
|
4918
|
+
});
|
|
4896
4919
|
const { data } = await this.http.post(path2, payload);
|
|
4897
4920
|
const extractPath = (_b = this.opts.embedExtractPath) != null ? _b : "data[0].embedding";
|
|
4898
4921
|
const vector = resolvePath(data, extractPath);
|
|
4899
|
-
if (Array.isArray(vector))
|
|
4922
|
+
if (Array.isArray(vector)) {
|
|
4923
|
+
console.log(`[UniversalLLMAdapter] Embedding HTTP request successful. Vector size: ${vector.length}`);
|
|
4924
|
+
return vector;
|
|
4925
|
+
}
|
|
4900
4926
|
console.warn(
|
|
4901
4927
|
`[UniversalLLMAdapter] Embedding API returned unexpected format for path '${extractPath}'. Response:`,
|
|
4902
4928
|
data
|
|
@@ -4904,14 +4930,14 @@ ${context != null ? context : "None"}` },
|
|
|
4904
4930
|
} catch (err) {
|
|
4905
4931
|
console.warn(
|
|
4906
4932
|
`[UniversalLLMAdapter] HTTP embedding request failed: ${(err == null ? void 0 : err.message) || err}`,
|
|
4907
|
-
{ path: path2, model: this.model }
|
|
4933
|
+
{ path: path2, model: this.model, response: (_c = err == null ? void 0 : err.response) == null ? void 0 : _c.data }
|
|
4908
4934
|
);
|
|
4909
4935
|
const _g3 = globalThis;
|
|
4910
4936
|
const dispatchEmbed = _g3.__retrivoraDispatchEmbedding;
|
|
4911
4937
|
if (typeof dispatchEmbed === "function") {
|
|
4912
4938
|
try {
|
|
4913
4939
|
const res = await dispatchEmbed({ input: text, model: this.model }, this.apiKey);
|
|
4914
|
-
if ((
|
|
4940
|
+
if ((_e = (_d = res == null ? void 0 : res.data) == null ? void 0 : _d[0]) == null ? void 0 : _e.embedding) {
|
|
4915
4941
|
return res.data[0].embedding;
|
|
4916
4942
|
}
|
|
4917
4943
|
} catch (dispatchErr) {
|
|
@@ -4920,10 +4946,12 @@ ${context != null ? context : "None"}` },
|
|
|
4920
4946
|
}
|
|
4921
4947
|
}
|
|
4922
4948
|
try {
|
|
4949
|
+
console.log(`[UniversalLLMAdapter] Retrying embedding request to: ${this.baseUrl}${path2}`);
|
|
4923
4950
|
const { data } = await this.http.post(path2, payload);
|
|
4924
|
-
const extractPath = (
|
|
4951
|
+
const extractPath = (_f = this.opts.embedExtractPath) != null ? _f : "data[0].embedding";
|
|
4925
4952
|
const vector = resolvePath(data, extractPath);
|
|
4926
4953
|
if (Array.isArray(vector)) {
|
|
4954
|
+
console.log(`[UniversalLLMAdapter] Retry embedding HTTP request successful. Vector size: ${vector.length}`);
|
|
4927
4955
|
return vector;
|
|
4928
4956
|
}
|
|
4929
4957
|
console.error(
|
|
@@ -4936,7 +4964,7 @@ ${context != null ? context : "None"}` },
|
|
|
4936
4964
|
} catch (err) {
|
|
4937
4965
|
console.error(
|
|
4938
4966
|
`[UniversalLLMAdapter] Both embedding attempts failed. Path: ${path2}, Model: ${this.model}`,
|
|
4939
|
-
{ error: err == null ? void 0 : err.message, statusCode: (
|
|
4967
|
+
{ error: err == null ? void 0 : err.message, statusCode: (_g2 = err == null ? void 0 : err.response) == null ? void 0 : _g2.status, response: (_h = err == null ? void 0 : err.response) == null ? void 0 : _h.data }
|
|
4940
4968
|
);
|
|
4941
4969
|
throw new Error(
|
|
4942
4970
|
`[UniversalLLMAdapter] Failed to generate embedding after 2 attempts: ${(err == null ? void 0 : err.message) || err}`
|
|
@@ -11984,6 +12012,7 @@ function createLicenseHandler(configOrPlugin, options) {
|
|
|
11984
12012
|
const rawKey = req.headers.get("x-license-key") || (body == null ? void 0 : body.licenseKey) || ((_a3 = req.headers.get("authorization")) == null ? void 0 : _a3.replace(/^Bearer\s+/i, "")) || config.licenseKey || process.env.NEXT_PUBLIC_RETRIVORA_LICENSE_KEY || process.env.RETRIVORA_LICENSE_KEY || "";
|
|
11985
12013
|
const licenseKey = (rawKey || "").trim().replace(/^["']|["']$/g, "").trim();
|
|
11986
12014
|
const projectId = (body == null ? void 0 : body.projectId) || config.projectId || "";
|
|
12015
|
+
console.log(`[DEBUG] createLicenseHandler: projectId="${projectId}", body.projectId="${body == null ? void 0 : body.projectId}", config.projectId="${config.projectId}"`);
|
|
11987
12016
|
const payload = await LicenseVerifier.verifyAsync(licenseKey, projectId);
|
|
11988
12017
|
return import_server.NextResponse.json({
|
|
11989
12018
|
valid: true,
|
|
@@ -12361,7 +12390,7 @@ function createRagHandler(configOrPlugin, options) {
|
|
|
12361
12390
|
}
|
|
12362
12391
|
}
|
|
12363
12392
|
async function getSegment(req, context) {
|
|
12364
|
-
var _a3, _b;
|
|
12393
|
+
var _a3, _b, _c;
|
|
12365
12394
|
const contentType = req.headers.get("content-type") || "";
|
|
12366
12395
|
if (contentType.includes("multipart/form-data")) {
|
|
12367
12396
|
return "upload";
|
|
@@ -12376,10 +12405,12 @@ function createRagHandler(configOrPlugin, options) {
|
|
|
12376
12405
|
if (pathname.endsWith("/suggestions")) return "suggestions";
|
|
12377
12406
|
if (pathname.endsWith("/feedback")) return "feedback";
|
|
12378
12407
|
if (pathname.endsWith("/history")) return "history";
|
|
12408
|
+
if (pathname.endsWith("/history/clear")) return "history/clear";
|
|
12409
|
+
if (pathname.endsWith("/sessions")) return "sessions";
|
|
12379
12410
|
} catch (e) {
|
|
12380
12411
|
}
|
|
12381
12412
|
const resolvedParams = typeof ((_a3 = context == null ? void 0 : context.params) == null ? void 0 : _a3.then) === "function" ? await context.params : context == null ? void 0 : context.params;
|
|
12382
|
-
const segments = (resolvedParams == null ? void 0 : resolvedParams.retrivora) || ((_b = resolvedParams == null ? void 0 : resolvedParams.params) == null ? void 0 : _b.retrivora) || [];
|
|
12413
|
+
const segments = (resolvedParams == null ? void 0 : resolvedParams.retrivora) || ((_b = resolvedParams == null ? void 0 : resolvedParams.params) == null ? void 0 : _b.retrivora) || (resolvedParams == null ? void 0 : resolvedParams.rag) || ((_c = resolvedParams == null ? void 0 : resolvedParams.params) == null ? void 0 : _c.rag) || [];
|
|
12383
12414
|
const joined = segments.join("/");
|
|
12384
12415
|
return joined || "chat";
|
|
12385
12416
|
}
|
|
@@ -12687,8 +12718,9 @@ var LicenseConfigResolver = class {
|
|
|
12687
12718
|
provider: llmProvider,
|
|
12688
12719
|
model: tierConfig.llmModel,
|
|
12689
12720
|
apiKey: llmApiKey,
|
|
12690
|
-
maxTokens: tierConfig.maxTokens,
|
|
12721
|
+
maxTokens: tierConfig == null ? void 0 : tierConfig.maxTokens,
|
|
12691
12722
|
temperature: 0.7,
|
|
12723
|
+
systemPrompt: tierConfig == null ? void 0 : tierConfig.systemPrompt,
|
|
12692
12724
|
options: {}
|
|
12693
12725
|
};
|
|
12694
12726
|
const embeddingConfig = {
|