@mastra/chroma 0.2.4-alpha.0 → 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.
@@ -1,23 +1,23 @@
1
1
 
2
- > @mastra/chroma@0.2.4-alpha.0 build /home/runner/work/mastra/mastra/stores/chroma
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
  CLI Building entry: src/index.ts
6
6
  CLI Using tsconfig: tsconfig.json
7
7
  CLI tsup v8.4.0
8
8
  TSC Build start
9
- TSC ⚡️ Build success in 8000ms
9
+ TSC ⚡️ Build success in 7161ms
10
10
  DTS Build start
11
11
  CLI Target: es2022
12
12
  Analysis will use the bundled TypeScript version 5.8.2
13
13
  Writing package typings: /home/runner/work/mastra/mastra/stores/chroma/dist/_tsup-dts-rollup.d.ts
14
14
  Analysis will use the bundled TypeScript version 5.8.2
15
15
  Writing package typings: /home/runner/work/mastra/mastra/stores/chroma/dist/_tsup-dts-rollup.d.cts
16
- DTS ⚡️ Build success in 8441ms
16
+ DTS ⚡️ Build success in 8409ms
17
17
  CLI Cleaning output folder
18
18
  ESM Build start
19
19
  CJS Build start
20
20
  ESM dist/index.js 8.05 KB
21
- ESM ⚡️ Build success in 680ms
21
+ ESM ⚡️ Build success in 647ms
22
22
  CJS dist/index.cjs 8.08 KB
23
- CJS ⚡️ Build success in 679ms
23
+ CJS ⚡️ Build success in 655ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
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
+
13
+ ## 0.2.4
14
+
15
+ ### Patch Changes
16
+
17
+ - 404640e: AgentNetwork changeset
18
+ - Updated dependencies [404640e]
19
+ - Updated dependencies [3bce733]
20
+ - @mastra/core@0.6.3
21
+
22
+ ## 0.2.4-alpha.1
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [3bce733]
27
+ - @mastra/core@0.6.3-alpha.1
28
+
3
29
  ## 0.2.4-alpha.0
4
30
 
5
31
  ### 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: 'my-collection', dimension: 1536, metric: 'cosine' });
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: 'my-collection',
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: 'my-collection',
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.4-alpha.0",
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.3-alpha.0"
23
+ "@mastra/core": "^0.6.4-alpha.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@microsoft/api-extractor": "^7.52.1",