@retrivora-ai/rag-engine 0.3.9 → 0.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/{MongoDBProvider-AJYTFXQA.mjs → MongoDBProvider-HMCEDIHH.mjs} +1 -1
- package/dist/{chunk-3DU2ASYU.mjs → chunk-7MIY23YT.mjs} +1 -1
- package/dist/{chunk-DMXS64U2.mjs → chunk-MIG2VGPL.mjs} +1 -1
- package/dist/handlers/index.js +1 -1
- package/dist/handlers/index.mjs +1 -1
- package/dist/server.js +1 -1
- package/dist/server.mjs +2 -2
- package/package.json +1 -1
- package/src/providers/vectordb/MongoDBProvider.ts +2 -2
|
@@ -1378,7 +1378,7 @@ var ProviderRegistry = class {
|
|
|
1378
1378
|
return new PostgreSQLProvider(config);
|
|
1379
1379
|
}
|
|
1380
1380
|
case "mongodb": {
|
|
1381
|
-
const { MongoDBProvider } = await import("./MongoDBProvider-
|
|
1381
|
+
const { MongoDBProvider } = await import("./MongoDBProvider-HMCEDIHH.mjs");
|
|
1382
1382
|
return new MongoDBProvider(config);
|
|
1383
1383
|
}
|
|
1384
1384
|
case "milvus": {
|
|
@@ -94,7 +94,7 @@ var MongoDBProvider = class extends BaseVectorProvider {
|
|
|
94
94
|
const sanitized = super.sanitizeFilter(filter);
|
|
95
95
|
const mongoFilter = {};
|
|
96
96
|
for (const [key, value] of Object.entries(sanitized)) {
|
|
97
|
-
if (key.startsWith("__")) continue;
|
|
97
|
+
if (key.startsWith("__") || key === "keywords" || key === "queryText") continue;
|
|
98
98
|
if (key === "namespace") {
|
|
99
99
|
mongoFilter[key] = value;
|
|
100
100
|
} else {
|
package/dist/handlers/index.js
CHANGED
|
@@ -462,7 +462,7 @@ var init_MongoDBProvider = __esm({
|
|
|
462
462
|
const sanitized = super.sanitizeFilter(filter);
|
|
463
463
|
const mongoFilter = {};
|
|
464
464
|
for (const [key, value] of Object.entries(sanitized)) {
|
|
465
|
-
if (key.startsWith("__")) continue;
|
|
465
|
+
if (key.startsWith("__") || key === "keywords" || key === "queryText") continue;
|
|
466
466
|
if (key === "namespace") {
|
|
467
467
|
mongoFilter[key] = value;
|
|
468
468
|
} else {
|
package/dist/handlers/index.mjs
CHANGED
package/dist/server.js
CHANGED
|
@@ -474,7 +474,7 @@ var init_MongoDBProvider = __esm({
|
|
|
474
474
|
const sanitized = super.sanitizeFilter(filter);
|
|
475
475
|
const mongoFilter = {};
|
|
476
476
|
for (const [key, value] of Object.entries(sanitized)) {
|
|
477
|
-
if (key.startsWith("__")) continue;
|
|
477
|
+
if (key.startsWith("__") || key === "keywords" || key === "queryText") continue;
|
|
478
478
|
if (key === "namespace") {
|
|
479
479
|
mongoFilter[key] = value;
|
|
480
480
|
} else {
|
package/dist/server.mjs
CHANGED
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
createIngestHandler,
|
|
35
35
|
createUploadHandler,
|
|
36
36
|
getRagConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-7MIY23YT.mjs";
|
|
38
38
|
import "./chunk-EDLTMSNY.mjs";
|
|
39
39
|
import {
|
|
40
40
|
PineconeProvider
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./chunk-LJWWPTWE.mjs";
|
|
45
45
|
import {
|
|
46
46
|
MongoDBProvider
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-MIG2VGPL.mjs";
|
|
48
48
|
import {
|
|
49
49
|
MilvusProvider
|
|
50
50
|
} from "./chunk-3QWAK3RZ.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@retrivora-ai/rag-engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Retrivora AI is a plug-and-play AI engine for RAG chat experiences — generic vector DB + LLM provider, embeddable or standalone.",
|
|
5
5
|
"author": "Abhinav Alkuchi",
|
|
6
6
|
"license": "MIT",
|
|
@@ -116,8 +116,8 @@ export class MongoDBProvider extends BaseVectorProvider {
|
|
|
116
116
|
const mongoFilter: Record<string, unknown> = {};
|
|
117
117
|
|
|
118
118
|
for (const [key, value] of Object.entries(sanitized)) {
|
|
119
|
-
// Skip internal engine fields
|
|
120
|
-
if (key.startsWith('__')) continue;
|
|
119
|
+
// Skip internal engine fields and generic keywords
|
|
120
|
+
if (key.startsWith('__') || key === 'keywords' || key === 'queryText') continue;
|
|
121
121
|
|
|
122
122
|
// If the key is already a special key, keep it (e.g. namespace)
|
|
123
123
|
if (key === 'namespace') {
|