Open verveguy opened 2 weeks ago
@verveguy thanks - this is good feedback. we are considering deprecating this API in general because it's semantic are really wonky.
The API itself is very useful. It's like upsert, but for a whole collection.
It's really just the message it generates that is odd.
What happened?
get_or_create_collection logs
Collection <name> is not created.
when collection already exists at INFO level.It seems that this message is meant to convey that the collection was not created because it already exists.
The wording is confusing. Better would be to report nothing at all for this case and only log.INFO
Collection <name> created.
Or if you really want to log something, log.INFO
Collection <name> exists.
Versions
Chroma 0.5.0 MacOS 14.5 Python 3.11.6
Relevant log output