@retrivora-ai/rag-engine 0.1.3 → 0.1.5

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.
Files changed (74) hide show
  1. package/dist/ChromaDBProvider-QNI7UCX4.mjs +8 -0
  2. package/dist/DocumentChunker-cfaMidtA.d.mts +93 -0
  3. package/dist/DocumentChunker-cfaMidtA.d.ts +93 -0
  4. package/dist/LLMFactory-JFOY2V4X.mjs +8 -0
  5. package/dist/MilvusProvider-OO6QGZDZ.mjs +8 -0
  6. package/dist/MongoDBProvider-WWVJG3WT.mjs +8 -0
  7. package/dist/PineconeProvider-NJ675H7U.mjs +8 -0
  8. package/dist/PostgreSQLProvider-ISNMD3BE.mjs +8 -0
  9. package/dist/QdrantProvider-LJWOIGES.mjs +8 -0
  10. package/dist/RagConfig-DG_0f8ka.d.mts +145 -0
  11. package/dist/RagConfig-DG_0f8ka.d.ts +145 -0
  12. package/dist/RedisProvider-ASONNYBI.mjs +8 -0
  13. package/dist/WeaviateProvider-PSDCUGC7.mjs +8 -0
  14. package/dist/chunk-6FODXNUF.mjs +91 -0
  15. package/dist/chunk-7NXI6ZWX.mjs +89 -0
  16. package/dist/chunk-AALIF3AL.mjs +91 -0
  17. package/dist/chunk-BP4U4TT5.mjs +548 -0
  18. package/dist/chunk-HUGLYKD6.mjs +84 -0
  19. package/dist/chunk-I4E63NIC.mjs +24 -0
  20. package/dist/chunk-JI6VD5TJ.mjs +387 -0
  21. package/dist/chunk-QEYVWVT5.mjs +102 -0
  22. package/dist/chunk-S5DRHETN.mjs +110 -0
  23. package/dist/{chunk-ZPXLQR5Q.mjs → chunk-UKDXCXW7.mjs} +5 -23
  24. package/dist/chunk-V75V7BT2.mjs +117 -0
  25. package/dist/chunk-VOIWNO5O.mjs +11 -0
  26. package/dist/chunk-VPNRDXIA.mjs +74 -0
  27. package/dist/handlers/index.d.mts +9 -33
  28. package/dist/handlers/index.d.ts +9 -33
  29. package/dist/handlers/index.js +1477 -962
  30. package/dist/handlers/index.mjs +4 -2
  31. package/dist/index.d.mts +4 -3
  32. package/dist/index.d.ts +4 -3
  33. package/dist/index.js +2 -2
  34. package/dist/index.mjs +4 -2
  35. package/dist/server.d.mts +220 -53
  36. package/dist/server.d.ts +220 -53
  37. package/dist/server.js +1531 -1099
  38. package/dist/server.mjs +55 -131
  39. package/package.json +19 -2
  40. package/src/app/page.tsx +1 -1
  41. package/src/components/MessageBubble.tsx +1 -1
  42. package/src/components/SourceCard.tsx +1 -1
  43. package/src/config/RagConfig.ts +1 -1
  44. package/src/config/serverConfig.ts +2 -2
  45. package/src/core/ConfigResolver.ts +69 -0
  46. package/src/core/Pipeline.ts +101 -0
  47. package/src/core/ProviderRegistry.ts +71 -0
  48. package/src/core/VectorPlugin.ts +52 -0
  49. package/src/handlers/index.ts +21 -100
  50. package/src/hooks/useRagChat.ts +1 -1
  51. package/src/index.ts +2 -6
  52. package/src/providers/vectordb/BaseVectorProvider.ts +61 -0
  53. package/src/providers/vectordb/ChromaDBProvider.ts +94 -0
  54. package/src/providers/vectordb/MilvusProvider.ts +100 -0
  55. package/src/providers/vectordb/MongoDBProvider.ts +118 -0
  56. package/src/{vectordb/adapters/PineconeAdapter.ts → providers/vectordb/PineconeProvider.ts} +21 -56
  57. package/src/{vectordb/adapters/PgVectorAdapter.ts → providers/vectordb/PostgreSQLProvider.ts} +23 -58
  58. package/src/providers/vectordb/QdrantProvider.ts +95 -0
  59. package/src/providers/vectordb/RedisProvider.ts +84 -0
  60. package/src/providers/vectordb/WeaviateProvider.ts +124 -0
  61. package/src/server.ts +16 -8
  62. package/src/test-refactor.ts +59 -0
  63. package/src/types/index.ts +24 -0
  64. package/src/utils/templateUtils.ts +6 -6
  65. package/dist/DocumentChunker-BUrIrcPk.d.mts +0 -43
  66. package/dist/DocumentChunker-BUrIrcPk.d.ts +0 -43
  67. package/dist/RAGPipeline-BmkIv1HD.d.mts +0 -298
  68. package/dist/RAGPipeline-BmkIv1HD.d.ts +0 -298
  69. package/dist/chunk-NVOMLHXW.mjs +0 -1259
  70. package/src/rag/RAGPipeline.ts +0 -200
  71. package/src/vectordb/IVectorDB.ts +0 -75
  72. package/src/vectordb/VectorDBFactory.ts +0 -41
  73. package/src/vectordb/adapters/MongoDbAdapter.ts +0 -175
  74. package/src/vectordb/adapters/UniversalVectorDBAdapter.ts +0 -177
@@ -3,8 +3,10 @@ import {
3
3
  createHealthHandler,
4
4
  createIngestHandler,
5
5
  createUploadHandler
6
- } from "../chunk-NVOMLHXW.mjs";
7
- import "../chunk-ZPXLQR5Q.mjs";
6
+ } from "../chunk-BP4U4TT5.mjs";
7
+ import "../chunk-JI6VD5TJ.mjs";
8
+ import "../chunk-UKDXCXW7.mjs";
9
+ import "../chunk-I4E63NIC.mjs";
8
10
  export {
9
11
  createChatHandler,
10
12
  createHealthHandler,
package/dist/index.d.mts CHANGED
@@ -1,8 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  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';
3
+ import { C as ChatMessage } from './DocumentChunker-cfaMidtA.mjs';
4
+ export { a as ChatOptions, b as Chunk, c as ChunkOptions, E as EmbedOptions, I as ILLMProvider } from './DocumentChunker-cfaMidtA.mjs';
5
+ import { V as VectorMatch, U as UIConfig } from './RagConfig-DG_0f8ka.mjs';
6
+ export { C as ChatResponse, E as EmbeddingConfig, I as IngestDocument, L as LLMConfig, R as RAGConfig, a as RagConfig, b as UpsertDocument, c as VectorDBConfig } from './RagConfig-DG_0f8ka.mjs';
6
7
 
7
8
  interface ChatWidgetProps {
8
9
  /** Position of the floating button. Defaults to bottom-right. */
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  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';
3
+ import { C as ChatMessage } from './DocumentChunker-cfaMidtA.js';
4
+ export { a as ChatOptions, b as Chunk, c as ChunkOptions, E as EmbedOptions, I as ILLMProvider } from './DocumentChunker-cfaMidtA.js';
5
+ import { V as VectorMatch, U as UIConfig } from './RagConfig-DG_0f8ka.js';
6
+ export { C as ChatResponse, E as EmbeddingConfig, I as IngestDocument, L as LLMConfig, R as RAGConfig, a as RagConfig, b as UpsertDocument, c as VectorDBConfig } from './RagConfig-DG_0f8ka.js';
6
7
 
7
8
  interface ChatWidgetProps {
8
9
  /** Position of the floating button. Defaults to bottom-right. */
package/dist/index.js CHANGED
@@ -168,10 +168,10 @@ var import_react3 = require("react");
168
168
 
169
169
  // src/utils/templateUtils.ts
170
170
  function mergeDefined(base, override) {
171
+ const merged = __spreadValues({}, base || {});
171
172
  if (!override) {
172
- return __spreadValues({}, base);
173
+ return merged;
173
174
  }
174
- const merged = __spreadValues({}, base);
175
175
  for (const [key, value] of Object.entries(override)) {
176
176
  if (value !== void 0 && value !== null && value !== "") {
177
177
  merged[key] = value;
package/dist/index.mjs CHANGED
@@ -1,7 +1,9 @@
1
1
  import {
2
- __spreadValues,
3
2
  mergeDefined
4
- } from "./chunk-ZPXLQR5Q.mjs";
3
+ } from "./chunk-UKDXCXW7.mjs";
4
+ import {
5
+ __spreadValues
6
+ } from "./chunk-I4E63NIC.mjs";
5
7
 
6
8
  // src/components/ChatWidget.tsx
7
9
  import { useState as useState4 } from "react";
package/dist/server.d.mts CHANGED
@@ -1,42 +1,151 @@
1
- import { f as RagConfig, h as VectorDBConfig, d as IVectorDB, g as UpsertDocument, V as VectorMatch, L as LLMConfig, c as EmbeddingConfig, I as ILLMProvider, C as ChatMessage, a as ChatOptions, E as EmbedOptions } from './RAGPipeline-BmkIv1HD.mjs';
2
- export { b as ChatResponse, e as IngestDocument, R as RAGConfig, i as RAGPipeline, U as UIConfig } from './RAGPipeline-BmkIv1HD.mjs';
3
- export { C as Chunk, a as ChunkOptions, D as DocumentChunker } from './DocumentChunker-BUrIrcPk.mjs';
1
+ import { a as RagConfig, C as ChatResponse, I as IngestDocument, c as VectorDBConfig, b as UpsertDocument, V as VectorMatch, L as LLMConfig, E as EmbeddingConfig } from './RagConfig-DG_0f8ka.mjs';
2
+ export { R as RAGConfig, U as UIConfig } from './RagConfig-DG_0f8ka.mjs';
3
+ import { C as ChatMessage, I as ILLMProvider, a as ChatOptions, E as EmbedOptions } from './DocumentChunker-cfaMidtA.mjs';
4
+ export { b as Chunk, c as ChunkOptions, D as DocumentChunker } from './DocumentChunker-cfaMidtA.mjs';
4
5
  export { createChatHandler, createHealthHandler, createIngestHandler, createUploadHandler } from './handlers/index.mjs';
5
6
  import 'next/server';
6
7
 
7
8
  /**
8
- * serverConfig.tsreads RagConfig from environment variables at runtime.
9
- *
10
- * This keeps secrets server-side and never exposes them to the browser.
11
- * Consumer projects set these env vars in their .env.local file.
9
+ * VectorPluginmain orchestrator class.
10
+ * This is the primary interface for host applications.
12
11
  */
12
+ declare class VectorPlugin {
13
+ private config;
14
+ private pipeline;
15
+ /**
16
+ * Initializes the plugin with the host configuration.
17
+ * @param hostConfig - Configuration object passed from the host application.
18
+ */
19
+ constructor(hostConfig?: Partial<RagConfig>);
20
+ /**
21
+ * Get the current resolved configuration.
22
+ */
23
+ getConfig(): RagConfig;
24
+ /**
25
+ * Run a chat query.
26
+ */
27
+ chat(message: string, history?: ChatMessage[], namespace?: string): Promise<ChatResponse>;
28
+ /**
29
+ * Ingest documents into the vector database.
30
+ */
31
+ ingest(documents: IngestDocument[], namespace?: string): Promise<Array<{
32
+ docId: string;
33
+ chunksIngested: number;
34
+ }>>;
35
+ /**
36
+ * Check the health of the connected providers.
37
+ */
38
+ health(): Promise<Record<string, boolean>>;
39
+ }
13
40
 
14
- declare function getRagConfig(env?: Record<string, string | undefined>): RagConfig;
41
+ /**
42
+ * Pipeline — orchestrates the RAG flow: Embed → Search → Augment → Generate.
43
+ */
44
+ declare class Pipeline {
45
+ private vectorDB;
46
+ private llmProvider;
47
+ private embeddingProvider;
48
+ private chunker;
49
+ private config;
50
+ private initialised;
51
+ constructor(config: RagConfig);
52
+ initialize(): Promise<void>;
53
+ ingest(documents: IngestDocument[], namespace?: string): Promise<Array<{
54
+ docId: string;
55
+ chunksIngested: number;
56
+ }>>;
57
+ ask(question: string, history?: ChatMessage[], namespace?: string): Promise<ChatResponse>;
58
+ health(): Promise<Record<string, boolean>>;
59
+ }
15
60
 
16
61
  /**
17
- * VectorDBFactoryinstantiates the correct IVectorDB adapter
18
- * based on the VectorDBConfig.provider value.
19
- *
20
- * Usage:
21
- * const db = VectorDBFactory.create(config.vectorDb);
22
- * await db.initialize();
62
+ * ConfigResolvervalidates and normalizes host configuration.
63
+ * It merges host-provided config with environment defaults.
23
64
  */
65
+ declare class ConfigResolver {
66
+ /**
67
+ * Resolves the final configuration by merging host-provided config with defaults.
68
+ * @param hostConfig - Partial configuration passed from the host application.
69
+ */
70
+ static resolve(hostConfig?: Partial<RagConfig>): RagConfig;
71
+ /**
72
+ * Validates the configuration for required fields.
73
+ */
74
+ static validate(config: RagConfig): void;
75
+ }
24
76
 
25
- declare class VectorDBFactory {
26
- static create(config: VectorDBConfig): IVectorDB;
77
+ /**
78
+ * BaseVectorProvider — Abstract base class for all vector database providers.
79
+ * Each provider (Pinecone, Milvus, Redis, etc.) must extend this class.
80
+ */
81
+ declare abstract class BaseVectorProvider {
82
+ protected readonly config: VectorDBConfig;
83
+ protected readonly indexName: string;
84
+ constructor(config: VectorDBConfig);
85
+ /**
86
+ * Initialise the connection (create tables, verify index, etc.)
87
+ */
88
+ abstract initialize(): Promise<void>;
89
+ /**
90
+ * Insert or update a single vector + content pair.
91
+ */
92
+ abstract upsert(doc: UpsertDocument, namespace?: string): Promise<void>;
93
+ /**
94
+ * Batch upsert for efficient ingestion of many documents.
95
+ */
96
+ abstract batchUpsert(docs: UpsertDocument[], namespace?: string): Promise<void>;
97
+ /**
98
+ * Find the top-K most similar vectors to the query vector.
99
+ */
100
+ abstract query(vector: number[], topK: number, namespace?: string, filter?: Record<string, unknown>): Promise<VectorMatch[]>;
101
+ /**
102
+ * Delete a stored vector by ID.
103
+ */
104
+ abstract delete(id: string, namespace?: string): Promise<void>;
105
+ /**
106
+ * Delete all vectors in a namespace (full data reset for a project).
107
+ */
108
+ abstract deleteNamespace(namespace: string): Promise<void>;
109
+ /**
110
+ * Check if the underlying DB is reachable.
111
+ */
112
+ abstract ping(): Promise<boolean>;
113
+ /**
114
+ * Gracefully close the connection.
115
+ */
116
+ abstract disconnect(): Promise<void>;
117
+ }
118
+
119
+ /**
120
+ * ProviderRegistry — dynamic provider loader for Vector DBs and LLMs.
121
+ */
122
+ declare class ProviderRegistry {
123
+ private static vectorProviders;
124
+ /**
125
+ * Register a custom vector provider.
126
+ */
127
+ static registerVectorProvider(name: string, providerClass: new (config: VectorDBConfig) => BaseVectorProvider): void;
128
+ /**
129
+ * Creates a vector database provider based on the configuration.
130
+ */
131
+ static createVectorProvider(config: VectorDBConfig): Promise<BaseVectorProvider>;
132
+ /**
133
+ * Creates an LLM provider based on the configuration.
134
+ */
135
+ static createLLMProvider(llmConfig: LLMConfig, embeddingConfig?: EmbeddingConfig): ILLMProvider;
27
136
  }
28
137
 
29
138
  /**
30
- * Pinecone Vector DB Adapter
139
+ * serverConfig.ts reads RagConfig from environment variables at runtime.
31
140
  *
32
- * Required options in VectorDBConfig.options:
33
- * - apiKey: string – Pinecone API key
34
- * - environment?: string – Pinecone environment (legacy, optional for new projects)
141
+ * This keeps secrets server-side and never exposes them to the browser.
142
+ * Consumer projects set these env vars in their .env.local file.
35
143
  */
36
144
 
37
- declare class PineconeAdapter implements IVectorDB {
145
+ declare function getRagConfig(env?: Record<string, string | undefined>): RagConfig;
146
+
147
+ declare class PineconeProvider extends BaseVectorProvider {
38
148
  private client;
39
- private readonly indexName;
40
149
  private readonly apiKey;
41
150
  constructor(config: VectorDBConfig);
42
151
  initialize(): Promise<void>;
@@ -51,21 +160,13 @@ declare class PineconeAdapter implements IVectorDB {
51
160
  }
52
161
 
53
162
  /**
54
- * pgVector Adapter
55
- *
56
- * Stores embeddings in a PostgreSQL table using the pgvector extension.
57
- * Required options in VectorDBConfig.options:
58
- * - connectionString: string – PostgreSQL connection string
59
- * - dimensions?: number – vector dimensions (default 1536 for OpenAI ada-002)
60
- *
61
- * The adapter auto-creates the table and index on initialize().
163
+ * PostgreSQLProvider — PostgreSQL implementation using the pgvector extension.
62
164
  */
63
-
64
- declare class PgVectorAdapter implements IVectorDB {
165
+ declare class PostgreSQLProvider extends BaseVectorProvider {
65
166
  private pool;
66
- private readonly tableName;
67
167
  private readonly dimensions;
68
168
  private readonly connectionString;
169
+ private readonly tableName;
69
170
  constructor(config: VectorDBConfig);
70
171
  initialize(): Promise<void>;
71
172
  upsert(doc: UpsertDocument, namespace?: string): Promise<void>;
@@ -78,33 +179,18 @@ declare class PgVectorAdapter implements IVectorDB {
78
179
  }
79
180
 
80
181
  /**
81
- * MongoDB Adapter for Atlas Vector Search.
82
- *
83
- * Requirements:
84
- * 1. A MongoDB Atlas cluster (v6.0.11+, v7.0.2+).
85
- * 2. A Vector Search Index created on the collection.
86
- *
87
- * Config Options:
88
- * - uri: string (Required)
89
- * - database: string (Required)
90
- * - collection: string (Required)
91
- * - indexName: string (Default: 'vector_index')
92
- * - embeddingKey: string (Default: 'embedding')
93
- * - contentKey: string (Default: 'content')
94
- * - metadataKey: string (Default: 'metadata')
95
- */
96
- declare class MongoDbAdapter implements IVectorDB {
182
+ * MongoDBProvider MongoDB Atlas Vector Search implementation.
183
+ */
184
+ declare class MongoDBProvider extends BaseVectorProvider {
97
185
  private client;
98
186
  private db?;
99
187
  private collection?;
100
- private uri;
101
188
  private dbName;
102
189
  private collectionName;
103
- private indexName;
104
190
  private embeddingKey;
105
191
  private contentKey;
106
192
  private metadataKey;
107
- constructor(options: Record<string, unknown>);
193
+ constructor(config: VectorDBConfig);
108
194
  initialize(): Promise<void>;
109
195
  upsert(doc: UpsertDocument, namespace?: string): Promise<void>;
110
196
  batchUpsert(docs: UpsertDocument[], namespace?: string): Promise<void>;
@@ -115,6 +201,87 @@ declare class MongoDbAdapter implements IVectorDB {
115
201
  disconnect(): Promise<void>;
116
202
  }
117
203
 
204
+ /**
205
+ * MilvusProvider — implementation for Milvus using its REST API.
206
+ */
207
+ declare class MilvusProvider extends BaseVectorProvider {
208
+ private http;
209
+ constructor(config: VectorDBConfig);
210
+ initialize(): Promise<void>;
211
+ upsert(doc: UpsertDocument, namespace?: string): Promise<void>;
212
+ batchUpsert(docs: UpsertDocument[], namespace?: string): Promise<void>;
213
+ query(vector: number[], topK: number, namespace?: string, _filter?: Record<string, unknown>): Promise<VectorMatch[]>;
214
+ delete(id: string, _namespace?: string): Promise<void>;
215
+ deleteNamespace(_namespace: string): Promise<void>;
216
+ ping(): Promise<boolean>;
217
+ disconnect(): Promise<void>;
218
+ }
219
+
220
+ /**
221
+ * QdrantProvider — implementation for Qdrant using its REST API.
222
+ */
223
+ declare class QdrantProvider extends BaseVectorProvider {
224
+ private http;
225
+ constructor(config: VectorDBConfig);
226
+ initialize(): Promise<void>;
227
+ upsert(doc: UpsertDocument, namespace?: string): Promise<void>;
228
+ batchUpsert(docs: UpsertDocument[], namespace?: string): Promise<void>;
229
+ query(vector: number[], topK: number, namespace?: string, _filter?: Record<string, unknown>): Promise<VectorMatch[]>;
230
+ delete(id: string, _namespace?: string): Promise<void>;
231
+ deleteNamespace(_namespace: string): Promise<void>;
232
+ ping(): Promise<boolean>;
233
+ disconnect(): Promise<void>;
234
+ }
235
+
236
+ /**
237
+ * ChromaDBProvider — implementation for ChromaDB using its REST API.
238
+ */
239
+ declare class ChromaDBProvider extends BaseVectorProvider {
240
+ private http;
241
+ private collectionId;
242
+ constructor(config: VectorDBConfig);
243
+ initialize(): Promise<void>;
244
+ upsert(doc: UpsertDocument, namespace?: string): Promise<void>;
245
+ batchUpsert(docs: UpsertDocument[], namespace?: string): Promise<void>;
246
+ query(vector: number[], topK: number, namespace?: string, _filter?: Record<string, unknown>): Promise<VectorMatch[]>;
247
+ delete(id: string, _namespace?: string): Promise<void>;
248
+ deleteNamespace(_namespace: string): Promise<void>;
249
+ ping(): Promise<boolean>;
250
+ disconnect(): Promise<void>;
251
+ }
252
+
253
+ /**
254
+ * RedisProvider — implementation for Redis (e.g. Upstash) using its REST API.
255
+ */
256
+ declare class RedisProvider extends BaseVectorProvider {
257
+ private http;
258
+ constructor(config: VectorDBConfig);
259
+ initialize(): Promise<void>;
260
+ upsert(doc: UpsertDocument, namespace?: string): Promise<void>;
261
+ batchUpsert(docs: UpsertDocument[], namespace?: string): Promise<void>;
262
+ query(vector: number[], topK: number, namespace?: string, _filter?: Record<string, unknown>): Promise<VectorMatch[]>;
263
+ delete(id: string, namespace?: string): Promise<void>;
264
+ deleteNamespace(_namespace: string): Promise<void>;
265
+ ping(): Promise<boolean>;
266
+ disconnect(): Promise<void>;
267
+ }
268
+
269
+ /**
270
+ * WeaviateProvider — implementation for Weaviate using its REST/GraphQL API.
271
+ */
272
+ declare class WeaviateProvider extends BaseVectorProvider {
273
+ private http;
274
+ constructor(config: VectorDBConfig);
275
+ initialize(): Promise<void>;
276
+ upsert(doc: UpsertDocument, namespace?: string): Promise<void>;
277
+ batchUpsert(docs: UpsertDocument[], namespace?: string): Promise<void>;
278
+ query(vector: number[], topK: number, namespace?: string, _filter?: Record<string, unknown>): Promise<VectorMatch[]>;
279
+ delete(id: string, _namespace?: string): Promise<void>;
280
+ deleteNamespace(namespace: string): Promise<void>;
281
+ ping(): Promise<boolean>;
282
+ disconnect(): Promise<void>;
283
+ }
284
+
118
285
  /**
119
286
  * LLMFactory — instantiates the correct ILLMProvider based on llmConfig.provider.
120
287
  *
@@ -208,4 +375,4 @@ declare class OllamaProvider implements ILLMProvider {
208
375
  ping(): Promise<boolean>;
209
376
  }
210
377
 
211
- export { AnthropicProvider, ChatMessage, ChatOptions, EmbedOptions, EmbeddingConfig, ILLMProvider, IVectorDB, LLMConfig, LLMFactory, MongoDbAdapter, OllamaProvider, OpenAIProvider, PgVectorAdapter, PineconeAdapter, RagConfig, UpsertDocument, VectorDBConfig, VectorDBFactory, VectorMatch, getRagConfig };
378
+ export { AnthropicProvider, BaseVectorProvider, ChatMessage, ChatOptions, ChatResponse, ChromaDBProvider, ConfigResolver, EmbedOptions, EmbeddingConfig, ILLMProvider, IngestDocument, LLMConfig, LLMFactory, MilvusProvider, MongoDBProvider, OllamaProvider, OpenAIProvider, PineconeProvider, Pipeline, PostgreSQLProvider, ProviderRegistry, QdrantProvider, RagConfig, RedisProvider, UpsertDocument, VectorDBConfig, VectorMatch, VectorPlugin, WeaviateProvider, getRagConfig };