Pinecone Database
from pinecone.grpc import PineconeGRPC as Pinecone pc = Pinecone(api_key='YOUR_API_KEY') active_collections = pc.list_collections()
200
multiple-collections
{ "collections": [ { "dimension": 3, "environment": "us-east1-gcp", "name": "small-collection", "size": 3126700, "status": "Ready", "vector_count": 99 }, { "dimension": 3, "environment": "us-east1-gcp", "name": "small-collection-new", "size": 3126700, "status": "Initializing", "vector_count": 99 }, { "dimension": 1536, "environment": "us-east1-gcp", "name": "big-collection", "size": 160087040000000, "status": "Ready", "vector_count": 10000000 } ]}
This operation returns a list of all collections in a project. Serverless indexes do not support collections.
An API Key is required to call Pinecone APIs. Get yours from the console.
This operation returns a list of all the collections in your current project.
The list of collections that exist in the project.
Show child attributes
The name of the collection.
"example-collection"
The status of the collection.
Initializing
Ready
Terminating
"Initializing"
The environment where the collection is hosted.
"us-east1-gcp"
The size of the collection in bytes.
10000000
The dimension of the vectors stored in each record held in the collection.
1 <= x <= 20000
1536
The number of records stored in the collection.
120000
Was this page helpful?