@mastra/rag 2.3.0-alpha.0 → 2.4.0-alpha.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/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @mastra/rag
2
2
 
3
+ ## 2.4.0-alpha.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Added MongoDBConfig to DatabaseConfig, exposing numCandidates for MongoDB Atlas Vector Search queries via the RAG tool layer. ([#18393](https://github.com/mastra-ai/mastra/pull/18393))
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`8be63b0`](https://github.com/mastra-ai/mastra/commit/8be63b015fb8d72cea1220f05e7dc3bb997cc249), [`345eecc`](https://github.com/mastra-ai/mastra/commit/345eecce6ba519b5d987f0e10b5de4c8e5734580), [`ee14cae`](https://github.com/mastra-ai/mastra/commit/ee14cae244805783bde518a6142de28b744b169c)]:
12
+ - @mastra/core@1.48.0-alpha.7
13
+
14
+ ## 2.3.0
15
+
16
+ ### Minor Changes
17
+
18
+ - Random bump ([#18178](https://github.com/mastra-ai/mastra/pull/18178))
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`7c0d868`](https://github.com/mastra-ai/mastra/commit/7c0d868d97d0fdbc04c14d0166dbf44d4c5a4a62), [`d9d2273`](https://github.com/mastra-ai/mastra/commit/d9d2273c702690c9a26eab2aebea879701d4355a), [`b04369d`](https://github.com/mastra-ai/mastra/commit/b04369d6b167c698ef103981171a8bf92808e756), [`8f3c262`](https://github.com/mastra-ai/mastra/commit/8f3c262587b335588a02d96b17fd6aca34c885b3)]:
23
+ - @mastra/core@1.45.0
24
+
3
25
  ## 2.3.0-alpha.0
4
26
 
5
27
  ### Minor Changes
@@ -3,7 +3,7 @@ name: mastra-rag
3
3
  description: Documentation for @mastra/rag. Use when working with @mastra/rag APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/rag"
6
- version: "2.3.0-alpha.0"
6
+ version: "2.4.0-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.3.0-alpha.0",
2
+ "version": "2.4.0-alpha.0",
3
3
  "package": "@mastra/rag",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -7412,6 +7412,7 @@ var DatabaseType = /* @__PURE__ */ ((DatabaseType2) => {
7412
7412
  DatabaseType2["Pinecone"] = "pinecone";
7413
7413
  DatabaseType2["PgVector"] = "pgvector";
7414
7414
  DatabaseType2["Chroma"] = "chroma";
7415
+ DatabaseType2["MongoDB"] = "mongodb";
7415
7416
  return DatabaseType2;
7416
7417
  })(DatabaseType || {});
7417
7418
  var DATABASE_TYPE_MAP = Object.keys(DatabaseType);
@@ -7548,6 +7549,11 @@ var databaseSpecificParams = (databaseConfig) => {
7548
7549
  databaseSpecificParams2.whereDocument = databaseConfig.chroma.whereDocument;
7549
7550
  }
7550
7551
  }
7552
+ if (databaseConfig.mongodb) {
7553
+ if (databaseConfig.mongodb.numCandidates !== void 0) {
7554
+ databaseSpecificParams2.numCandidates = databaseConfig.mongodb.numCandidates;
7555
+ }
7556
+ }
7551
7557
  Object.keys(databaseConfig).forEach((dbName) => {
7552
7558
  if (!DATABASE_TYPE_MAP.includes(dbName)) {
7553
7559
  const config = databaseConfig[dbName];