@retrivora-ai/rag-engine 0.1.2 → 0.1.4
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/ChromaDBProvider-QNI7UCX4.mjs +8 -0
- package/dist/DocumentChunker-BQ5kQD7B.d.ts +155 -0
- package/dist/DocumentChunker-D9-fObJp.d.mts +155 -0
- package/dist/LLMFactory-XC55FTD2.mjs +7 -0
- package/dist/MilvusProvider-OO6QGZDZ.mjs +8 -0
- package/dist/MongoDBProvider-WWVJG3WT.mjs +8 -0
- package/dist/PineconeProvider-NJ675H7U.mjs +8 -0
- package/dist/{RAGPipeline-BmkIv1HD.d.mts → Pipeline-Bo6CUCox.d.mts} +76 -159
- package/dist/{RAGPipeline-BmkIv1HD.d.ts → Pipeline-Bo6CUCox.d.ts} +76 -159
- package/dist/PostgreSQLProvider-ISNMD3BE.mjs +8 -0
- package/dist/QdrantProvider-LJWOIGES.mjs +8 -0
- package/dist/RedisProvider-ASONNYBI.mjs +8 -0
- package/dist/WeaviateProvider-PSDCUGC7.mjs +8 -0
- package/dist/chunk-6FODXNUF.mjs +91 -0
- package/dist/chunk-7NXI6ZWX.mjs +89 -0
- package/dist/chunk-AALIF3AL.mjs +91 -0
- package/dist/chunk-AIAB2IEE.mjs +394 -0
- package/dist/chunk-FGGSVVSY.mjs +162 -0
- package/dist/chunk-GD3QJFNN.mjs +424 -0
- package/dist/chunk-HUGLYKD6.mjs +84 -0
- package/dist/chunk-I4E63NIC.mjs +24 -0
- package/dist/chunk-QEYVWVT5.mjs +102 -0
- package/dist/chunk-S5DRHETN.mjs +110 -0
- package/dist/chunk-V75V7BT2.mjs +117 -0
- package/dist/chunk-VOIWNO5O.mjs +11 -0
- package/dist/chunk-VPNRDXIA.mjs +74 -0
- package/dist/handlers/index.d.mts +9 -33
- package/dist/handlers/index.d.ts +9 -33
- package/dist/handlers/index.js +1477 -959
- package/dist/handlers/index.mjs +4 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1646 -19
- package/dist/index.mjs +14 -2
- package/dist/server.d.mts +93 -56
- package/dist/server.d.ts +93 -56
- package/dist/server.js +1531 -1096
- package/dist/server.mjs +56 -131
- package/package.json +1 -1
- package/src/app/page.tsx +1 -1
- package/src/components/MessageBubble.tsx +1 -1
- package/src/components/SourceCard.tsx +1 -1
- package/src/config/RagConfig.ts +1 -1
- package/src/config/serverConfig.ts +2 -2
- package/src/core/ConfigResolver.ts +69 -0
- package/src/core/Pipeline.ts +109 -0
- package/src/core/ProviderRegistry.ts +71 -0
- package/src/core/VectorPlugin.ts +51 -0
- package/src/handlers/index.ts +21 -100
- package/src/hooks/useRagChat.ts +1 -1
- package/src/index.ts +8 -6
- package/src/providers/vectordb/BaseVectorProvider.ts +61 -0
- package/src/providers/vectordb/ChromaDBProvider.ts +94 -0
- package/src/providers/vectordb/MilvusProvider.ts +100 -0
- package/src/providers/vectordb/MongoDBProvider.ts +118 -0
- package/src/{vectordb/adapters/PineconeAdapter.ts → providers/vectordb/PineconeProvider.ts} +21 -56
- package/src/{vectordb/adapters/PgVectorAdapter.ts → providers/vectordb/PostgreSQLProvider.ts} +23 -58
- package/src/providers/vectordb/QdrantProvider.ts +95 -0
- package/src/providers/vectordb/RedisProvider.ts +84 -0
- package/src/providers/vectordb/WeaviateProvider.ts +124 -0
- package/src/server.ts +16 -8
- package/src/test-refactor.ts +59 -0
- package/src/types/index.ts +13 -0
- package/src/utils/templateUtils.ts +6 -6
- package/dist/DocumentChunker-BUrIrcPk.d.mts +0 -43
- package/dist/DocumentChunker-BUrIrcPk.d.ts +0 -43
- package/dist/chunk-W57OWMJK.mjs +0 -1256
- package/dist/chunk-ZPXLQR5Q.mjs +0 -67
- package/src/rag/RAGPipeline.ts +0 -196
- package/src/vectordb/IVectorDB.ts +0 -75
- package/src/vectordb/VectorDBFactory.ts +0 -41
- package/src/vectordb/adapters/MongoDbAdapter.ts +0 -175
- package/src/vectordb/adapters/UniversalVectorDBAdapter.ts +0 -177
package/dist/handlers/index.mjs
CHANGED
|
@@ -3,8 +3,10 @@ import {
|
|
|
3
3
|
createHealthHandler,
|
|
4
4
|
createIngestHandler,
|
|
5
5
|
createUploadHandler
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-FGGSVVSY.mjs";
|
|
7
|
+
import "../chunk-AIAB2IEE.mjs";
|
|
8
|
+
import "../chunk-GD3QJFNN.mjs";
|
|
9
|
+
import "../chunk-I4E63NIC.mjs";
|
|
8
10
|
export {
|
|
9
11
|
createChatHandler,
|
|
10
12
|
createHealthHandler,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
export { C as Chunk, a as ChunkOptions, b as ConfigResolver, P as ProviderRegistry, V as VectorPlugin } from './DocumentChunker-D9-fObJp.mjs';
|
|
2
|
+
import { C as ChatMessage, V as VectorMatch, U as UIConfig } from './Pipeline-Bo6CUCox.mjs';
|
|
3
|
+
export { a as ChatOptions, b as ChatResponse, E as EmbedOptions, c as EmbeddingConfig, I as ILLMProvider, d as IngestDocument, L as LLMConfig, P as Pipeline, R as RAGConfig, e as RagConfig, f as UpsertDocument, g as VectorDBConfig } from './Pipeline-Bo6CUCox.mjs';
|
|
1
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
5
|
import React$1, { ReactNode } from 'react';
|
|
3
|
-
import { C as ChatMessage, V as VectorMatch, U as UIConfig } from './RAGPipeline-BmkIv1HD.mjs';
|
|
4
|
-
export { a as ChatOptions, b as ChatResponse, E as EmbedOptions, c as EmbeddingConfig, I as ILLMProvider, d as IVectorDB, e as IngestDocument, L as LLMConfig, R as RAGConfig, f as RagConfig, g as UpsertDocument, h as VectorDBConfig } from './RAGPipeline-BmkIv1HD.mjs';
|
|
5
|
-
export { C as Chunk, a as ChunkOptions } from './DocumentChunker-BUrIrcPk.mjs';
|
|
6
6
|
|
|
7
7
|
interface ChatWidgetProps {
|
|
8
8
|
/** Position of the floating button. Defaults to bottom-right. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
export { C as Chunk, a as ChunkOptions, b as ConfigResolver, P as ProviderRegistry, V as VectorPlugin } from './DocumentChunker-BQ5kQD7B.js';
|
|
2
|
+
import { C as ChatMessage, V as VectorMatch, U as UIConfig } from './Pipeline-Bo6CUCox.js';
|
|
3
|
+
export { a as ChatOptions, b as ChatResponse, E as EmbedOptions, c as EmbeddingConfig, I as ILLMProvider, d as IngestDocument, L as LLMConfig, P as Pipeline, R as RAGConfig, e as RagConfig, f as UpsertDocument, g as VectorDBConfig } from './Pipeline-Bo6CUCox.js';
|
|
1
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
5
|
import React$1, { ReactNode } from 'react';
|
|
3
|
-
import { C as ChatMessage, V as VectorMatch, U as UIConfig } from './RAGPipeline-BmkIv1HD.js';
|
|
4
|
-
export { a as ChatOptions, b as ChatResponse, E as EmbedOptions, c as EmbeddingConfig, I as ILLMProvider, d as IVectorDB, e as IngestDocument, L as LLMConfig, R as RAGConfig, f as RagConfig, g as UpsertDocument, h as VectorDBConfig } from './RAGPipeline-BmkIv1HD.js';
|
|
5
|
-
export { C as Chunk, a as ChunkOptions } from './DocumentChunker-BUrIrcPk.js';
|
|
6
6
|
|
|
7
7
|
interface ChatWidgetProps {
|
|
8
8
|
/** Position of the floating button. Defaults to bottom-right. */
|