chroma-core / chroma

the AI-native open-source embedding database

Home Page:https://www.trychroma.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Collection.modify() got an unexpected keyword argument 'new_name'

rlleshi opened this issue · comments

What happened?

From the docs here: https://cookbook.chromadb.dev/core/collections/

Collection name change should be as simple as: collection.modify(new_name="new_name")

I get the following error when I try to do that: TypeError: Collection.modify() got an unexpected keyword argument 'new_name'

Versions

chromadb 0.5.3, python 3.10.0, ubuntu 22.04

Relevant log output

No response

@rlleshi, this was a typo in the cookbook docs. if you check the official docs here - https://docs.trychroma.com/reference/py-collection#modify and the example in https://cookbook.chromadb.dev/core/collections/#modifying-a-collection, you'll see that the correct param is name not new_name.

The typo is now corrected