@retrivora-ai/rag-engine 2.4.7 → 2.4.9
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-DlAkfGbv.d.ts → BatchProcessor-B8OLSahY.d.ts} +15 -1
- package/dist/{BatchProcessor-BZhwvT6o.d.mts → BatchProcessor-OVOIlNfK.d.mts} +15 -1
- package/dist/{ILLMProvider-BYQd0Nys.d.mts → ILLMProvider-BynaFBpy.d.mts} +6 -0
- package/dist/{ILLMProvider-BYQd0Nys.d.ts → ILLMProvider-BynaFBpy.d.ts} +6 -0
- package/dist/handlers/index.d.mts +2 -2
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.js +195 -121
- package/dist/handlers/index.mjs +195 -121
- package/dist/{index-DtDY4Dwa.d.ts → index-BC635WW-.d.ts} +1 -1
- package/dist/{index-BTLsJ0da.d.mts → index-D2mY1CrY.d.mts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +78 -40
- package/dist/index.mjs +81 -43
- package/dist/server.d.mts +9 -9
- package/dist/server.d.ts +9 -9
- package/dist/server.js +195 -121
- package/dist/server.mjs +195 -121
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
|
|
2
|
-
import { W as WidgetPosition, P as Product, u as UIConfig, c as ProjectChatSettings, q as RagMessage, y as VectorMatch, L as LLMConfig, f as EmbeddingConfig, V as VectorDBConfig, U as UITransformationResponse, p as RagConfig, I as ILLMProvider, h as IngestDocument, C as ChatMessage, e as ChatResponse, _ as RetrievalResult, v as UniversalRagConfig } from './ILLMProvider-
|
|
2
|
+
import { W as WidgetPosition, P as Product, u as UIConfig, c as ProjectChatSettings, q as RagMessage, y as VectorMatch, L as LLMConfig, f as EmbeddingConfig, V as VectorDBConfig, U as UITransformationResponse, p as RagConfig, I as ILLMProvider, h as IngestDocument, C as ChatMessage, e as ChatResponse, _ as RetrievalResult, v as UniversalRagConfig } from './ILLMProvider-BynaFBpy.js';
|
|
3
3
|
|
|
4
4
|
interface ArchitectureCardProps {
|
|
5
5
|
icon: ReactNode;
|
|
@@ -480,6 +480,20 @@ declare class Pipeline {
|
|
|
480
480
|
* Used by the stream handler to pass to UITransformer.analyzeAndDecide().
|
|
481
481
|
*/
|
|
482
482
|
getLLMProvider(): ILLMProvider | undefined;
|
|
483
|
+
/**
|
|
484
|
+
* True when multi-agent / MCP mode is active:
|
|
485
|
+
* architecture === 'multi-agent' OR mcpServers array is non-empty.
|
|
486
|
+
* Uses MultiAgentCoordinator (custom supervisor loop).
|
|
487
|
+
*/
|
|
488
|
+
private get isMultiAgentMode();
|
|
489
|
+
/**
|
|
490
|
+
* True when the LangChain ReAct agent mode is selected:
|
|
491
|
+
* architecture === 'agentic'.
|
|
492
|
+
* Uses LangChainAgent (LangGraph-backed ReAct, optional peer dep).
|
|
493
|
+
*/
|
|
494
|
+
private get isLangChainAgentMode();
|
|
495
|
+
/** Union of both agentic execution paths — used to gate the normal RAG pipeline. */
|
|
496
|
+
private get isAgenticMode();
|
|
483
497
|
initialize(): Promise<void>;
|
|
484
498
|
private loadColdContext;
|
|
485
499
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, MouseEvent, ReactNode, ElementType } from 'react';
|
|
2
|
-
import { W as WidgetPosition, P as Product, u as UIConfig, c as ProjectChatSettings, q as RagMessage, y as VectorMatch, L as LLMConfig, f as EmbeddingConfig, V as VectorDBConfig, U as UITransformationResponse, p as RagConfig, I as ILLMProvider, h as IngestDocument, C as ChatMessage, e as ChatResponse, _ as RetrievalResult, v as UniversalRagConfig } from './ILLMProvider-
|
|
2
|
+
import { W as WidgetPosition, P as Product, u as UIConfig, c as ProjectChatSettings, q as RagMessage, y as VectorMatch, L as LLMConfig, f as EmbeddingConfig, V as VectorDBConfig, U as UITransformationResponse, p as RagConfig, I as ILLMProvider, h as IngestDocument, C as ChatMessage, e as ChatResponse, _ as RetrievalResult, v as UniversalRagConfig } from './ILLMProvider-BynaFBpy.mjs';
|
|
3
3
|
|
|
4
4
|
interface ArchitectureCardProps {
|
|
5
5
|
icon: ReactNode;
|
|
@@ -480,6 +480,20 @@ declare class Pipeline {
|
|
|
480
480
|
* Used by the stream handler to pass to UITransformer.analyzeAndDecide().
|
|
481
481
|
*/
|
|
482
482
|
getLLMProvider(): ILLMProvider | undefined;
|
|
483
|
+
/**
|
|
484
|
+
* True when multi-agent / MCP mode is active:
|
|
485
|
+
* architecture === 'multi-agent' OR mcpServers array is non-empty.
|
|
486
|
+
* Uses MultiAgentCoordinator (custom supervisor loop).
|
|
487
|
+
*/
|
|
488
|
+
private get isMultiAgentMode();
|
|
489
|
+
/**
|
|
490
|
+
* True when the LangChain ReAct agent mode is selected:
|
|
491
|
+
* architecture === 'agentic'.
|
|
492
|
+
* Uses LangChainAgent (LangGraph-backed ReAct, optional peer dep).
|
|
493
|
+
*/
|
|
494
|
+
private get isLangChainAgentMode();
|
|
495
|
+
/** Union of both agentic execution paths — used to gate the normal RAG pipeline. */
|
|
496
|
+
private get isAgenticMode();
|
|
483
497
|
initialize(): Promise<void>;
|
|
484
498
|
private loadColdContext;
|
|
485
499
|
/**
|
|
@@ -318,6 +318,12 @@ interface RAGConfig {
|
|
|
318
318
|
* Defaults to built-in list (find, search, tell me about, etc.).
|
|
319
319
|
*/
|
|
320
320
|
vectorKeywords?: string[];
|
|
321
|
+
/**
|
|
322
|
+
* Maximum number of tool-call iterations allowed in a single agentic request.
|
|
323
|
+
* Applies to MultiAgentCoordinator (architecture: 'multi-agent' / mcpServers present).
|
|
324
|
+
* Defaults to 5.
|
|
325
|
+
*/
|
|
326
|
+
agentMaxIterations?: number;
|
|
321
327
|
/** Cold RAG (Cache Augmented Generation) configuration */
|
|
322
328
|
cag?: CAGConfig;
|
|
323
329
|
/** Chat history configuration */
|
|
@@ -318,6 +318,12 @@ interface RAGConfig {
|
|
|
318
318
|
* Defaults to built-in list (find, search, tell me about, etc.).
|
|
319
319
|
*/
|
|
320
320
|
vectorKeywords?: string[];
|
|
321
|
+
/**
|
|
322
|
+
* Maximum number of tool-call iterations allowed in a single agentic request.
|
|
323
|
+
* Applies to MultiAgentCoordinator (architecture: 'multi-agent' / mcpServers present).
|
|
324
|
+
* Defaults to 5.
|
|
325
|
+
*/
|
|
326
|
+
agentMaxIterations?: number;
|
|
321
327
|
/** Cold RAG (Cache Augmented Generation) configuration */
|
|
322
328
|
cag?: CAGConfig;
|
|
323
329
|
/** Chat history configuration */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'next/server';
|
|
2
|
-
export { b as HandlerOptions, d as createChatHandler, e as createFeedbackHandler, f as createHealthHandler, g as createHistoryHandler, h as createIngestHandler, p as createLicenseHandler, i as createRagHandler, j as createSessionsHandler, k as createStreamHandler, q as createSuggestionsHandler, l as createUploadHandler, s as sseErrorFrame, m as sseFrame, n as sseMetaFrame, r as sseObservabilityFrame, o as sseTextFrame, t as sseUIFrame } from '../index-
|
|
3
|
-
import '../ILLMProvider-
|
|
2
|
+
export { b as HandlerOptions, d as createChatHandler, e as createFeedbackHandler, f as createHealthHandler, g as createHistoryHandler, h as createIngestHandler, p as createLicenseHandler, i as createRagHandler, j as createSessionsHandler, k as createStreamHandler, q as createSuggestionsHandler, l as createUploadHandler, s as sseErrorFrame, m as sseFrame, n as sseMetaFrame, r as sseObservabilityFrame, o as sseTextFrame, t as sseUIFrame } from '../index-D2mY1CrY.mjs';
|
|
3
|
+
import '../ILLMProvider-BynaFBpy.mjs';
|
package/dist/handlers/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'next/server';
|
|
2
|
-
export { b as HandlerOptions, d as createChatHandler, e as createFeedbackHandler, f as createHealthHandler, g as createHistoryHandler, h as createIngestHandler, p as createLicenseHandler, i as createRagHandler, j as createSessionsHandler, k as createStreamHandler, q as createSuggestionsHandler, l as createUploadHandler, s as sseErrorFrame, m as sseFrame, n as sseMetaFrame, r as sseObservabilityFrame, o as sseTextFrame, t as sseUIFrame } from '../index-
|
|
3
|
-
import '../ILLMProvider-
|
|
2
|
+
export { b as HandlerOptions, d as createChatHandler, e as createFeedbackHandler, f as createHealthHandler, g as createHistoryHandler, h as createIngestHandler, p as createLicenseHandler, i as createRagHandler, j as createSessionsHandler, k as createStreamHandler, q as createSuggestionsHandler, l as createUploadHandler, s as sseErrorFrame, m as sseFrame, n as sseMetaFrame, r as sseObservabilityFrame, o as sseTextFrame, t as sseUIFrame } from '../index-BC635WW-.js';
|
|
3
|
+
import '../ILLMProvider-BynaFBpy.js';
|