Create an index
This page shows you how to create a serverless index, pod-based index, and an index from a collection.
To learn about the concepts related to indexes, see Understanding indexes.
You can create an index using the Pinecone console.
Create a serverless index
To create a serverless index, use the spec
parameter to define the cloud and region where the index should be deployed. For Python, you also need to import the ServerlessSpec
class.
Create a pod-based index
To create a pod-based index, import the PodSpec
class and use the spec
parameter to define the environment where the index should be deployed, the pod type and size to use, and other index characteristics:
For the full list of parameters available to customize an index, see the create_index API reference.
Create an index from a backup or collection
You can create a serverless index from a backup or collection or a pod-based index from a collection. For more details, see Restore an index.
Prevent index deletion
When creating an index, you can protect the index from accidental deletion by setting the deletion_protection
parameter to enabled
. For more details, see Prevent index deletion.
Was this page helpful?