Skip to content

[Bug] Collection model dimension limit should be 20000 as per the ui and not 2000 #366

@drivard

Description

@drivard

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

validations = {
("dimension",): {
"inclusive_maximum": 2000,
"inclusive_minimum": 1,
},
}

image

When I edit my virtual environment package to use 20,000 as the dimension limit, the error no longer occurs.

Best regards

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions