@mastra/mongodb 1.18.8 → 1.18.9-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/dist/docs/SKILL.md
CHANGED
|
@@ -248,6 +248,34 @@ await store.upsert({
|
|
|
248
248
|
})
|
|
249
249
|
```
|
|
250
250
|
|
|
251
|
+
**Weaviate**:
|
|
252
|
+
|
|
253
|
+
```ts
|
|
254
|
+
import { WeaviateVector } from '@mastra/weaviate'
|
|
255
|
+
|
|
256
|
+
const store = new WeaviateVector({
|
|
257
|
+
id: 'weaviate-vector',
|
|
258
|
+
httpHost: process.env.WEAVIATE_HOST,
|
|
259
|
+
httpPort: 443,
|
|
260
|
+
httpSecure: true,
|
|
261
|
+
grpcHost: process.env.WEAVIATE_GRPC_HOST,
|
|
262
|
+
grpcPort: 443,
|
|
263
|
+
grpcSecure: true,
|
|
264
|
+
apiKey: process.env.WEAVIATE_API_KEY,
|
|
265
|
+
})
|
|
266
|
+
|
|
267
|
+
await store.createIndex({
|
|
268
|
+
indexName: 'myCollection',
|
|
269
|
+
dimension: 1536,
|
|
270
|
+
})
|
|
271
|
+
|
|
272
|
+
await store.upsert({
|
|
273
|
+
indexName: 'myCollection',
|
|
274
|
+
vectors: embeddings,
|
|
275
|
+
metadata: chunks.map(chunk => ({ text: chunk.text })),
|
|
276
|
+
})
|
|
277
|
+
```
|
|
278
|
+
|
|
251
279
|
**Cloudflare**:
|
|
252
280
|
|
|
253
281
|
```ts
|
|
@@ -534,6 +562,17 @@ Namespace names must:
|
|
|
534
562
|
|
|
535
563
|
- Example: `_namespace` isn't valid (starts with underscore)
|
|
536
564
|
|
|
565
|
+
**Weaviate**:
|
|
566
|
+
|
|
567
|
+
Index names map to Weaviate collections, which:
|
|
568
|
+
|
|
569
|
+
- Are capitalized by Weaviate (the first letter is upper-cased)
|
|
570
|
+
- Should contain only letters, numbers, and the `_` character
|
|
571
|
+
- Must start with a letter, since only the first character is upper-cased (a leading digit or symbol stays invalid)
|
|
572
|
+
- Preserve the original Mastra index name in the collection description, so `listIndexes()` and `describeIndex()` return the name you supplied
|
|
573
|
+
- Example: `my_collection` is stored as `My_collection` and returned as `my_collection`
|
|
574
|
+
- Example: `123_collection` isn't valid (starts with a digit)
|
|
575
|
+
|
|
537
576
|
**Cloudflare**:
|
|
538
577
|
|
|
539
578
|
Index names must:
|
package/dist/index.cjs
CHANGED
|
@@ -10,7 +10,7 @@ let _mastra_core_agent = require("@mastra/core/agent");
|
|
|
10
10
|
let _mastra_core_evals = require("@mastra/core/evals");
|
|
11
11
|
let _mastra_core_storage_domains_skills = require("@mastra/core/storage/domains/skills");
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "1.18.
|
|
13
|
+
var version = "1.18.9-alpha.0";
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/vector/filter.ts
|
|
16
16
|
/**
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { MessageList } from "@mastra/core/agent";
|
|
|
9
9
|
import { saveScorePayloadSchema } from "@mastra/core/evals";
|
|
10
10
|
import { skillSnapshotFieldValuesEqual } from "@mastra/core/storage/domains/skills";
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "1.18.
|
|
12
|
+
var version = "1.18.9-alpha.0";
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/vector/filter.ts
|
|
15
15
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mongodb",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.9-alpha.0",
|
|
4
4
|
"description": "MongoDB provider for Mastra - includes vector store capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,22 +20,21 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@lukeed/uuid": "^2.0.1",
|
|
23
|
-
"cloudflare": "^5.2.0",
|
|
24
23
|
"mongodb": "^7.5.0"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
27
26
|
"@types/node": "22.20.1",
|
|
28
|
-
"@vitest/coverage-v8": "4.1.
|
|
29
|
-
"@vitest/ui": "4.1.
|
|
27
|
+
"@vitest/coverage-v8": "4.1.11",
|
|
28
|
+
"@vitest/ui": "4.1.11",
|
|
30
29
|
"eslint": "^10.7.0",
|
|
31
30
|
"tsdown": "0.22.9",
|
|
32
31
|
"tsx": "^4.23.1",
|
|
33
32
|
"typescript": "^7.0.2",
|
|
34
|
-
"vitest": "4.1.
|
|
35
|
-
"@internal/types-builder": "0.0.108",
|
|
33
|
+
"vitest": "4.1.11",
|
|
36
34
|
"@internal/storage-test-utils": "0.0.129",
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
35
|
+
"@mastra/core": "1.68.0-alpha.2",
|
|
36
|
+
"@internal/types-builder": "0.0.108",
|
|
37
|
+
"@internal/lint": "0.0.133"
|
|
39
38
|
},
|
|
40
39
|
"peerDependencies": {
|
|
41
40
|
"@mastra/core": ">=1.63.1-0 <2.0.0-0"
|