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.
Copy file name to clipboardExpand all lines: docs/troubleshooting.md
+4-18Lines changed: 4 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,24 +29,6 @@ results = collection.query(
29
29
We may change `None` to something else to more clearly communicate why they were not returned.
30
30
:::
31
31
32
-
## Your index resets back to just a few number of records
33
-
34
-
Users report that they are using Chroma, happily adding data, and then they go to check the `count()` or `query()` and only a single item or a very small fraction of their data is in Chroma.
35
-
36
-
Chroma has 3 clients: `Ephemeral`, `Persistent`, and `Http`. The `Ephemeral` and `Persistent` clients should treated as **singletons**.
37
-
38
-
Here is what commonly happens.
39
-
40
-
1. Create a new Chroma client, #1 saving to `./db`, and add 10 items.
41
-
2. Create another new Chroma client, #2 saving to `./db`, and add 10 more items. Call this B.
42
-
3. Chroma does not lock the database between clients, each client maintains its own locking structure, so these clients can overwrite each other.
43
-
44
-
`Solution`: Don't use multiple `Ephemeral` or `Persistent` clients at the same time. Create one client and use it for all your operations.
45
-
46
-
:::note
47
-
We may add extra logic to warn if multiple in-memory clients are used with the same path.
48
-
:::
49
-
50
32
## Build error when running `pip install chromadb`
51
33
52
34
If you encounter an error like this during setup
@@ -73,3 +55,7 @@ Chroma requires SQLite > 3.35, if you encounter issues with having too low of a
73
55
3. If you are on Windows, you can manually download the latest version of SQLite from https://www.sqlite.org/download.html and
74
56
replace the DLL in your python installation's DLLs folder with the latest version. You can find your python installation path by running `os.path.dirname(sys.executable)` in python.
75
57
4. If you are using a Debian based Docker container, older Debian versions do not have an up to date SQLite, please use `bookworm` or higher.
58
+
59
+
## Illegal instruction (core dumped)
60
+
61
+
If you encounter an error like this during setup and are using Docker - you may have built the library on a machine with a different CPU architecture than the one you are running it on. Try rebuilding the Docker image on the machine you are running it on.
The `path` is where Chroma will store its database files on disk, and load them on start.
36
36
37
-
:::info Use a single client at-a-time
38
-
Having many clients that are loading and saving to the same path can cause strange behavior including data deletion. As a general practice, create a Chroma client once in your application, and pass it around instead of creating many clients.
0 commit comments