@mastra/mongodb 1.7.3 → 1.7.4-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,16 @@
1
1
  # @mastra/mongodb
2
2
 
3
+ ## 1.7.4-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Removed unsupported `minScore` query option from MongoDB vector store docs and README. Exported `MongoDBQueryVectorParams` so callers can type `documentFilter` for `MongoDBVector.query()`. ([#15936](https://github.com/mastra-ai/mastra/pull/15936))
8
+
9
+ Fixes #15715
10
+
11
+ - Updated dependencies [[`1723e09`](https://github.com/mastra-ai/mastra/commit/1723e099829892419ddbfe49287acfeac2522724), [`629f9e9`](https://github.com/mastra-ai/mastra/commit/629f9e9a7e56aa8f129515a3923c5813298790c7), [`25168fb`](https://github.com/mastra-ai/mastra/commit/25168fb9c1de9db7f8171df4f58ceb842c53aa29), [`ab34b5a`](https://github.com/mastra-ai/mastra/commit/ab34b5a2191b8e4353df1dbf7b9155e7d6628d79), [`5fb6c2a`](https://github.com/mastra-ai/mastra/commit/5fb6c2a95c1843cc231704b91354311fc1f34a71), [`394f0cf`](https://github.com/mastra-ai/mastra/commit/394f0cfc31e6b4d801219fdef2e9cc69e5bc8682), [`3d7f709`](https://github.com/mastra-ai/mastra/commit/3d7f709b615e588050bb6283c4ee5cfe2978cbde), [`48a42f1`](https://github.com/mastra-ai/mastra/commit/48a42f114a4006a95e0b7a1b5ad1a24815a175c2), [`2c83efc`](https://github.com/mastra-ai/mastra/commit/2c83efc4482b3efe50830e3b8b4ba9a8d219edff), [`282a10c`](https://github.com/mastra-ai/mastra/commit/282a10c9446e9922afe80e10e3770481c8ac8a28)]:
12
+ - @mastra/core@1.31.0-alpha.0
13
+
3
14
  ## 1.7.3
4
15
 
5
16
  ### Patch Changes
package/README.md CHANGED
@@ -50,7 +50,6 @@ const results = await vectorDB.query({
50
50
  topK: 10,
51
51
  filter: { text: 'doc1' },
52
52
  includeVector: false,
53
- minScore: 0.5,
54
53
  });
55
54
 
56
55
  // Clean up
@@ -136,7 +135,6 @@ const vectorDB = new MongoDBVector({
136
135
 
137
136
  - Vector similarity search with cosine, euclidean, and dotproduct metrics (Atlas Search)
138
137
  - Metadata filtering with MongoDB-style query syntax
139
- - Minimum score threshold for queries
140
138
  - Automatic UUID generation for vectors
141
139
  - Collection (index) management: create, list, describe, delete
142
140
  - Atlas Search readiness checks for reliable testing
@@ -175,7 +173,7 @@ The following distance metrics are supported:
175
173
 
176
174
  - `createIndex({indexName, dimension, metric})`: Create a new collection with vector search support
177
175
  - `upsert({indexName, vectors, metadata?, ids?})`: Add or update vectors
178
- - `query({indexName, queryVector, topK?, filter?, includeVector?, minScore?, documentFilter?})`: Search for similar vectors (optionally filter by document content)
176
+ - `query({indexName, queryVector, topK?, filter?, includeVector?, documentFilter?})`: Search for similar vectors (optionally filter by document content)
179
177
 
180
178
  > **Note:** `documentFilter` allows filtering results based on the content of the `document` field. Example: `{ $contains: 'specific text' }` will return only vectors whose associated document contains the specified text.
181
179
 
@@ -3,7 +3,7 @@ name: mastra-mongodb
3
3
  description: Documentation for @mastra/mongodb. Use when working with @mastra/mongodb APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/mongodb"
6
- version: "1.7.3"
6
+ version: "1.7.4-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.3",
2
+ "version": "1.7.4-alpha.0",
3
3
  "package": "@mastra/mongodb",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -107,8 +107,6 @@ Searches for similar vectors with optional metadata filtering.
107
107
 
108
108
  **includeVector** (`boolean`): Whether to include vector data in results (Default: `false`)
109
109
 
110
- **minScore** (`number`): Minimum similarity score threshold (Default: `0`)
111
-
112
110
  ### `describeIndex()`
113
111
 
114
112
  Returns information about the index (collection).
package/dist/index.cjs CHANGED
@@ -14,7 +14,7 @@ var evals = require('@mastra/core/evals');
14
14
 
15
15
  // package.json
16
16
  var package_default = {
17
- version: "1.7.3"};
17
+ version: "1.7.4-alpha.0"};
18
18
  var MongoDBFilterTranslator = class extends filter.BaseFilterTranslator {
19
19
  getSupportedOperators() {
20
20
  return {