@retrivora-ai/rag-engine 1.8.0 → 1.8.1
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/DocumentChunker-Dh9TvmGG.d.mts +45 -0
- package/dist/DocumentChunker-Dh9TvmGG.d.ts +45 -0
- package/dist/{index-DPsQodME.d.mts → ILLMProvider-BfRgI1Xh.d.mts} +58 -1
- package/dist/{index-DPsQodME.d.ts → ILLMProvider-BfRgI1Xh.d.ts} +58 -1
- package/dist/MultiTablePostgresProvider-YY7LPNJK.mjs +8 -0
- package/dist/{chunk-PV3MFHWU.mjs → chunk-BFYLQYQU.mjs} +808 -439
- package/dist/chunk-R3RGUMHE.mjs +218 -0
- package/dist/handlers/index.d.mts +2 -2
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.js +995 -603
- package/dist/handlers/index.mjs +1 -1
- package/dist/{index-Bb2yEopi.d.mts → index-1Z4GuYBi.d.ts} +7 -1
- package/dist/{index-CkbTzj9J.d.ts → index-BV0z5mb6.d.mts} +7 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +491 -316
- package/dist/index.mjs +411 -217
- package/dist/server.d.mts +35 -5
- package/dist/server.d.ts +35 -5
- package/dist/server.js +1146 -777
- package/dist/server.mjs +163 -176
- package/package.json +4 -2
- package/src/app/page.tsx +1 -2
- package/src/components/MessageBubble.tsx +211 -69
- package/src/components/ProductCard.tsx +2 -2
- package/src/components/VisualizationRenderer.tsx +347 -247
- package/src/config/RagConfig.ts +5 -0
- package/src/config/serverConfig.ts +3 -1
- package/src/core/Pipeline.ts +65 -206
- package/src/core/ProviderRegistry.ts +2 -2
- package/src/core/VectorPlugin.ts +9 -0
- package/src/handlers/index.ts +23 -7
- package/src/hooks/useRagChat.ts +2 -2
- package/src/llm/LLMFactory.ts +54 -2
- package/src/llm/providers/AnthropicProvider.ts +12 -8
- package/src/llm/providers/GeminiProvider.ts +188 -143
- package/src/llm/providers/OllamaProvider.ts +7 -3
- package/src/llm/providers/OpenAIProvider.ts +12 -8
- package/src/types/chat.ts +6 -0
- package/src/types/index.ts +80 -0
- package/src/utils/SchemaMapper.ts +129 -0
- package/src/utils/UITransformer.ts +491 -181
- package/dist/DocumentChunker-C1GEEosY.d.ts +0 -93
- package/dist/DocumentChunker-CFEiRopR.d.mts +0 -93
- package/dist/PostgreSQLProvider-BMOETDZA.mjs +0 -8
- package/dist/chunk-FLOSGE6A.mjs +0 -202
package/dist/handlers/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as RagConfig, I as ILLMProvider, C as ChatMessage, d as ChatResponse, g as IngestDocument } from './ILLMProvider-BfRgI1Xh.js';
|
|
2
2
|
import { NextRequest, NextResponse } from 'next/server';
|
|
3
3
|
|
|
4
4
|
interface ValidationError {
|
|
@@ -85,6 +85,12 @@ declare class VectorPlugin {
|
|
|
85
85
|
* Get the current resolved configuration.
|
|
86
86
|
*/
|
|
87
87
|
getConfig(): RagConfig;
|
|
88
|
+
/**
|
|
89
|
+
* Get the initialized LLM provider (available after the first request).
|
|
90
|
+
* Used by handlers to pass to UITransformer.analyzeAndDecide() for
|
|
91
|
+
* LLM-driven visualization decisions.
|
|
92
|
+
*/
|
|
93
|
+
getLLMProvider(): ILLMProvider | undefined;
|
|
88
94
|
/**
|
|
89
95
|
* Perform pre-flight health checks on all configured providers.
|
|
90
96
|
* Useful to verify connectivity before running operations.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as RagConfig, I as ILLMProvider, C as ChatMessage, d as ChatResponse, g as IngestDocument } from './ILLMProvider-BfRgI1Xh.mjs';
|
|
2
2
|
import { NextRequest, NextResponse } from 'next/server';
|
|
3
3
|
|
|
4
4
|
interface ValidationError {
|
|
@@ -85,6 +85,12 @@ declare class VectorPlugin {
|
|
|
85
85
|
* Get the current resolved configuration.
|
|
86
86
|
*/
|
|
87
87
|
getConfig(): RagConfig;
|
|
88
|
+
/**
|
|
89
|
+
* Get the initialized LLM provider (available after the first request).
|
|
90
|
+
* Used by handlers to pass to UITransformer.analyzeAndDecide() for
|
|
91
|
+
* LLM-driven visualization decisions.
|
|
92
|
+
*/
|
|
93
|
+
getLLMProvider(): ILLMProvider | undefined;
|
|
88
94
|
/**
|
|
89
95
|
* Perform pre-flight health checks on all configured providers.
|
|
90
96
|
* Useful to verify connectivity before running operations.
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { CSSProperties, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { P as Product, U as UIConfig, R as RagMessage, V as VectorMatch, a as UseRagChatOptions, b as UseRagChatReturn } from './
|
|
3
|
-
export { C as ChatMessage, c as ChatOptions, d as ChatResponse, E as
|
|
4
|
-
export { C as Chunk, a as ChunkOptions
|
|
2
|
+
import { P as Product, U as UIConfig, R as RagMessage, V as VectorMatch, a as UseRagChatOptions, b as UseRagChatReturn } from './ILLMProvider-BfRgI1Xh.mjs';
|
|
3
|
+
export { C as ChatMessage, c as ChatOptions, d as ChatResponse, E as EmbedOptions, e as EmbeddingConfig, f as EmbeddingProvider, I as ILLMProvider, g as IngestDocument, L as LLMConfig, h as LLMProvider, i as RAGConfig, j as RagConfig, k as UpsertDocument, l as VectorDBConfig, m as VectorDBProvider } from './ILLMProvider-BfRgI1Xh.mjs';
|
|
4
|
+
export { C as Chunk, a as ChunkOptions } from './DocumentChunker-Dh9TvmGG.mjs';
|
|
5
5
|
|
|
6
6
|
type ChatViewportSize = 'compact' | 'medium' | 'large';
|
|
7
7
|
interface ChatWindowProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { CSSProperties, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { P as Product, U as UIConfig, R as RagMessage, V as VectorMatch, a as UseRagChatOptions, b as UseRagChatReturn } from './
|
|
3
|
-
export { C as ChatMessage, c as ChatOptions, d as ChatResponse, E as
|
|
4
|
-
export { C as Chunk, a as ChunkOptions
|
|
2
|
+
import { P as Product, U as UIConfig, R as RagMessage, V as VectorMatch, a as UseRagChatOptions, b as UseRagChatReturn } from './ILLMProvider-BfRgI1Xh.js';
|
|
3
|
+
export { C as ChatMessage, c as ChatOptions, d as ChatResponse, E as EmbedOptions, e as EmbeddingConfig, f as EmbeddingProvider, I as ILLMProvider, g as IngestDocument, L as LLMConfig, h as LLMProvider, i as RAGConfig, j as RagConfig, k as UpsertDocument, l as VectorDBConfig, m as VectorDBProvider } from './ILLMProvider-BfRgI1Xh.js';
|
|
4
|
+
export { C as Chunk, a as ChunkOptions } from './DocumentChunker-Dh9TvmGG.js';
|
|
5
5
|
|
|
6
6
|
type ChatViewportSize = 'compact' | 'medium' | 'large';
|
|
7
7
|
interface ChatWindowProps {
|