@mastra/chroma 0.0.0-vector-sources-20250516175436 → 0.0.0-vector-query-tool-provider-options-20250828222356

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,16 +1,375 @@
1
1
  # @mastra/chroma
2
2
 
3
- ## 0.0.0-vector-sources-20250516175436
3
+ ## 0.0.0-vector-query-tool-provider-options-20250828222356
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`637f323`](https://github.com/mastra-ai/mastra/commit/637f32371d79a8f78c52c0d53411af0915fcec67), [`29de0e1`](https://github.com/mastra-ai/mastra/commit/29de0e1b0a7173317ae7d1ab0c0993167c659f2b), [`00c74e7`](https://github.com/mastra-ai/mastra/commit/00c74e73b1926be0d475693bb886fb67a22ff352), [`6ac697e`](https://github.com/mastra-ai/mastra/commit/6ac697edcc2435482c247cba615277ec4765dcc4), [`af90672`](https://github.com/mastra-ai/mastra/commit/af906722d8da28688882193b1e531026f9e2e81e), [`56041d0`](https://github.com/mastra-ai/mastra/commit/56041d018863a3da6b98c512e47348647c075fb3), [`5de1555`](https://github.com/mastra-ai/mastra/commit/5de15554d3d6695211945a36928f6657e76cddc9), [`1ed5a3e`](https://github.com/mastra-ai/mastra/commit/1ed5a3e19330374c4347a4237cd2f4b9ffb60376)]:
8
+ - @mastra/core@0.0.0-vector-query-tool-provider-options-20250828222356
9
+
10
+ ## 0.11.6
11
+
12
+ ### Patch Changes
13
+
14
+ - [`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdpes for @mastra/core
15
+
16
+ - Updated dependencies []:
17
+ - @mastra/core@0.15.2
18
+
19
+ ## 0.11.5
20
+
21
+ ### Patch Changes
22
+
23
+ - [`95b2aa9`](https://github.com/mastra-ai/mastra/commit/95b2aa908230919e67efcac0d69005a2d5745298) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdeps @mastra/core
24
+
25
+ - Updated dependencies []:
26
+ - @mastra/core@0.15.1
27
+
28
+ ## 0.11.4
29
+
30
+ ### Patch Changes
31
+
32
+ - 8660c1b: Updating Chroma integration and adding support for Chroma Cloud
33
+ - 03997ae: Update peerdeps
34
+ - Updated dependencies [227c7e6]
35
+ - Updated dependencies [12cae67]
36
+ - Updated dependencies [fd3a3eb]
37
+ - Updated dependencies [6faaee5]
38
+ - Updated dependencies [4232b14]
39
+ - Updated dependencies [a89de7e]
40
+ - Updated dependencies [5a37d0c]
41
+ - Updated dependencies [4bde0cb]
42
+ - Updated dependencies [cf4f357]
43
+ - Updated dependencies [ad888a2]
44
+ - Updated dependencies [481751d]
45
+ - Updated dependencies [2454423]
46
+ - Updated dependencies [194e395]
47
+ - Updated dependencies [a722c0b]
48
+ - Updated dependencies [c30bca8]
49
+ - Updated dependencies [3b5fec7]
50
+ - Updated dependencies [a8f129d]
51
+ - @mastra/core@0.14.0
52
+
53
+ ## 0.11.4-alpha.1
54
+
55
+ ### Patch Changes
56
+
57
+ - 03997ae: Update peerdeps
58
+ - @mastra/core@0.14.0-alpha.7
59
+
60
+ ## 0.11.4-alpha.0
61
+
62
+ ### Patch Changes
63
+
64
+ - 8660c1b: Updating Chroma integration and adding support for Chroma Cloud
65
+ - Updated dependencies [6faaee5]
66
+ - Updated dependencies [4232b14]
67
+ - Updated dependencies [a89de7e]
68
+ - Updated dependencies [cf4f357]
69
+ - Updated dependencies [a722c0b]
70
+ - Updated dependencies [3b5fec7]
71
+ - @mastra/core@0.14.0-alpha.1
72
+
73
+ ## 0.11.3
74
+
75
+ ### Patch Changes
76
+
77
+ - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
78
+ - Updated dependencies [cb36de0]
79
+ - Updated dependencies [d0496e6]
80
+ - Updated dependencies [a82b851]
81
+ - Updated dependencies [ea0c5f2]
82
+ - Updated dependencies [41a0a0e]
83
+ - Updated dependencies [2871020]
84
+ - Updated dependencies [94f4812]
85
+ - Updated dependencies [e202b82]
86
+ - Updated dependencies [e00f6a0]
87
+ - Updated dependencies [4a406ec]
88
+ - Updated dependencies [b0e43c1]
89
+ - Updated dependencies [5d377e5]
90
+ - Updated dependencies [1fb812e]
91
+ - Updated dependencies [35c5798]
92
+ - @mastra/core@0.13.0
93
+
94
+ ## 0.11.3-alpha.0
95
+
96
+ ### Patch Changes
97
+
98
+ - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
99
+ - Updated dependencies [cb36de0]
100
+ - Updated dependencies [a82b851]
101
+ - Updated dependencies [41a0a0e]
102
+ - Updated dependencies [2871020]
103
+ - Updated dependencies [4a406ec]
104
+ - Updated dependencies [5d377e5]
105
+ - @mastra/core@0.13.0-alpha.2
106
+
107
+ ## 0.11.2
108
+
109
+ ### Patch Changes
110
+
111
+ - f42c4c2: update peer deps for packages to latest core range
112
+ - Updated dependencies [510e2c8]
113
+ - Updated dependencies [2f72fb2]
114
+ - Updated dependencies [27cc97a]
115
+ - Updated dependencies [3f89307]
116
+ - Updated dependencies [9eda7d4]
117
+ - Updated dependencies [9d49408]
118
+ - Updated dependencies [41daa63]
119
+ - Updated dependencies [ad0a58b]
120
+ - Updated dependencies [254a36b]
121
+ - Updated dependencies [2ecf658]
122
+ - Updated dependencies [7a7754f]
123
+ - Updated dependencies [fc92d80]
124
+ - Updated dependencies [e0f73c6]
125
+ - Updated dependencies [0b89602]
126
+ - Updated dependencies [4d37822]
127
+ - Updated dependencies [23a6a7c]
128
+ - Updated dependencies [cda801d]
129
+ - Updated dependencies [a77c823]
130
+ - Updated dependencies [ff9c125]
131
+ - Updated dependencies [09bca64]
132
+ - Updated dependencies [b8efbb9]
133
+ - Updated dependencies [71466e7]
134
+ - Updated dependencies [0c99fbe]
135
+ - @mastra/core@0.12.0
136
+
137
+ ## 0.11.2-alpha.0
138
+
139
+ ### Patch Changes
140
+
141
+ - f42c4c2: update peer deps for packages to latest core range
142
+ - @mastra/core@0.12.0-alpha.5
143
+
144
+ ## 0.11.1
145
+
146
+ ### Patch Changes
147
+
148
+ - ce088f5: Update all peerdeps to latest core
149
+ - @mastra/core@0.11.1
150
+
151
+ ## 0.11.0
152
+
153
+ ### Minor Changes
154
+
155
+ - 8a3bfd2: Update peerdeps to latest core
156
+
157
+ ### Patch Changes
158
+
159
+ - 144eb0b: [MASTRA-3669] Metadata Filter Types
160
+ - 0e17048: Throw mastra errors in storage packages
161
+ - Updated dependencies [15e9d26]
162
+ - Updated dependencies [d1baedb]
163
+ - Updated dependencies [d8f2d19]
164
+ - Updated dependencies [4d21bf2]
165
+ - Updated dependencies [07d6d88]
166
+ - Updated dependencies [9d52b17]
167
+ - Updated dependencies [2097952]
168
+ - Updated dependencies [792c4c0]
169
+ - Updated dependencies [5d74aab]
170
+ - Updated dependencies [a8b194f]
171
+ - Updated dependencies [4fb0cc2]
172
+ - Updated dependencies [d2a7a31]
173
+ - Updated dependencies [502fe05]
174
+ - Updated dependencies [144eb0b]
175
+ - Updated dependencies [8ba1b51]
176
+ - Updated dependencies [4efcfa0]
177
+ - Updated dependencies [0e17048]
178
+ - @mastra/core@0.10.7
179
+
180
+ ## 0.11.0-alpha.2
181
+
182
+ ### Minor Changes
183
+
184
+ - 8a3bfd2: Update peerdeps to latest core
185
+
186
+ ### Patch Changes
187
+
188
+ - Updated dependencies [792c4c0]
189
+ - Updated dependencies [502fe05]
190
+ - Updated dependencies [4efcfa0]
191
+ - @mastra/core@0.10.7-alpha.3
192
+
193
+ ## 0.10.4-alpha.1
194
+
195
+ ### Patch Changes
196
+
197
+ - 144eb0b: [MASTRA-3669] Metadata Filter Types
198
+ - Updated dependencies [15e9d26]
199
+ - Updated dependencies [07d6d88]
200
+ - Updated dependencies [5d74aab]
201
+ - Updated dependencies [144eb0b]
202
+ - @mastra/core@0.10.7-alpha.2
203
+
204
+ ## 0.10.4-alpha.0
205
+
206
+ ### Patch Changes
207
+
208
+ - 0e17048: Throw mastra errors in storage packages
209
+ - Updated dependencies [d1baedb]
210
+ - Updated dependencies [4d21bf2]
211
+ - Updated dependencies [2097952]
212
+ - Updated dependencies [4fb0cc2]
213
+ - Updated dependencies [d2a7a31]
214
+ - Updated dependencies [0e17048]
215
+ - @mastra/core@0.10.7-alpha.1
216
+
217
+ ## 0.10.3
218
+
219
+ ### Patch Changes
220
+
221
+ - 63f6b7d: dependencies updates:
222
+ - Updated dependency [`chromadb@^2.4.6` ↗︎](https://www.npmjs.com/package/chromadb/v/2.4.6) (from `^2.2.0`, in `dependencies`)
223
+ - Updated dependencies [63f6b7d]
224
+ - Updated dependencies [12a95fc]
225
+ - Updated dependencies [4b0f8a6]
226
+ - Updated dependencies [51264a5]
227
+ - Updated dependencies [8e6f677]
228
+ - Updated dependencies [d70c420]
229
+ - Updated dependencies [ee9af57]
230
+ - Updated dependencies [36f1c36]
231
+ - Updated dependencies [2a16996]
232
+ - Updated dependencies [10d352e]
233
+ - Updated dependencies [9589624]
234
+ - Updated dependencies [53d3c37]
235
+ - Updated dependencies [751c894]
236
+ - Updated dependencies [577ce3a]
237
+ - Updated dependencies [9260b3a]
238
+ - @mastra/core@0.10.6
239
+
240
+ ## 0.10.3-alpha.0
241
+
242
+ ### Patch Changes
243
+
244
+ - 63f6b7d: dependencies updates:
245
+ - Updated dependency [`chromadb@^2.4.6` ↗︎](https://www.npmjs.com/package/chromadb/v/2.4.6) (from `^2.2.0`, in `dependencies`)
246
+ - Updated dependencies [63f6b7d]
247
+ - Updated dependencies [36f1c36]
248
+ - Updated dependencies [10d352e]
249
+ - Updated dependencies [53d3c37]
250
+ - @mastra/core@0.10.6-alpha.0
251
+
252
+ ## 0.10.2
253
+
254
+ ### Patch Changes
255
+
256
+ - 66f4424: Update peerdeps
257
+ - Updated dependencies [d1ed912]
258
+ - Updated dependencies [f6fd25f]
259
+ - Updated dependencies [dffb67b]
260
+ - Updated dependencies [f1f1f1b]
261
+ - Updated dependencies [925ab94]
262
+ - Updated dependencies [f9816ae]
263
+ - Updated dependencies [82090c1]
264
+ - Updated dependencies [1b443fd]
265
+ - Updated dependencies [ce97900]
266
+ - Updated dependencies [f1309d3]
267
+ - Updated dependencies [14a2566]
268
+ - Updated dependencies [f7f8293]
269
+ - Updated dependencies [48eddb9]
270
+ - @mastra/core@0.10.4
271
+
272
+ ## 0.10.2-alpha.0
273
+
274
+ ### Patch Changes
275
+
276
+ - 66f4424: Update peerdeps
277
+
278
+ ## 0.10.1
279
+
280
+ ### Patch Changes
281
+
282
+ - f0d559f: Fix peerdeps for alpha channel
283
+ - Updated dependencies [ee77e78]
284
+ - Updated dependencies [592a2db]
285
+ - Updated dependencies [e5dc18d]
286
+ - Updated dependencies [ab5adbe]
287
+ - Updated dependencies [1e8bb40]
288
+ - Updated dependencies [1b5fc55]
289
+ - Updated dependencies [195c428]
290
+ - Updated dependencies [f73e11b]
291
+ - Updated dependencies [37643b8]
292
+ - Updated dependencies [99fd6cf]
293
+ - Updated dependencies [c5bf1ce]
294
+ - Updated dependencies [add596e]
295
+ - Updated dependencies [8dc94d8]
296
+ - Updated dependencies [ecebbeb]
297
+ - Updated dependencies [79d5145]
298
+ - Updated dependencies [12b7002]
299
+ - Updated dependencies [2901125]
300
+ - @mastra/core@0.10.2
301
+
302
+ ## 0.10.1-alpha.0
303
+
304
+ ### Patch Changes
305
+
306
+ - f0d559f: Fix peerdeps for alpha channel
307
+ - Updated dependencies [1e8bb40]
308
+ - @mastra/core@0.10.2-alpha.2
309
+
310
+ ## 0.10.0
311
+
312
+ ### Minor Changes
313
+
314
+ - 83da932: Move @mastra/core to peerdeps
4
315
 
5
316
  ### Patch Changes
6
317
 
7
318
  - d0ee3c6: Change all public functions and constructors in vector stores to use named args and prepare to phase out positional args
319
+ - a7292b0: BREAKING(@mastra/core, all vector stores): Vector store breaking changes (remove deprecated functions and positional arguments)
320
+ - Updated dependencies [b3a3d63]
321
+ - Updated dependencies [344f453]
322
+ - Updated dependencies [0a3ae6d]
323
+ - Updated dependencies [95911be]
8
324
  - Updated dependencies [f53a6ac]
325
+ - Updated dependencies [5eb5a99]
326
+ - Updated dependencies [7e632c5]
327
+ - Updated dependencies [1e9fbfa]
9
328
  - Updated dependencies [eabdcd9]
329
+ - Updated dependencies [90be034]
330
+ - Updated dependencies [99f050a]
10
331
  - Updated dependencies [d0ee3c6]
332
+ - Updated dependencies [b2ae5aa]
11
333
  - Updated dependencies [23f258c]
334
+ - Updated dependencies [a7292b0]
335
+ - Updated dependencies [0dcb9f0]
12
336
  - Updated dependencies [2672a05]
13
- - @mastra/core@0.0.0-vector-sources-20250516175436
337
+ - @mastra/core@0.10.0
338
+
339
+ ## 0.3.0-alpha.1
340
+
341
+ ### Minor Changes
342
+
343
+ - 83da932: Move @mastra/core to peerdeps
344
+
345
+ ### Patch Changes
346
+
347
+ - a7292b0: BREAKING(@mastra/core, all vector stores): Vector store breaking changes (remove deprecated functions and positional arguments)
348
+ - Updated dependencies [b3a3d63]
349
+ - Updated dependencies [344f453]
350
+ - Updated dependencies [0a3ae6d]
351
+ - Updated dependencies [95911be]
352
+ - Updated dependencies [5eb5a99]
353
+ - Updated dependencies [7e632c5]
354
+ - Updated dependencies [1e9fbfa]
355
+ - Updated dependencies [b2ae5aa]
356
+ - Updated dependencies [a7292b0]
357
+ - Updated dependencies [0dcb9f0]
358
+ - @mastra/core@0.10.0-alpha.1
359
+
360
+ ## 0.2.16-alpha.0
361
+
362
+ ### Patch Changes
363
+
364
+ - d0ee3c6: Change all public functions and constructors in vector stores to use named args and prepare to phase out positional args
365
+ - Updated dependencies [f53a6ac]
366
+ - Updated dependencies [eabdcd9]
367
+ - Updated dependencies [90be034]
368
+ - Updated dependencies [99f050a]
369
+ - Updated dependencies [d0ee3c6]
370
+ - Updated dependencies [23f258c]
371
+ - Updated dependencies [2672a05]
372
+ - @mastra/core@0.9.5-alpha.0
14
373
 
15
374
  ## 0.2.15
16
375
 
@@ -1156,7 +1515,6 @@
1156
1515
  ### Minor Changes
1157
1516
 
1158
1517
  - 684d5d1: Move Chroma package from `@mastra/vector-chroma` to `@mastra/chroma`.
1159
-
1160
1518
  - Move package to `stores/chroma`
1161
1519
  - Reorganize source files into `src/vector`
1162
1520
  - Add deprecation notice to old package
@@ -1490,7 +1848,6 @@
1490
1848
  ### Minor Changes
1491
1849
 
1492
1850
  - 684d5d1: Move Chroma package from `@mastra/vector-chroma` to `@mastra/chroma`.
1493
-
1494
1851
  - Move package to `stores/chroma`
1495
1852
  - Reorganize source files into `src/vector`
1496
1853
  - Add deprecation notice to old package
package/LICENSE.md CHANGED
@@ -1,7 +1,15 @@
1
- Copyright 2025 Mastra AI, Inc.
1
+ # Apache License 2.0
2
2
 
3
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3
+ Copyright (c) 2025 Kepler Software, Inc.
4
4
 
5
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
6
8
 
7
- THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @mastra/chroma
2
2
 
3
- Vector store implementation for ChromaDB using the official chromadb client with added dimension validation, collection management, and document storage capabilities.
3
+ Vector store implementation for Chroma using the official `chromadb` client with added dimension validation, collection management, and document storage capabilities.
4
4
 
5
5
  ## Installation
6
6
 
@@ -8,18 +8,56 @@ Vector store implementation for ChromaDB using the official chromadb client with
8
8
  npm install @mastra/chroma
9
9
  ```
10
10
 
11
- ## Usage
11
+ ## Instantiation
12
+
13
+ ### Local or Self-Deployments
14
+
15
+ To run a Chroma server, use the [Chroma CLI](https://docs.trychroma.com/docs/cli/db). It is available to you when you install this package.
16
+
17
+ ```shell
18
+ chroma run
19
+ ```
20
+
21
+ You will now have a Chroma server running on `localhost:8000`.
22
+
23
+ ```typescript
24
+ import { ChromaVector } from '@mastra/chroma';
25
+
26
+ const vectorStore = new ChromaVector();
27
+ ```
28
+
29
+ If you run a Chroma server locally with a different configuration, or [deploy](https://docs.trychroma.com/guides/deploy/client-server-mode) a Chroma server yourself, you can configure your `ChromaVector` instantiation with specific connection details:
30
+
31
+ ```typescript
32
+ import { ChromaVector } from '@mastra/chroma';
33
+
34
+ const vectorStore = new ChromaVector({
35
+ host: 'your-host-address',
36
+ port: 8000,
37
+ ssl: false,
38
+ headers: {}, // any HTTP headers to send,
39
+ });
40
+ ```
41
+
42
+ ### Chroma Cloud
43
+
44
+ Provide your Chroma Cloud API key, tenant, and database.
45
+
46
+ You can use the [Chroma CLI](https://docs.trychroma.com/docs/cli/db) to set these as environment variables: `chroma db connect [DB-NAME] --env-file`.
12
47
 
13
48
  ```typescript
14
49
  import { ChromaVector } from '@mastra/chroma';
15
50
 
16
51
  const vectorStore = new ChromaVector({
17
- path: 'http://localhost:8000', // ChromaDB server URL
18
- auth: { // Optional authentication
19
- provider: 'token',
20
- credentials: 'your-token'
21
- }
52
+ apiKey: process.env.CHROMA_API_KEY,
53
+ tenant: process.env.CHROMA_TENANT,
54
+ database: process.env.CHROMA_DATABASE,
22
55
  });
56
+ ```
57
+
58
+ ## Usage
59
+
60
+ ```typescript
23
61
 
24
62
  // Create a new collection
25
63
  await vectorStore.createIndex({ indexName: 'myCollection', dimension: 1536, metric: 'cosine' });
@@ -46,18 +84,6 @@ const results = await vectorStore.query({
46
84
  });
47
85
  ```
48
86
 
49
- ## Configuration
50
-
51
- Required:
52
-
53
- - `path`: URL of your ChromaDB server
54
-
55
- Optional:
56
-
57
- - `auth`: Authentication configuration
58
- - `provider`: Authentication provider
59
- - `credentials`: Authentication credentials
60
-
61
87
  ## Features
62
88
 
63
89
  - Vector similarity search with cosine, euclidean, and dot product metrics
@@ -92,5 +118,5 @@ Query results include:
92
118
 
93
119
  ## Related Links
94
120
 
95
- - [ChromaDB Documentation](https://docs.trychroma.com/)
96
- - [ChromaDB API Reference](https://docs.trychroma.com/api/client)
121
+ - [Chroma Documentation](https://docs.trychroma.com/)
122
+ - [Chroma API Reference](https://docs.trychroma.com/api/client)