from pinecone.grpc import PineconeGRPC as Pinecone
pc = Pinecone(api_key='YOUR_API_KEY')
active_collections = pc.list_collections()
{
"collections": [
{
"name": "example-collection1",
"status": "Ready",
"environment": "us-east-1-aws",
"size": 3081918,
"vector_count": 99,
"dimension": 3
},
{
"name": "example-collection1",
"status": "Ready",
"environment": "us-east-1-aws",
"size": 160087040000000,
"vector_count": 10000000,
"dimension": 1536
}
]
}
List all collections in a project. Serverless indexes do not support collections.
from pinecone.grpc import PineconeGRPC as Pinecone
pc = Pinecone(api_key='YOUR_API_KEY')
active_collections = pc.list_collections()
{
"collections": [
{
"name": "example-collection1",
"status": "Ready",
"environment": "us-east-1-aws",
"size": 3081918,
"vector_count": 99,
"dimension": 3
},
{
"name": "example-collection1",
"status": "Ready",
"environment": "us-east-1-aws",
"size": 160087040000000,
"vector_count": 10000000,
"dimension": 1536
}
]
}
from pinecone.grpc import PineconeGRPC as Pinecone
pc = Pinecone(api_key='YOUR_API_KEY')
active_collections = pc.list_collections()
{
"collections": [
{
"name": "example-collection1",
"status": "Ready",
"environment": "us-east-1-aws",
"size": 3081918,
"vector_count": 99,
"dimension": 3
},
{
"name": "example-collection1",
"status": "Ready",
"environment": "us-east-1-aws",
"size": 160087040000000,
"vector_count": 10000000,
"dimension": 1536
}
]
}
List all the collections in your current project.
The list of collections that exist in the project.
Was this page helpful?