@retrivora-ai/rag-engine 0.3.8 → 0.3.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/{MongoDBProvider-APKBGMST.mjs → MongoDBProvider-AJYTFXQA.mjs} +1 -1
- package/dist/{chunk-FIOUSUW7.mjs → chunk-3DU2ASYU.mjs} +1 -1
- package/dist/{chunk-WKBINM4Z.mjs → chunk-DMXS64U2.mjs} +1 -0
- package/dist/handlers/index.js +1 -0
- package/dist/handlers/index.mjs +1 -1
- package/dist/server.js +1 -0
- package/dist/server.mjs +2 -2
- package/package.json +1 -1
- package/src/providers/vectordb/MongoDBProvider.ts +4 -1
|
@@ -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-AJYTFXQA.mjs");
|
|
1382
1382
|
return new MongoDBProvider(config);
|
|
1383
1383
|
}
|
|
1384
1384
|
case "milvus": {
|
|
@@ -94,6 +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
98
|
if (key === "namespace") {
|
|
98
99
|
mongoFilter[key] = value;
|
|
99
100
|
} else {
|
package/dist/handlers/index.js
CHANGED
|
@@ -462,6 +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
466
|
if (key === "namespace") {
|
|
466
467
|
mongoFilter[key] = value;
|
|
467
468
|
} else {
|
package/dist/handlers/index.mjs
CHANGED
package/dist/server.js
CHANGED
|
@@ -474,6 +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
478
|
if (key === "namespace") {
|
|
478
479
|
mongoFilter[key] = value;
|
|
479
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-3DU2ASYU.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-DMXS64U2.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.
|
|
3
|
+
"version": "0.3.9",
|
|
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,7 +116,10 @@ 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
|
-
//
|
|
119
|
+
// Skip internal engine fields
|
|
120
|
+
if (key.startsWith('__')) continue;
|
|
121
|
+
|
|
122
|
+
// If the key is already a special key, keep it (e.g. namespace)
|
|
120
123
|
if (key === 'namespace') {
|
|
121
124
|
mongoFilter[key] = value;
|
|
122
125
|
} else {
|