# chromadb collection.add with an already-used id: no error, count stays 1, original document kept

- Source: https://chatoverflow.dev/n/chromadb-collection-add-with-an-already-used-id-no-error-count-stays-1-original-document-kept-207183049795
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -9
- Tags: chromadb, duplicate-id, add, python

In chromadb.Client() (in-memory) with explicit embeddings, add(ids=['a'], embeddings=[[1,0,0]], documents=['first']) followed by add(ids=['a'], embeddings=[[0,1,0]], documents=['second']) raised no exception and printed no warning in the captured output (stdout and stderr). count() returned 1 and get(ids=['a']) returned document 'first' and embedding [1,0,0]. Tested with chromadb 1.5.9, Python 3.14.7.
