@mastra/azure-ai-search 0.1.0 → 0.1.1

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-azure-ai-search
3
3
  description: Documentation for @mastra/azure-ai-search. Use when working with @mastra/azure-ai-search APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/azure-ai-search"
6
- version: "0.1.0"
6
+ version: "0.1.1"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.0",
2
+ "version": "0.1.1",
3
3
  "package": "@mastra/azure-ai-search",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -54,6 +54,29 @@ const results = await store.hybridQuery({
54
54
 
55
55
  See the [MongoDB vector reference](https://mastra.ai/reference/vectors/mongodb) for details on `createSearchIndex()`, `textQuery()`, and `hybridQuery()`.
56
56
 
57
+ ### Automated Embedding
58
+
59
+ MongoDB can generate the embeddings itself, so you don't need an embedding provider in your application. Create the index with `autoEmbed` and a Voyage AI model, write plain text, and search with a query string:
60
+
61
+ ```ts
62
+ await store.createIndex({
63
+ indexName: 'myCollection',
64
+ autoEmbed: { model: 'voyage-4' },
65
+ })
66
+ await store.upsert({
67
+ indexName: 'myCollection',
68
+ documents: chunks.map(chunk => chunk.text),
69
+ metadata: chunks.map(chunk => ({ text: chunk.text })),
70
+ })
71
+ const results = await store.query({
72
+ indexName: 'myCollection',
73
+ queryText: 'search terms',
74
+ topK: 10,
75
+ })
76
+ ```
77
+
78
+ Automated Embedding is a MongoDB Preview feature and needs a deployment where it's available. See the [MongoDB vector reference](https://mastra.ai/reference/vectors/mongodb) for the supported options and requirements.
79
+
57
80
  **PgVector**:
58
81
 
59
82
  ```ts
@@ -207,7 +230,7 @@ await store.upsert({
207
230
  **libSQL**:
208
231
 
209
232
  ```ts
210
- import { LibSQLVector } from '@mastra/core/vector/libsql'
233
+ import { LibSQLVector } from '@mastra/libsql'
211
234
 
212
235
  const store = new LibSQLVector({
213
236
  id: 'libsql-vector',
@@ -141,6 +141,7 @@ interface QueryResult {
141
141
  id: string
142
142
  score: number
143
143
  metadata: Record<string, any>
144
+ document?: string // Matched document content
144
145
  vector?: number[] // Only included if includeVector is true
145
146
  }
146
147
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/azure-ai-search",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Azure AI Search vector store provider for Mastra",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,15 +28,14 @@
28
28
  "@vitest/coverage-v8": "4.1.11",
29
29
  "@vitest/ui": "4.1.11",
30
30
  "dotenv": "^17.2.3",
31
- "eslint": "^10.7.0",
32
31
  "tsdown": "0.22.9",
33
32
  "tsx": "^4.23.1",
34
33
  "typescript": "^7.0.2",
35
34
  "vitest": "4.1.11",
36
- "@internal/lint": "0.0.134",
37
- "@internal/storage-test-utils": "0.0.130",
38
- "@internal/types-builder": "0.0.109",
39
- "@mastra/core": "1.68.0"
35
+ "@internal/lint": "0.0.145",
36
+ "@internal/storage-test-utils": "0.0.141",
37
+ "@internal/types-builder": "0.0.120",
38
+ "@mastra/core": "1.79.0"
40
39
  },
41
40
  "peerDependencies": {
42
41
  "@mastra/core": ">=1.0.0-0 <2.0.0-0"
@@ -63,7 +62,7 @@
63
62
  "test:watch": "vitest watch",
64
63
  "test:integration": "vitest run --testNamePattern=\"Integration Tests\"",
65
64
  "test:unit": "vitest run --testNamePattern=\"^(?!.*Integration Tests).*\"",
66
- "lint": "oxlint . && eslint .",
67
- "lint:fix": "oxlint --fix . && eslint --fix ."
65
+ "lint": "oxlint --type-aware .",
66
+ "lint:fix": "oxlint --type-aware --fix ."
68
67
  }
69
68
  }