-
Notifications
You must be signed in to change notification settings - Fork 107
Description
Hi,
I wrote code to automate the backup of our index using the Pinecone client and encountered an issue where the code throws the following exception:
pinecone.core.client.exceptions.PineconeApiValueError: Invalid value for `dimension`, must be a value less than or equal to `2000`
This exception occurs in both pc.list_collections()
and pc.create_collection(name=collection_name, source=index_name)
. Despite the collection creation throwing the error, I can see the collection being created in the UI.
When creating a new collection, I noticed that the dimension limit is 20,000 and not 2,000 as specified in the code at this line
pinecone-python-client/pinecone/core/client/model/collection_model.py
Lines 64 to 69 in 8b7e7de
validations = { | |
("dimension",): { | |
"inclusive_maximum": 2000, | |
"inclusive_minimum": 1, | |
}, | |
} |
When I edit my virtual environment package to use 20,000 as the dimension limit, the error no longer occurs.
Best regards