@mastra/chroma 0.2.4 → 0.2.5-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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +10 -0
- package/README.md +3 -3
- package/package.json +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/chroma@0.2.
|
|
2
|
+
> @mastra/chroma@0.2.5-alpha.0 build /home/runner/work/mastra/mastra/stores/chroma
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.4.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 7161ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.2
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/chroma/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.2
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/chroma/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 8409ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[32mCJS[39m [1mdist/index.cjs [22m[32m8.08 KB[39m
|
|
21
|
-
[32mCJS[39m ⚡️ Build success in 667ms
|
|
22
20
|
[32mESM[39m [1mdist/index.js [22m[32m8.05 KB[39m
|
|
23
|
-
[32mESM[39m ⚡️ Build success in
|
|
21
|
+
[32mESM[39m ⚡️ Build success in 647ms
|
|
22
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m8.08 KB[39m
|
|
23
|
+
[32mCJS[39m ⚡️ Build success in 655ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @mastra/chroma
|
|
2
2
|
|
|
3
|
+
## 0.2.5-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b56a681: Update README and some tests for vector stores
|
|
8
|
+
- Updated dependencies [fb68a80]
|
|
9
|
+
- Updated dependencies [b56a681]
|
|
10
|
+
- Updated dependencies [248cb07]
|
|
11
|
+
- @mastra/core@0.6.4-alpha.0
|
|
12
|
+
|
|
3
13
|
## 0.2.4
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -22,14 +22,14 @@ const vectorStore = new ChromaVector({
|
|
|
22
22
|
});
|
|
23
23
|
|
|
24
24
|
// Create a new collection
|
|
25
|
-
await vectorStore.createIndex({ indexName: '
|
|
25
|
+
await vectorStore.createIndex({ indexName: 'myCollection', dimension: 1536, metric: 'cosine' });
|
|
26
26
|
|
|
27
27
|
// Add vectors with documents
|
|
28
28
|
const vectors = [[0.1, 0.2, ...], [0.3, 0.4, ...]];
|
|
29
29
|
const metadata = [{ text: 'doc1' }, { text: 'doc2' }];
|
|
30
30
|
const documents = ['full text 1', 'full text 2'];
|
|
31
31
|
const ids = await vectorStore.upsert({
|
|
32
|
-
indexName: '
|
|
32
|
+
indexName: 'myCollection',
|
|
33
33
|
vectors,
|
|
34
34
|
metadata,
|
|
35
35
|
documents, // store original text
|
|
@@ -37,7 +37,7 @@ const ids = await vectorStore.upsert({
|
|
|
37
37
|
|
|
38
38
|
// Query vectors with document filtering
|
|
39
39
|
const results = await vectorStore.query({
|
|
40
|
-
indexName: '
|
|
40
|
+
indexName: 'myCollection',
|
|
41
41
|
queryVector: [0.1, 0.2, ...],
|
|
42
42
|
topK: 10, // topK
|
|
43
43
|
filter: { text: { $eq: 'doc1' } }, // metadata filter
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/chroma",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5-alpha.0",
|
|
4
4
|
"description": "Chroma vector store provider for Mastra",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"chromadb": "^1.10.5",
|
|
23
|
-
"@mastra/core": "^0.6.
|
|
23
|
+
"@mastra/core": "^0.6.4-alpha.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@microsoft/api-extractor": "^7.52.1",
|