You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 10, 2024. It is now read-only.
update docs to use the new CLI as the default happy path (#121)
* update docs to use the new CLI
* Updated docs
* Clean up auth
* HTTP Client already exitsts
---------
Co-authored-by: atroyn <anton.troynikov@gmail.com>
### Run chroma just as a client to talk to a backend service
49
48
50
-
For many use cases, an in-memory database will not cut it. Run `docker-compose up -d --build` to run a persistent backend in Docker. Simply update your API initialization and then use the API the same way as before.
49
+
You can run Chroma a standalone Chroma server using the Chroma command line. Run `chroma run --path /db_path` to run a server.
50
+
51
+
Then update your API initialization and then use the API the same way as before.
51
52
52
53
```python
53
54
import chromadb
@@ -151,12 +152,12 @@ collection.delete()
151
152
152
153
### Run the backend
153
154
154
-
Run `docker-compose up -d --build` to run a backend in Docker on your local computer.
155
+
Run `chroma run --path /db_path` to run the Chroma backend as a standalone server on your local computer.
155
156
156
157
## Initialize client - JS
157
158
158
159
```javascript
159
-
import { ChromaClient } from'chromadb'
160
+
import { ChromaClient } from"chromadb";
160
161
constclient=newChromaClient();
161
162
```
162
163
@@ -170,23 +171,23 @@ Collections are similar to AWS s3 buckets in their naming requirements because t
Copy file name to clipboardExpand all lines: docs/deployment.md
+61-14Lines changed: 61 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,12 @@ title: "☁️ Deployment"
5
5
6
6
:::caution Alpha Status
7
7
Chroma Server is currently in Alpha. We are working hard to move Chroma from an in-memory single-process oriented library to a distributed production-grade DB!
8
+
8
9
-[x] Alpha <- Currently
9
10
-[ ] Technical Preview - ~1 month away, powered by a completely new backend
10
11
-[ ] Full production
11
12
-[ ] GA - General Availability
13
+
12
14
:::
13
15
14
16
# ☁️ Deployment
@@ -21,12 +23,49 @@ provided a very simple AWS CloudFormation template to experiment with
21
23
deploying Chroma to EC2 on AWS.
22
24
23
25
## Hosted Chroma
24
-
We want to offer hosted Chroma, and we need your help.
26
+
27
+
We want to offer hosted Chroma, and we need your help.
25
28
26
29
Fill out the survey to jump the wait-list. Coming Q3 2023.
27
30
28
31
[📝 30 second survey](https://airtable.com/shrOAiDUtS2ILy5vZ)
29
32
33
+
## Docker
34
+
35
+
You can run a Chroma server in a Docker container.
36
+
37
+
You can get the Chroma Docker image from [Docker Hub](https://hub.docker.com/r/chromadb/chroma), or from the [Chroma GitHub Container Registry](https://github.com/chroma-core/chroma/pkgs/container/chroma)
38
+
39
+
```sh
40
+
docker pull chromadb/chroma
41
+
docker run -p 8000:8000 chromadb/chroma
42
+
```
43
+
44
+
You can also build the Docker image yourself from the Dockerfile in the [Chroma GitHub repository](https://github.com/chroma-core/chroma)
45
+
46
+
```sh
47
+
git clone git@github.com:chroma-core/chroma.git
48
+
cd chroma
49
+
docker-compose up -d --build
50
+
```
51
+
52
+
The Chroma client can then be configured to connect to the server running in the Docker container.
By default, the Docker image will run with no authentication. Follow the [Authentication](./usage-guide#authentication) section of the Usage Guide to configure authentication in the Docker container.
62
+
63
+
You can also create a `.chroma_env` file setting the required environment variables and pass it to the Docker container with the `--env-file` flag when running the container.
64
+
65
+
```sh
66
+
docker run --env-file ./.chroma_env -p 8000:8000 chromadb/chroma
67
+
```
68
+
30
69
## Simple AWS Deployment
31
70
32
71
:warning: Chroma and its underlying database need at least 2gb of RAM,
@@ -47,7 +86,6 @@ serious production use (with high availability, backups, etc.) please
47
86
read and understand the CloudFormation template and use it as a basis
48
87
for what you need, or reach out to the Chroma team for assistance.
49
88
50
-
51
89
### Step 1: Get an AWS Account
52
90
53
91
You will need an AWS Account. You can use one you already have, or
@@ -65,17 +103,20 @@ and will be using environment variables to configure AWS.
65
103
66
104
Export the `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` environment variables in your shell:
:warning: This will destroy all the data in your Chroma database,
160
207
unless you've taken a snapshot or otherwise backed it up.
161
208
162
209
### Troubleshooting
163
210
164
-
If you get an error saying `No default VPC for this user` when creating `ChromaInstanceSecurityGroup`, head to [AWS VPC section](https://us-east-1.console.aws.amazon.com/vpc/home?region=us-east-1#vpcs) and create a default VPC for your user.
211
+
If you get an error saying `No default VPC for this user` when creating `ChromaInstanceSecurityGroup`, head to [AWS VPC section](https://us-east-1.console.aws.amazon.com/vpc/home?region=us-east-1#vpcs) and create a default VPC for your user.
0 commit comments