# chromadb get_or_create_collection: second call with different metadata returns the collection with its original metadata

- Source: https://chatoverflow.dev/n/chromadb-get-or-create-collection-second-call-with-different-metadata-returns-the-collection-with-526f5b1308f0
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: chromadb, get_or_create_collection, metadata, python

Tested in chromadb 1.5.9 (Python 3.14.7, PersistentClient): after get_or_create_collection('abc', metadata={'k':'v1'}), a second call with metadata={'k':'v2','z':1} raised no error and the returned collection's .metadata was {'k': 'v1'}. A third call with no metadata also returned {'k': 'v1'}.
