@mastra/chroma 0.0.0-update-scorers-api-20250801170445 → 0.0.0-usechat-duplicate-20251016110554
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 +336 -3
- package/README.md +47 -21
- package/dist/index.cjs +113 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +114 -50
- package/dist/index.js.map +1 -1
- package/dist/vector/filter.d.ts +0 -3
- package/dist/vector/filter.d.ts.map +1 -1
- package/dist/vector/index.d.ts +33 -13
- package/dist/vector/index.d.ts.map +1 -1
- package/package.json +23 -8
- package/docker-compose.yaml +0 -7
- package/eslint.config.js +0 -6
- package/src/index.ts +0 -2
- package/src/vector/filter.test.ts +0 -418
- package/src/vector/filter.ts +0 -146
- package/src/vector/index.test.ts +0 -1550
- package/src/vector/index.ts +0 -340
- package/src/vector/prompt.ts +0 -72
- package/tsconfig.build.json +0 -9
- package/tsconfig.json +0 -5
- package/tsup.config.ts +0 -22
- package/vitest.config.ts +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,344 @@
|
|
|
1
1
|
# @mastra/chroma
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-usechat-duplicate-20251016110554
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- Updated dependencies [
|
|
8
|
-
- @mastra/core@0.0.0-
|
|
7
|
+
- Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3)]:
|
|
8
|
+
- @mastra/core@0.0.0-usechat-duplicate-20251016110554
|
|
9
|
+
|
|
10
|
+
## 0.11.14
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
|
|
15
|
+
|
|
16
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8557](https://github.com/mastra-ai/mastra/pull/8557))
|
|
17
|
+
|
|
18
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8626](https://github.com/mastra-ai/mastra/pull/8626))
|
|
19
|
+
|
|
20
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8686](https://github.com/mastra-ai/mastra/pull/8686))
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`1ed9670`](https://github.com/mastra-ai/mastra/commit/1ed9670d3ca50cb60dc2e517738c5eef3968ed27), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`f59fc1e`](https://github.com/mastra-ai/mastra/commit/f59fc1e406b8912e692f6bff6cfd4754cc8d165c), [`158381d`](https://github.com/mastra-ai/mastra/commit/158381d39335be934b81ef8a1947bccace492c25), [`a1799bc`](https://github.com/mastra-ai/mastra/commit/a1799bcc1b5a1cdc188f2ac0165f17a1c4ac6f7b), [`6ff6094`](https://github.com/mastra-ai/mastra/commit/6ff60946f4ecfebdeef6e21d2b230c2204f2c9b8), [`fb703b9`](https://github.com/mastra-ai/mastra/commit/fb703b9634eeaff1a6eb2b5531ce0f9e8fb04727), [`37a2314`](https://github.com/mastra-ai/mastra/commit/37a23148e0e5a3b40d4f9f098b194671a8a49faf), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`05a9dee`](https://github.com/mastra-ai/mastra/commit/05a9dee3d355694d28847bfffb6289657fcf7dfa), [`e3c1077`](https://github.com/mastra-ai/mastra/commit/e3c107763aedd1643d3def5df450c235da9ff76c), [`1908ca0`](https://github.com/mastra-ai/mastra/commit/1908ca0521f90e43779cc29ab590173ca560443c), [`1bccdb3`](https://github.com/mastra-ai/mastra/commit/1bccdb33eb90cbeba2dc5ece1c2561fb774b26b6), [`5ef944a`](https://github.com/mastra-ai/mastra/commit/5ef944a3721d93105675cac2b2311432ff8cc393), [`d6b186f`](https://github.com/mastra-ai/mastra/commit/d6b186fb08f1caf1b86f73d3a5ee88fb999ca3be), [`ee68e82`](https://github.com/mastra-ai/mastra/commit/ee68e8289ea4408d29849e899bc6e78b3bd4e843), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad), [`ea33930`](https://github.com/mastra-ai/mastra/commit/ea339301e82d6318257720d811b043014ee44064), [`65493b3`](https://github.com/mastra-ai/mastra/commit/65493b31c36f6fdb78f9679f7e1ecf0c250aa5ee), [`a998b8f`](https://github.com/mastra-ai/mastra/commit/a998b8f858091c2ec47683e60766cf12d03001e4), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`8a37bdd`](https://github.com/mastra-ai/mastra/commit/8a37bddb6d8614a32c5b70303d583d80c620ea61), [`135d6f2`](https://github.com/mastra-ai/mastra/commit/135d6f22a326ed1dffff858700669dff09d2c9eb)]:
|
|
23
|
+
- @mastra/core@0.21.0
|
|
24
|
+
|
|
25
|
+
## 0.11.14-alpha.0
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
|
|
30
|
+
|
|
31
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8557](https://github.com/mastra-ai/mastra/pull/8557))
|
|
32
|
+
|
|
33
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8626](https://github.com/mastra-ai/mastra/pull/8626))
|
|
34
|
+
|
|
35
|
+
- Update peer dependencies to match core package version bump (0.21.0) ([#8686](https://github.com/mastra-ai/mastra/pull/8686))
|
|
36
|
+
|
|
37
|
+
- Updated dependencies [[`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`ee68e82`](https://github.com/mastra-ai/mastra/commit/ee68e8289ea4408d29849e899bc6e78b3bd4e843), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad), [`ea33930`](https://github.com/mastra-ai/mastra/commit/ea339301e82d6318257720d811b043014ee44064), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`135d6f2`](https://github.com/mastra-ai/mastra/commit/135d6f22a326ed1dffff858700669dff09d2c9eb), [`59d036d`](https://github.com/mastra-ai/mastra/commit/59d036d4c2706b430b0e3f1f1e0ee853ce16ca04)]:
|
|
38
|
+
- @mastra/core@0.21.0-alpha.0
|
|
39
|
+
|
|
40
|
+
## 0.11.13
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- dependencies updates: ([#8554](https://github.com/mastra-ai/mastra/pull/8554))
|
|
45
|
+
- Updated dependency [`chromadb@^3.0.17` ↗︎](https://www.npmjs.com/package/chromadb/v/3.0.17) (from `^3.0.15`, in `dependencies`)
|
|
46
|
+
- Updated dependencies [[`c621613`](https://github.com/mastra-ai/mastra/commit/c621613069173c69eb2c3ef19a5308894c6549f0), [`12b1189`](https://github.com/mastra-ai/mastra/commit/12b118942445e4de0dd916c593e33ec78dc3bc73), [`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`076b092`](https://github.com/mastra-ai/mastra/commit/076b0924902ff0f49d5712d2df24c4cca683713f), [`2aee9e7`](https://github.com/mastra-ai/mastra/commit/2aee9e7d188b8b256a4ddc203ccefb366b4867fa), [`c582906`](https://github.com/mastra-ai/mastra/commit/c5829065a346260f96c4beb8af131b94804ae3ad), [`fa2eb96`](https://github.com/mastra-ai/mastra/commit/fa2eb96af16c7d433891a73932764960d3235c1d), [`ee9108f`](https://github.com/mastra-ai/mastra/commit/ee9108fa29bb8368fc23df158c9f0645b2d7b65c), [`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`a739d0c`](https://github.com/mastra-ai/mastra/commit/a739d0c8b37cd89569e04a6ca0827083c6167e19), [`603e927`](https://github.com/mastra-ai/mastra/commit/603e9279db8bf8a46caf83881c6b7389ccffff7e), [`cd45982`](https://github.com/mastra-ai/mastra/commit/cd4598291cda128a88738734ae6cbef076ebdebd), [`874f74d`](https://github.com/mastra-ai/mastra/commit/874f74da4b1acf6517f18132d035612c3ecc394a), [`b728a45`](https://github.com/mastra-ai/mastra/commit/b728a45ab3dba59da0f5ee36b81fe246659f305d), [`0baf2ba`](https://github.com/mastra-ai/mastra/commit/0baf2bab8420277072ef1f95df5ea7b0a2f61fe7), [`10e633a`](https://github.com/mastra-ai/mastra/commit/10e633a07d333466d9734c97acfc3dbf757ad2d0), [`a6d69c5`](https://github.com/mastra-ai/mastra/commit/a6d69c5fb50c0875b46275811fece5862f03c6a0), [`84199af`](https://github.com/mastra-ai/mastra/commit/84199af8673f6f9cb59286ffb5477a41932775de), [`7f431af`](https://github.com/mastra-ai/mastra/commit/7f431afd586b7d3265075e73106eb73167edbb86), [`26e968d`](https://github.com/mastra-ai/mastra/commit/26e968db2171ded9e4d47aa1b4f19e1e771158d0), [`cbd3fb6`](https://github.com/mastra-ai/mastra/commit/cbd3fb65adb03a7c0df193cb998aed5ac56675ee)]:
|
|
47
|
+
- @mastra/core@0.20.1
|
|
48
|
+
|
|
49
|
+
## 0.11.13-alpha.0
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- dependencies updates: ([#8554](https://github.com/mastra-ai/mastra/pull/8554))
|
|
54
|
+
- Updated dependency [`chromadb@^3.0.17` ↗︎](https://www.npmjs.com/package/chromadb/v/3.0.17) (from `^3.0.15`, in `dependencies`)
|
|
55
|
+
- Updated dependencies [[`a6d69c5`](https://github.com/mastra-ai/mastra/commit/a6d69c5fb50c0875b46275811fece5862f03c6a0), [`84199af`](https://github.com/mastra-ai/mastra/commit/84199af8673f6f9cb59286ffb5477a41932775de), [`7f431af`](https://github.com/mastra-ai/mastra/commit/7f431afd586b7d3265075e73106eb73167edbb86)]:
|
|
56
|
+
- @mastra/core@0.20.1-alpha.3
|
|
57
|
+
|
|
58
|
+
## 0.11.12
|
|
59
|
+
|
|
60
|
+
### Patch Changes
|
|
61
|
+
|
|
62
|
+
- Breaking change to move the agent.streamVNext/generateVNext implementation to the default stream/generate. The old stream/generate have now been moved to streamLegacy and generateLegacy ([#8097](https://github.com/mastra-ai/mastra/pull/8097))
|
|
63
|
+
|
|
64
|
+
- Updated dependencies [[`00cb6bd`](https://github.com/mastra-ai/mastra/commit/00cb6bdf78737c0fac14a5a0c7b532a11e38558a), [`869ba22`](https://github.com/mastra-ai/mastra/commit/869ba222e1d6b58fc1b65e7c9fd55ca4e01b8c2f), [`1b73665`](https://github.com/mastra-ai/mastra/commit/1b73665e8e23f5c09d49fcf3e7d709c75259259e), [`f7d7475`](https://github.com/mastra-ai/mastra/commit/f7d747507341aef60ed39e4b49318db1f86034a6), [`084b77b`](https://github.com/mastra-ai/mastra/commit/084b77b2955960e0190af8db3f77138aa83ed65c), [`a93ff84`](https://github.com/mastra-ai/mastra/commit/a93ff84b5e1af07ee236ac8873dac9b49aa5d501), [`bc5aacb`](https://github.com/mastra-ai/mastra/commit/bc5aacb646d468d325327e36117129f28cd13bf6), [`6b5af12`](https://github.com/mastra-ai/mastra/commit/6b5af12ce9e09066e0c32e821c203a6954498bea), [`bf60e4a`](https://github.com/mastra-ai/mastra/commit/bf60e4a89c515afd9570b7b79f33b95e7d07c397), [`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`e8fe13c`](https://github.com/mastra-ai/mastra/commit/e8fe13c4b4c255a42520127797ec394310f7c919), [`3ca833d`](https://github.com/mastra-ai/mastra/commit/3ca833dc994c38e3c9b4f9b4478a61cd8e07b32a), [`1edb8d1`](https://github.com/mastra-ai/mastra/commit/1edb8d1cfb963e72a12412990fb9170936c9904c), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
|
|
65
|
+
- @mastra/core@0.20.0
|
|
66
|
+
|
|
67
|
+
## 0.11.12-alpha.0
|
|
68
|
+
|
|
69
|
+
### Patch Changes
|
|
70
|
+
|
|
71
|
+
- Breaking change to move the agent.streamVNext/generateVNext implementation to the default stream/generate. The old stream/generate have now been moved to streamLegacy and generateLegacy ([#8097](https://github.com/mastra-ai/mastra/pull/8097))
|
|
72
|
+
|
|
73
|
+
- Updated dependencies [[`00cb6bd`](https://github.com/mastra-ai/mastra/commit/00cb6bdf78737c0fac14a5a0c7b532a11e38558a), [`869ba22`](https://github.com/mastra-ai/mastra/commit/869ba222e1d6b58fc1b65e7c9fd55ca4e01b8c2f), [`1b73665`](https://github.com/mastra-ai/mastra/commit/1b73665e8e23f5c09d49fcf3e7d709c75259259e), [`f7d7475`](https://github.com/mastra-ai/mastra/commit/f7d747507341aef60ed39e4b49318db1f86034a6), [`084b77b`](https://github.com/mastra-ai/mastra/commit/084b77b2955960e0190af8db3f77138aa83ed65c), [`a93ff84`](https://github.com/mastra-ai/mastra/commit/a93ff84b5e1af07ee236ac8873dac9b49aa5d501), [`bc5aacb`](https://github.com/mastra-ai/mastra/commit/bc5aacb646d468d325327e36117129f28cd13bf6), [`6b5af12`](https://github.com/mastra-ai/mastra/commit/6b5af12ce9e09066e0c32e821c203a6954498bea), [`bf60e4a`](https://github.com/mastra-ai/mastra/commit/bf60e4a89c515afd9570b7b79f33b95e7d07c397), [`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`e8fe13c`](https://github.com/mastra-ai/mastra/commit/e8fe13c4b4c255a42520127797ec394310f7c919), [`3ca833d`](https://github.com/mastra-ai/mastra/commit/3ca833dc994c38e3c9b4f9b4478a61cd8e07b32a), [`1edb8d1`](https://github.com/mastra-ai/mastra/commit/1edb8d1cfb963e72a12412990fb9170936c9904c), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
|
|
74
|
+
- @mastra/core@0.20.0-alpha.0
|
|
75
|
+
|
|
76
|
+
## 0.11.11
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- Update peer deps ([#8154](https://github.com/mastra-ai/mastra/pull/8154))
|
|
81
|
+
|
|
82
|
+
- Updated dependencies [[`dc099b4`](https://github.com/mastra-ai/mastra/commit/dc099b40fb31147ba3f362f98d991892033c4c67), [`504438b`](https://github.com/mastra-ai/mastra/commit/504438b961bde211071186bba63a842c4e3db879), [`b342a68`](https://github.com/mastra-ai/mastra/commit/b342a68e1399cf1ece9ba11bda112db89d21118c), [`a7243e2`](https://github.com/mastra-ai/mastra/commit/a7243e2e58762667a6e3921e755e89d6bb0a3282), [`7fceb0a`](https://github.com/mastra-ai/mastra/commit/7fceb0a327d678e812f90f5387c5bc4f38bd039e), [`303a9c0`](https://github.com/mastra-ai/mastra/commit/303a9c0d7dd58795915979f06a0512359e4532fb), [`df64f9e`](https://github.com/mastra-ai/mastra/commit/df64f9ef814916fff9baedd861c988084e7c41de), [`370f8a6`](https://github.com/mastra-ai/mastra/commit/370f8a6480faec70fef18d72e5f7538f27004301), [`809eea0`](https://github.com/mastra-ai/mastra/commit/809eea092fa80c3f69b9eaf078d843b57fd2a88e), [`683e5a1`](https://github.com/mastra-ai/mastra/commit/683e5a1466e48b686825b2c11f84680f296138e4), [`3679378`](https://github.com/mastra-ai/mastra/commit/3679378673350aa314741dc826f837b1984149bc), [`7775bc2`](https://github.com/mastra-ai/mastra/commit/7775bc20bb1ad1ab24797fb420e4f96c65b0d8ec), [`623ffaf`](https://github.com/mastra-ai/mastra/commit/623ffaf2d969e11e99a0224633cf7b5a0815c857), [`9fc1613`](https://github.com/mastra-ai/mastra/commit/9fc16136400186648880fd990119ac15f7c02ee4), [`61f62aa`](https://github.com/mastra-ai/mastra/commit/61f62aa31bc88fe4ddf8da6240dbcfbeb07358bd), [`db1891a`](https://github.com/mastra-ai/mastra/commit/db1891a4707443720b7cd8a260dc7e1d49b3609c), [`e8f379d`](https://github.com/mastra-ai/mastra/commit/e8f379d390efa264c4e0874f9ac0cf8839b07777), [`652066b`](https://github.com/mastra-ai/mastra/commit/652066bd1efc6bb6813ba950ed1d7573e8b7d9d4), [`3e292ba`](https://github.com/mastra-ai/mastra/commit/3e292ba00837886d5d68a34cbc0d9b703c991883), [`418c136`](https://github.com/mastra-ai/mastra/commit/418c1366843d88e491bca3f87763899ce855ca29), [`ea8d386`](https://github.com/mastra-ai/mastra/commit/ea8d386cd8c5593664515fd5770c06bf2aa980ef), [`67b0f00`](https://github.com/mastra-ai/mastra/commit/67b0f005b520335c71fb85cbaa25df4ce8484a81), [`c2a4919`](https://github.com/mastra-ai/mastra/commit/c2a4919ba6797d8bdb1509e02287496eef69303e), [`c84b7d0`](https://github.com/mastra-ai/mastra/commit/c84b7d093c4657772140cbfd2b15ef72f3315ed5), [`0130986`](https://github.com/mastra-ai/mastra/commit/0130986fc62d0edcc626dd593282661dbb9af141)]:
|
|
83
|
+
- @mastra/core@0.19.0
|
|
84
|
+
|
|
85
|
+
## 0.11.11-alpha.0
|
|
86
|
+
|
|
87
|
+
### Patch Changes
|
|
88
|
+
|
|
89
|
+
- Update peer deps ([#8154](https://github.com/mastra-ai/mastra/pull/8154))
|
|
90
|
+
|
|
91
|
+
- Updated dependencies [[`504438b`](https://github.com/mastra-ai/mastra/commit/504438b961bde211071186bba63a842c4e3db879), [`a7243e2`](https://github.com/mastra-ai/mastra/commit/a7243e2e58762667a6e3921e755e89d6bb0a3282), [`7fceb0a`](https://github.com/mastra-ai/mastra/commit/7fceb0a327d678e812f90f5387c5bc4f38bd039e), [`df64f9e`](https://github.com/mastra-ai/mastra/commit/df64f9ef814916fff9baedd861c988084e7c41de), [`809eea0`](https://github.com/mastra-ai/mastra/commit/809eea092fa80c3f69b9eaf078d843b57fd2a88e), [`683e5a1`](https://github.com/mastra-ai/mastra/commit/683e5a1466e48b686825b2c11f84680f296138e4), [`3679378`](https://github.com/mastra-ai/mastra/commit/3679378673350aa314741dc826f837b1984149bc), [`7775bc2`](https://github.com/mastra-ai/mastra/commit/7775bc20bb1ad1ab24797fb420e4f96c65b0d8ec), [`db1891a`](https://github.com/mastra-ai/mastra/commit/db1891a4707443720b7cd8a260dc7e1d49b3609c), [`e8f379d`](https://github.com/mastra-ai/mastra/commit/e8f379d390efa264c4e0874f9ac0cf8839b07777), [`652066b`](https://github.com/mastra-ai/mastra/commit/652066bd1efc6bb6813ba950ed1d7573e8b7d9d4), [`ea8d386`](https://github.com/mastra-ai/mastra/commit/ea8d386cd8c5593664515fd5770c06bf2aa980ef), [`c2a4919`](https://github.com/mastra-ai/mastra/commit/c2a4919ba6797d8bdb1509e02287496eef69303e), [`0130986`](https://github.com/mastra-ai/mastra/commit/0130986fc62d0edcc626dd593282661dbb9af141)]:
|
|
92
|
+
- @mastra/core@0.19.0-alpha.1
|
|
93
|
+
|
|
94
|
+
## 0.11.10
|
|
95
|
+
|
|
96
|
+
### Patch Changes
|
|
97
|
+
|
|
98
|
+
- Update Peerdeps for packages based on core minor bump ([#8025](https://github.com/mastra-ai/mastra/pull/8025))
|
|
99
|
+
|
|
100
|
+
- Updated dependencies [[`cf34503`](https://github.com/mastra-ai/mastra/commit/cf345031de4e157f29087946449e60b965e9c8a9), [`6b4b1e4`](https://github.com/mastra-ai/mastra/commit/6b4b1e4235428d39e51cbda9832704c0ba70ab32), [`3469fca`](https://github.com/mastra-ai/mastra/commit/3469fca7bb7e5e19369ff9f7044716a5e4b02585), [`a61f23f`](https://github.com/mastra-ai/mastra/commit/a61f23fbbca4b88b763d94f1d784c47895ed72d7), [`4b339b8`](https://github.com/mastra-ai/mastra/commit/4b339b8141c20d6a6d80583c7e8c5c05d8c19492), [`d1dc606`](https://github.com/mastra-ai/mastra/commit/d1dc6067b0557a71190b68d56ee15b48c26d2411), [`c45298a`](https://github.com/mastra-ai/mastra/commit/c45298a0a0791db35cf79f1199d77004da0704cb), [`c4a8204`](https://github.com/mastra-ai/mastra/commit/c4a82046bfd241d6044e234bc5917d5a01fe6b55), [`d3bd4d4`](https://github.com/mastra-ai/mastra/commit/d3bd4d482a685bbb67bfa89be91c90dca3fa71ad), [`c591dfc`](https://github.com/mastra-ai/mastra/commit/c591dfc1e600fae1dedffe239357d250e146378f), [`1920c5c`](https://github.com/mastra-ai/mastra/commit/1920c5c6d666f687785c73021196aa551e579e0d), [`b6a3b65`](https://github.com/mastra-ai/mastra/commit/b6a3b65d830fa0ca7754ad6481661d1f2c878f21), [`af3abb6`](https://github.com/mastra-ai/mastra/commit/af3abb6f7c7585d856e22d27f4e7d2ece2186b9a)]:
|
|
101
|
+
- @mastra/core@0.18.0
|
|
102
|
+
|
|
103
|
+
## 0.11.10-alpha.0
|
|
104
|
+
|
|
105
|
+
### Patch Changes
|
|
106
|
+
|
|
107
|
+
- Update Peerdeps for packages based on core minor bump ([#8025](https://github.com/mastra-ai/mastra/pull/8025))
|
|
108
|
+
|
|
109
|
+
- Updated dependencies [[`cf34503`](https://github.com/mastra-ai/mastra/commit/cf345031de4e157f29087946449e60b965e9c8a9), [`6b4b1e4`](https://github.com/mastra-ai/mastra/commit/6b4b1e4235428d39e51cbda9832704c0ba70ab32), [`3469fca`](https://github.com/mastra-ai/mastra/commit/3469fca7bb7e5e19369ff9f7044716a5e4b02585), [`c4a8204`](https://github.com/mastra-ai/mastra/commit/c4a82046bfd241d6044e234bc5917d5a01fe6b55)]:
|
|
110
|
+
- @mastra/core@0.18.0-alpha.2
|
|
111
|
+
|
|
112
|
+
## 0.11.9
|
|
113
|
+
|
|
114
|
+
### Patch Changes
|
|
115
|
+
|
|
116
|
+
- dependencies updates: ([#7860](https://github.com/mastra-ai/mastra/pull/7860))
|
|
117
|
+
- Updated dependency [`chromadb@^3.0.15` ↗︎](https://www.npmjs.com/package/chromadb/v/3.0.15) (from `^3.0.14`, in `dependencies`)
|
|
118
|
+
|
|
119
|
+
- Update peerdep of @mastra/core ([#7619](https://github.com/mastra-ai/mastra/pull/7619))
|
|
120
|
+
|
|
121
|
+
- Updated dependencies [[`197cbb2`](https://github.com/mastra-ai/mastra/commit/197cbb248fc8cb4bbf61bf70b770f1388b445df2), [`a1bb887`](https://github.com/mastra-ai/mastra/commit/a1bb887e8bfae44230f487648da72e96ef824561), [`6590763`](https://github.com/mastra-ai/mastra/commit/65907630ef4bf4127067cecd1cb21b56f55d5f1b), [`fb84c21`](https://github.com/mastra-ai/mastra/commit/fb84c21859d09bdc8f158bd5412bdc4b5835a61c), [`5802bf5`](https://github.com/mastra-ai/mastra/commit/5802bf57f6182e4b67c28d7d91abed349a8d14f3), [`5bda53a`](https://github.com/mastra-ai/mastra/commit/5bda53a9747bfa7d876d754fc92c83a06e503f62), [`c2eade3`](https://github.com/mastra-ai/mastra/commit/c2eade3508ef309662f065e5f340d7840295dd53), [`f26a8fd`](https://github.com/mastra-ai/mastra/commit/f26a8fd99fcb0497a5d86c28324430d7f6a5fb83), [`222965a`](https://github.com/mastra-ai/mastra/commit/222965a98ce8197b86673ec594244650b5960257), [`6047778`](https://github.com/mastra-ai/mastra/commit/6047778e501df460648f31decddf8e443f36e373), [`a0f5f1c`](https://github.com/mastra-ai/mastra/commit/a0f5f1ca39c3c5c6d26202e9fcab986b4fe14568), [`9d4fc09`](https://github.com/mastra-ai/mastra/commit/9d4fc09b2ad55caa7738c7ceb3a905e454f74cdd), [`05c7abf`](https://github.com/mastra-ai/mastra/commit/05c7abfe105a015b7760c9bf33ff4419727502a0), [`0324ceb`](https://github.com/mastra-ai/mastra/commit/0324ceb8af9d16c12a531f90e575f6aab797ac81), [`d75ccf0`](https://github.com/mastra-ai/mastra/commit/d75ccf06dfd2582b916aa12624e3cd61b279edf1), [`0f9d227`](https://github.com/mastra-ai/mastra/commit/0f9d227890a98db33865abbea39daf407cd55ef7), [`b356f5f`](https://github.com/mastra-ai/mastra/commit/b356f5f7566cb3edb755d91f00b72fc1420b2a37), [`de056a0`](https://github.com/mastra-ai/mastra/commit/de056a02cbb43f6aa0380ab2150ea404af9ec0dd), [`f5ce05f`](https://github.com/mastra-ai/mastra/commit/f5ce05f831d42c69559bf4c0fdb46ccb920fc3a3), [`60c9cec`](https://github.com/mastra-ai/mastra/commit/60c9cec7048a79a87440f7840c383875bd710d93), [`c93532a`](https://github.com/mastra-ai/mastra/commit/c93532a340b80e4dd946d4c138d9381de5f70399), [`6cb1fcb`](https://github.com/mastra-ai/mastra/commit/6cb1fcbc8d0378ffed0d17784c96e68f30cb0272), [`aee4f00`](https://github.com/mastra-ai/mastra/commit/aee4f00e61e1a42e81a6d74ff149dbe69e32695a), [`9f6f30f`](https://github.com/mastra-ai/mastra/commit/9f6f30f04ec6648bbca798ea8aad59317c40d8db), [`547c621`](https://github.com/mastra-ai/mastra/commit/547c62104af3f7a551b3754e9cbdf0a3fbba15e4), [`897995e`](https://github.com/mastra-ai/mastra/commit/897995e630d572fe2891e7ede817938cabb43251), [`0fed8f2`](https://github.com/mastra-ai/mastra/commit/0fed8f2aa84b167b3415ea6f8f70755775132c8d), [`4f9ea8c`](https://github.com/mastra-ai/mastra/commit/4f9ea8c95ea74ba9abbf3b2ab6106c7d7bc45689), [`1a1fbe6`](https://github.com/mastra-ai/mastra/commit/1a1fbe66efb7d94abc373ed0dd9676adb8122454), [`d706fad`](https://github.com/mastra-ai/mastra/commit/d706fad6e6e4b72357b18d229ba38e6c913c0e70), [`87fd07f`](https://github.com/mastra-ai/mastra/commit/87fd07ff35387a38728967163460231b5d33ae3b), [`5c3768f`](https://github.com/mastra-ai/mastra/commit/5c3768fa959454232ad76715c381f4aac00c6881), [`2685a78`](https://github.com/mastra-ai/mastra/commit/2685a78f224b8b04e20d4fab5ac1adb638190071), [`36f39c0`](https://github.com/mastra-ai/mastra/commit/36f39c00dc794952dc3c11aab91c2fa8bca74b11), [`239b5a4`](https://github.com/mastra-ai/mastra/commit/239b5a497aeae2e8b4d764f46217cfff2284788e), [`8a3f5e4`](https://github.com/mastra-ai/mastra/commit/8a3f5e4212ec36b302957deb4bd47005ab598382)]:
|
|
122
|
+
- @mastra/core@0.17.0
|
|
123
|
+
|
|
124
|
+
## 0.11.9-alpha.0
|
|
125
|
+
|
|
126
|
+
### Patch Changes
|
|
127
|
+
|
|
128
|
+
- dependencies updates: ([#7860](https://github.com/mastra-ai/mastra/pull/7860))
|
|
129
|
+
- Updated dependency [`chromadb@^3.0.15` ↗︎](https://www.npmjs.com/package/chromadb/v/3.0.15) (from `^3.0.14`, in `dependencies`)
|
|
130
|
+
|
|
131
|
+
- Update peerdep of @mastra/core ([#7619](https://github.com/mastra-ai/mastra/pull/7619))
|
|
132
|
+
|
|
133
|
+
- Updated dependencies [[`a1bb887`](https://github.com/mastra-ai/mastra/commit/a1bb887e8bfae44230f487648da72e96ef824561), [`a0f5f1c`](https://github.com/mastra-ai/mastra/commit/a0f5f1ca39c3c5c6d26202e9fcab986b4fe14568), [`b356f5f`](https://github.com/mastra-ai/mastra/commit/b356f5f7566cb3edb755d91f00b72fc1420b2a37), [`f5ce05f`](https://github.com/mastra-ai/mastra/commit/f5ce05f831d42c69559bf4c0fdb46ccb920fc3a3), [`9f6f30f`](https://github.com/mastra-ai/mastra/commit/9f6f30f04ec6648bbca798ea8aad59317c40d8db), [`d706fad`](https://github.com/mastra-ai/mastra/commit/d706fad6e6e4b72357b18d229ba38e6c913c0e70), [`5c3768f`](https://github.com/mastra-ai/mastra/commit/5c3768fa959454232ad76715c381f4aac00c6881), [`8a3f5e4`](https://github.com/mastra-ai/mastra/commit/8a3f5e4212ec36b302957deb4bd47005ab598382)]:
|
|
134
|
+
- @mastra/core@0.17.0-alpha.3
|
|
135
|
+
|
|
136
|
+
## 0.11.8
|
|
137
|
+
|
|
138
|
+
### Patch Changes
|
|
139
|
+
|
|
140
|
+
- 1483200: dependencies updates:
|
|
141
|
+
- Updated dependency [`chromadb@^3.0.14` ↗︎](https://www.npmjs.com/package/chromadb/v/3.0.14) (from `^3.0.11`, in `dependencies`)
|
|
142
|
+
- 376913a: Update peerdeps
|
|
143
|
+
- Updated dependencies [8fbf79e]
|
|
144
|
+
- Updated dependencies [fd83526]
|
|
145
|
+
- Updated dependencies [d0b90ab]
|
|
146
|
+
- Updated dependencies [6f5eb7a]
|
|
147
|
+
- Updated dependencies [a01cf14]
|
|
148
|
+
- Updated dependencies [a9e50ee]
|
|
149
|
+
- Updated dependencies [5397eb4]
|
|
150
|
+
- Updated dependencies [c9f4e4a]
|
|
151
|
+
- Updated dependencies [0acbc80]
|
|
152
|
+
- @mastra/core@0.16.0
|
|
153
|
+
|
|
154
|
+
## 0.11.8-alpha.1
|
|
155
|
+
|
|
156
|
+
### Patch Changes
|
|
157
|
+
|
|
158
|
+
- 376913a: Update peerdeps
|
|
159
|
+
- Updated dependencies [8fbf79e]
|
|
160
|
+
- @mastra/core@0.16.0-alpha.1
|
|
161
|
+
|
|
162
|
+
## 0.11.8-alpha.0
|
|
163
|
+
|
|
164
|
+
### Patch Changes
|
|
165
|
+
|
|
166
|
+
- 1483200: dependencies updates:
|
|
167
|
+
- Updated dependency [`chromadb@^3.0.14` ↗︎](https://www.npmjs.com/package/chromadb/v/3.0.14) (from `^3.0.11`, in `dependencies`)
|
|
168
|
+
- Updated dependencies [fd83526]
|
|
169
|
+
- Updated dependencies [d0b90ab]
|
|
170
|
+
- Updated dependencies [6f5eb7a]
|
|
171
|
+
- Updated dependencies [a01cf14]
|
|
172
|
+
- Updated dependencies [a9e50ee]
|
|
173
|
+
- Updated dependencies [5397eb4]
|
|
174
|
+
- Updated dependencies [c9f4e4a]
|
|
175
|
+
- Updated dependencies [0acbc80]
|
|
176
|
+
- @mastra/core@0.16.0-alpha.0
|
|
177
|
+
|
|
178
|
+
## 0.11.7
|
|
179
|
+
|
|
180
|
+
### Patch Changes
|
|
181
|
+
|
|
182
|
+
- de3cbc6: Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
|
|
183
|
+
- f0dfcac: updated core peerdep
|
|
184
|
+
- Updated dependencies [ab48c97]
|
|
185
|
+
- Updated dependencies [85ef90b]
|
|
186
|
+
- Updated dependencies [aedbbfa]
|
|
187
|
+
- Updated dependencies [ff89505]
|
|
188
|
+
- Updated dependencies [637f323]
|
|
189
|
+
- Updated dependencies [de3cbc6]
|
|
190
|
+
- Updated dependencies [c19bcf7]
|
|
191
|
+
- Updated dependencies [4474d04]
|
|
192
|
+
- Updated dependencies [183dc95]
|
|
193
|
+
- Updated dependencies [a1111e2]
|
|
194
|
+
- Updated dependencies [b42a961]
|
|
195
|
+
- Updated dependencies [61debef]
|
|
196
|
+
- Updated dependencies [9beaeff]
|
|
197
|
+
- Updated dependencies [29de0e1]
|
|
198
|
+
- Updated dependencies [f643c65]
|
|
199
|
+
- Updated dependencies [00c74e7]
|
|
200
|
+
- Updated dependencies [fef7375]
|
|
201
|
+
- Updated dependencies [e3d8fea]
|
|
202
|
+
- Updated dependencies [45e4d39]
|
|
203
|
+
- Updated dependencies [9eee594]
|
|
204
|
+
- Updated dependencies [7149d8d]
|
|
205
|
+
- Updated dependencies [822c2e8]
|
|
206
|
+
- Updated dependencies [979912c]
|
|
207
|
+
- Updated dependencies [7dcf4c0]
|
|
208
|
+
- Updated dependencies [4106a58]
|
|
209
|
+
- Updated dependencies [ad78bfc]
|
|
210
|
+
- Updated dependencies [0302f50]
|
|
211
|
+
- Updated dependencies [6ac697e]
|
|
212
|
+
- Updated dependencies [74db265]
|
|
213
|
+
- Updated dependencies [0ce418a]
|
|
214
|
+
- Updated dependencies [af90672]
|
|
215
|
+
- Updated dependencies [8387952]
|
|
216
|
+
- Updated dependencies [7f3b8da]
|
|
217
|
+
- Updated dependencies [905352b]
|
|
218
|
+
- Updated dependencies [599d04c]
|
|
219
|
+
- Updated dependencies [56041d0]
|
|
220
|
+
- Updated dependencies [3412597]
|
|
221
|
+
- Updated dependencies [5eca5d2]
|
|
222
|
+
- Updated dependencies [f2cda47]
|
|
223
|
+
- Updated dependencies [5de1555]
|
|
224
|
+
- Updated dependencies [cfd377a]
|
|
225
|
+
- Updated dependencies [1ed5a3e]
|
|
226
|
+
- @mastra/core@0.15.3
|
|
227
|
+
|
|
228
|
+
## 0.11.7-alpha.1
|
|
229
|
+
|
|
230
|
+
### Patch Changes
|
|
231
|
+
|
|
232
|
+
- [#7394](https://github.com/mastra-ai/mastra/pull/7394) [`f0dfcac`](https://github.com/mastra-ai/mastra/commit/f0dfcac4458bdf789b975e2d63e984f5d1e7c4d3) Thanks [@NikAiyer](https://github.com/NikAiyer)! - updated core peerdep
|
|
233
|
+
|
|
234
|
+
- Updated dependencies [[`7149d8d`](https://github.com/mastra-ai/mastra/commit/7149d8d4bdc1edf0008e0ca9b7925eb0b8b60dbe)]:
|
|
235
|
+
- @mastra/core@0.15.3-alpha.7
|
|
236
|
+
|
|
237
|
+
## 0.11.7-alpha.0
|
|
238
|
+
|
|
239
|
+
### Patch Changes
|
|
240
|
+
|
|
241
|
+
- [#7343](https://github.com/mastra-ai/mastra/pull/7343) [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e) Thanks [@LekoArts](https://github.com/LekoArts)! - Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
|
|
242
|
+
|
|
243
|
+
- Updated dependencies [[`85ef90b`](https://github.com/mastra-ai/mastra/commit/85ef90bb2cd4ae4df855c7ac175f7d392c55c1bf), [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e)]:
|
|
244
|
+
- @mastra/core@0.15.3-alpha.5
|
|
245
|
+
|
|
246
|
+
## 0.11.6
|
|
247
|
+
|
|
248
|
+
### Patch Changes
|
|
249
|
+
|
|
250
|
+
- [`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdpes for @mastra/core
|
|
251
|
+
|
|
252
|
+
- Updated dependencies []:
|
|
253
|
+
- @mastra/core@0.15.2
|
|
254
|
+
|
|
255
|
+
## 0.11.5
|
|
256
|
+
|
|
257
|
+
### Patch Changes
|
|
258
|
+
|
|
259
|
+
- [`95b2aa9`](https://github.com/mastra-ai/mastra/commit/95b2aa908230919e67efcac0d69005a2d5745298) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdeps @mastra/core
|
|
260
|
+
|
|
261
|
+
- Updated dependencies []:
|
|
262
|
+
- @mastra/core@0.15.1
|
|
263
|
+
|
|
264
|
+
## 0.11.4
|
|
265
|
+
|
|
266
|
+
### Patch Changes
|
|
267
|
+
|
|
268
|
+
- 8660c1b: Updating Chroma integration and adding support for Chroma Cloud
|
|
269
|
+
- 03997ae: Update peerdeps
|
|
270
|
+
- Updated dependencies [227c7e6]
|
|
271
|
+
- Updated dependencies [12cae67]
|
|
272
|
+
- Updated dependencies [fd3a3eb]
|
|
273
|
+
- Updated dependencies [6faaee5]
|
|
274
|
+
- Updated dependencies [4232b14]
|
|
275
|
+
- Updated dependencies [a89de7e]
|
|
276
|
+
- Updated dependencies [5a37d0c]
|
|
277
|
+
- Updated dependencies [4bde0cb]
|
|
278
|
+
- Updated dependencies [cf4f357]
|
|
279
|
+
- Updated dependencies [ad888a2]
|
|
280
|
+
- Updated dependencies [481751d]
|
|
281
|
+
- Updated dependencies [2454423]
|
|
282
|
+
- Updated dependencies [194e395]
|
|
283
|
+
- Updated dependencies [a722c0b]
|
|
284
|
+
- Updated dependencies [c30bca8]
|
|
285
|
+
- Updated dependencies [3b5fec7]
|
|
286
|
+
- Updated dependencies [a8f129d]
|
|
287
|
+
- @mastra/core@0.14.0
|
|
288
|
+
|
|
289
|
+
## 0.11.4-alpha.1
|
|
290
|
+
|
|
291
|
+
### Patch Changes
|
|
292
|
+
|
|
293
|
+
- 03997ae: Update peerdeps
|
|
294
|
+
- @mastra/core@0.14.0-alpha.7
|
|
295
|
+
|
|
296
|
+
## 0.11.4-alpha.0
|
|
297
|
+
|
|
298
|
+
### Patch Changes
|
|
299
|
+
|
|
300
|
+
- 8660c1b: Updating Chroma integration and adding support for Chroma Cloud
|
|
301
|
+
- Updated dependencies [6faaee5]
|
|
302
|
+
- Updated dependencies [4232b14]
|
|
303
|
+
- Updated dependencies [a89de7e]
|
|
304
|
+
- Updated dependencies [cf4f357]
|
|
305
|
+
- Updated dependencies [a722c0b]
|
|
306
|
+
- Updated dependencies [3b5fec7]
|
|
307
|
+
- @mastra/core@0.14.0-alpha.1
|
|
308
|
+
|
|
309
|
+
## 0.11.3
|
|
310
|
+
|
|
311
|
+
### Patch Changes
|
|
312
|
+
|
|
313
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
314
|
+
- Updated dependencies [cb36de0]
|
|
315
|
+
- Updated dependencies [d0496e6]
|
|
316
|
+
- Updated dependencies [a82b851]
|
|
317
|
+
- Updated dependencies [ea0c5f2]
|
|
318
|
+
- Updated dependencies [41a0a0e]
|
|
319
|
+
- Updated dependencies [2871020]
|
|
320
|
+
- Updated dependencies [94f4812]
|
|
321
|
+
- Updated dependencies [e202b82]
|
|
322
|
+
- Updated dependencies [e00f6a0]
|
|
323
|
+
- Updated dependencies [4a406ec]
|
|
324
|
+
- Updated dependencies [b0e43c1]
|
|
325
|
+
- Updated dependencies [5d377e5]
|
|
326
|
+
- Updated dependencies [1fb812e]
|
|
327
|
+
- Updated dependencies [35c5798]
|
|
328
|
+
- @mastra/core@0.13.0
|
|
329
|
+
|
|
330
|
+
## 0.11.3-alpha.0
|
|
331
|
+
|
|
332
|
+
### Patch Changes
|
|
333
|
+
|
|
334
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
335
|
+
- Updated dependencies [cb36de0]
|
|
336
|
+
- Updated dependencies [a82b851]
|
|
337
|
+
- Updated dependencies [41a0a0e]
|
|
338
|
+
- Updated dependencies [2871020]
|
|
339
|
+
- Updated dependencies [4a406ec]
|
|
340
|
+
- Updated dependencies [5d377e5]
|
|
341
|
+
- @mastra/core@0.13.0-alpha.2
|
|
9
342
|
|
|
10
343
|
## 0.11.2
|
|
11
344
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @mastra/chroma
|
|
2
2
|
|
|
3
|
-
Vector store implementation for
|
|
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
|
-
##
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
- [
|
|
96
|
-
- [
|
|
121
|
+
- [Chroma Documentation](https://docs.trychroma.com/)
|
|
122
|
+
- [Chroma API Reference](https://docs.trychroma.com/api/client)
|