Pinecone Database
# Not supported with pinecone["grpc"] extras installed from pinecone import Pinecone pc = Pinecone(api_key="YOUR_API_KEY") index = pc.Index(host="INDEX_HOST") namespace = index.describe_namespace(namespace="example-namespace") print(namespace)
{ "name": "example-namespace", "record_count": "20000" }
Describe a namespace in a serverless index, including the total number of vectors in the namespace.
For guidance and examples, see Manage namespaces.
Note: This operation is not supported for pod-based indexes.
An API Key is required to call Pinecone APIs. Get yours from the console.
The namespace to describe
A description of a namespace.
A description of a namespace, including the name and record count.
The name of the namespace.
"example-namespace"
The total amount of records within the namespace.
20000
Was this page helpful?