@mastra/upstash 1.4.6 → 1.4.7

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.
@@ -3,7 +3,7 @@ name: mastra-upstash
3
3
  description: Documentation for @mastra/upstash. Use when working with @mastra/upstash APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/upstash"
6
- version: "1.4.6"
6
+ version: "1.4.7"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.6",
2
+ "version": "1.4.7",
3
3
  "package": "@mastra/upstash",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -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
@@ -317,6 +345,29 @@ await store.upsert({
317
345
 
318
346
  For detailed setup instructions and best practices, see the [official Elasticsearch documentation](https://www.elastic.co/docs/solutions/search/get-started).
319
347
 
348
+ **Azure AI Search**:
349
+
350
+ ```ts
351
+ import { AzureAISearchVector } from '@mastra/azure-ai-search'
352
+
353
+ const store = new AzureAISearchVector({
354
+ id: 'azure-search-vectors',
355
+ endpoint: process.env.AZURE_AI_SEARCH_ENDPOINT!,
356
+ credential: process.env.AZURE_AI_SEARCH_CREDENTIAL!,
357
+ })
358
+
359
+ await store.createIndex({
360
+ indexName: 'my-collection',
361
+ dimension: 1536,
362
+ })
363
+
364
+ await store.upsert({
365
+ indexName: 'my-collection',
366
+ vectors: embeddings,
367
+ metadata: chunks.map(chunk => ({ text: chunk.text })),
368
+ })
369
+ ```
370
+
320
371
  **Couchbase**:
321
372
 
322
373
  ```ts
@@ -534,6 +585,17 @@ Namespace names must:
534
585
 
535
586
  - Example: `_namespace` isn't valid (starts with underscore)
536
587
 
588
+ **Weaviate**:
589
+
590
+ Index names map to Weaviate collections, which:
591
+
592
+ - Are capitalized by Weaviate (the first letter is upper-cased)
593
+ - Should contain only letters, numbers, and the `_` character
594
+ - Must start with a letter, since only the first character is upper-cased (a leading digit or symbol stays invalid)
595
+ - Preserve the original Mastra index name in the collection description, so `listIndexes()` and `describeIndex()` return the name you supplied
596
+ - Example: `my_collection` is stored as `My_collection` and returned as `my_collection`
597
+ - Example: `123_collection` isn't valid (starts with a digit)
598
+
537
599
  **Cloudflare**:
538
600
 
539
601
  Index names must:
@@ -587,6 +649,17 @@ Index names must:
587
649
  - Example: `myindex-` isn't valid (ends with hyphen)
588
650
  - Example: `MyIndex` isn't valid (contains uppercase letters)
589
651
 
652
+ **Azure AI Search**:
653
+
654
+ Index names must:
655
+
656
+ - Use only lowercase letters, numbers, dashes (`-`), and underscore (`_`) characters
657
+ - Not start or end with a dash
658
+ - Be between 2 and 128 characters long
659
+ - Example: `my-index-123` and `my_index` are valid
660
+ - Example: `MyIndex` isn't valid (contains uppercase letters)
661
+ - Example: `my-index-` isn't valid (ends with a dash)
662
+
590
663
  ### Upserting Embeddings
591
664
 
592
665
  After creating an index, you can store embeddings along with their basic metadata:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/upstash",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "Upstash provider for Mastra - includes both vector and db storage capabilities",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -22,22 +22,22 @@
22
22
  "dependencies": {
23
23
  "@upstash/redis": "^1.37.0",
24
24
  "@upstash/vector": "^1.2.3",
25
- "@mastra/redis": "1.4.5"
25
+ "@mastra/redis": "1.4.6"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "22.20.1",
29
- "@vitest/coverage-v8": "4.1.10",
30
- "@vitest/ui": "4.1.10",
29
+ "@vitest/coverage-v8": "4.1.11",
30
+ "@vitest/ui": "4.1.11",
31
31
  "dotenv": "^17.4.2",
32
32
  "eslint": "^10.7.0",
33
33
  "tsdown": "0.22.9",
34
34
  "tsx": "^4.23.1",
35
35
  "typescript": "^7.0.2",
36
- "vitest": "4.1.10",
37
- "@internal/lint": "0.0.133",
38
- "@internal/storage-test-utils": "0.0.129",
39
- "@internal/types-builder": "0.0.108",
40
- "@mastra/core": "1.67.0"
36
+ "vitest": "4.1.11",
37
+ "@internal/lint": "0.0.134",
38
+ "@internal/storage-test-utils": "0.0.130",
39
+ "@mastra/core": "1.68.0",
40
+ "@internal/types-builder": "0.0.109"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@mastra/core": ">=1.61.0-0 <2.0.0-0"