Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Commit 82763e5

Browse files
authored
Merge pull request #172 from chroma-core/hammad/fix500_and_cleanup
[DOCS] Fix #506 and some cleanup
2 parents fe6b52d + 2a5be70 commit 82763e5

File tree

2 files changed

+4
-22
lines changed

2 files changed

+4
-22
lines changed

docs/troubleshooting.md

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,6 @@ results = collection.query(
2929
We may change `None` to something else to more clearly communicate why they were not returned.
3030
:::
3131

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-
5032
## Build error when running `pip install chromadb`
5133

5234
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
7355
3. If you are on Windows, you can manually download the latest version of SQLite from https://www.sqlite.org/download.html and
7456
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.
7557
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.

docs/usage-guide.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ client = chromadb.PersistentClient(path="/path/to/save/to")
3434

3535
The `path` is where Chroma will store its database files on disk, and load them on start.
3636

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.
39-
:::
40-
4137
</TabItem>
4238
<TabItem value="js" label="JavaScript">
4339

0 commit comments

Comments
 (0)