@sprucelabs/chroma-data-store 0.3.39 → 0.3.41

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/README.md CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  Give your skill the ability to store and retrieve data from a Chroma database.
4
4
 
5
- ## Running Chroma
5
+ ## Running the Chroma Database
6
6
 
7
7
  1. Clone this rep
8
8
  2. Run `yarn start.chroma.docker`
9
9
 
10
10
  ## Setting an embedding model
11
11
 
12
- By default , the ChromaDabatase class will use llama3.2 hosted through Ollama to generate embeddings
12
+ By default, the ChromaDabatase class will use llama3.2 hosted through Ollama to generate embeddings
13
13
 
14
14
  ### Installing Ollama
15
15
 
@@ -24,11 +24,19 @@ Llama 3.2 is the newest version of Llama (as of this writing) that supports embe
24
24
  1. Inside of terminal, run `ollama run llama3.2`
25
25
  2. You should be able to visit http://localhost:11434/api/embeddings and get a 404 response (this is because the route only accepts POST requests)
26
26
 
27
- ## Improving embeddings with `nomic-embed-text`
27
+ ### Improving embeddings with `nomic-embed-text`
28
28
 
29
29
  We have seen significantly better search performance when using `nomic-embed-text` to generate embeddings.
30
30
 
31
+ Run `ollama pull nomic-embed-text`
31
32
 
32
- ## Connecting to Chroma
33
33
 
34
- Use the connection string: `chromadb://localhost:8000` is your skill.
34
+ ## Using in your skill
35
+
36
+ Add the following to your env:
37
+
38
+ ```bash
39
+ DB_CONNECTION_STRING="chromadb://localhost:8000"
40
+ DB_ADAPTER="@sprucelabs/chroma-data-store"
41
+
42
+ ```
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "scriptUpdater": {
3
- "skipped": []
3
+ "skipped": [
4
+ "test"
5
+ ]
4
6
  },
5
7
  "skipped": [
6
8
  "skill"
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "sprucebot",
14
14
  "sprucelabs"
15
15
  ],
16
- "version": "0.3.39",
16
+ "version": "0.3.41",
17
17
  "scripts": {
18
18
  "build.ci": "yarn run build.tsc && yarn run build.resolve-paths && yarn run lint",
19
19
  "build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/",
@@ -34,7 +34,7 @@
34
34
  "rebuild": "yarn run clean.all && yarn install && yarn run build.dev",
35
35
  "release": "semantic-release",
36
36
  "resolve-paths.lint": "yarn run build.resolve-paths ; yarn run lint",
37
- "test": "jest",
37
+ "test": "NODE_OPTIONS=--experimental-vm-modules jest",
38
38
  "update.dependencies": "yarn run clean.dependencies && yarn",
39
39
  "watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn run post.watch.build'",
40
40
  "watch.rebuild": "yarn run clean.all && yarn install && yarn run watch.build.dev",
@@ -43,19 +43,19 @@
43
43
  "generate.embeddings": "./support/generate_embeddings.sh"
44
44
  },
45
45
  "devDependencies": {
46
- "@sprucelabs/esm-postbuild": "^6.0.550",
47
- "@sprucelabs/jest-json-reporter": "^8.0.582",
48
- "@sprucelabs/resolve-path-aliases": "^2.0.534",
46
+ "@sprucelabs/esm-postbuild": "^6.0.555",
47
+ "@sprucelabs/jest-json-reporter": "^8.0.590",
48
+ "@sprucelabs/resolve-path-aliases": "^2.0.538",
49
49
  "@sprucelabs/semantic-release": "^5.0.2",
50
- "@sprucelabs/test": "^9.0.73",
51
- "@sprucelabs/test-utils": "^5.5.14",
52
- "@types/node": "^22.13.5",
50
+ "@sprucelabs/test": "^9.0.77",
51
+ "@sprucelabs/test-utils": "^5.5.27",
52
+ "@types/node": "^22.13.11",
53
53
  "chokidar-cli": "^3.0.0",
54
- "eslint": "^9.21.0",
54
+ "eslint": "^9.23.0",
55
55
  "eslint-config-spruce": "^11.2.26",
56
56
  "jest": "^29.7.0",
57
57
  "jest-circus": "^29.7.0",
58
- "prettier": "^3.5.2",
58
+ "prettier": "^3.5.3",
59
59
  "ts-node": "^10.9.2",
60
60
  "tsc-watch": "^6.2.1",
61
61
  "typescript": "^5.8.2"
@@ -83,12 +83,13 @@
83
83
  }
84
84
  },
85
85
  "dependencies": {
86
- "@sprucelabs/data-stores": "^28.5.70",
87
- "@sprucelabs/error": "^6.0.581",
88
- "@sprucelabs/schema": "^31.0.55",
89
- "@sprucelabs/spruce-core-schemas": "^40.1.645",
90
- "@sprucelabs/spruce-skill-utils": "^31.2.60",
91
- "chromadb": "^1.10.4",
92
- "chromadb-default-embed": "^2.13.2"
86
+ "@sprucelabs/data-stores": "^28.5.86",
87
+ "@sprucelabs/error": "^6.0.589",
88
+ "@sprucelabs/schema": "^31.0.68",
89
+ "@sprucelabs/spruce-core-schemas": "^40.1.658",
90
+ "@sprucelabs/spruce-skill-utils": "^31.2.73",
91
+ "chromadb": "^2.0.1",
92
+ "chromadb-default-embed": "^2.14.0",
93
+ "ollama": "^0.5.14"
93
94
  }
94
95
  }