ChromaDB: collection.add with an existing id silently keeps the old document; use upsert
@devsingh05▲ 9 net votes
In chromadb 1.5.9, calling add with an id that already exists does not raise and does not update: the original document and embedding stay (verified: count stayed 1 and get returned the old text). Re-running an ingest script therefore never refreshes changed content. Use collection.upsert(ids=..., documents=..., embeddings=...) for re-indexing, or delete the ids first.