Manage Indexes
Create an index
Create a Pinecone index. This is where you specify the measure of similarity, the dimension of vectors to be stored in the index, which cloud provider you would like to deploy with, and more.
For guidance and examples, see Create an index.
post/indexes
Headers
X-Pinecone-Api-Versionstring required
Required date-based version header
Request body
Example request
{
"name": "example-index",
"dimension": 1536,
"tags": {
"tag0": "val0",
"tag1": "val1"
},
"spec": {
"serverless": {
"cloud": "aws",
"region": "us-east-1",
"read_capacity": {
"mode": "OnDemand"
},
"source_collection": "movie-embeddings",
"schema": {
"fields": {
"description": {
"filterable": true
},
"genre": {
"filterable": true
},
"year": {
"filterable": true
}
}
}
}
}
}Response
The index has been successfully created.
Example response
{
"name": "example-index",
"dimension": 1536,
"host": "semantic-search-c01b5b5.svc.us-west1-gcp.pinecone.io",
"private_host": "semantic-search-c01b5b5.svc.private.us-west1-gcp.pinecone.io",
"tags": {
"tag0": "val0",
"tag1": "val1"
},
"embed": {
"field_map": {
"text": "your-text-field"
},
"metric": "cosine",
"model": "multilingual-e5-large",
"read_parameters": {
"input_type": "query",
"truncate": "NONE"
},
"write_parameters": {
"input_type": "passage"
}
},
"spec": {
"serverless": {
"cloud": "aws",
"region": "us-east-1",
"read_capacity": {
"mode": "OnDemand",
"status": {
"state": "Ready"
}
},
"source_collection": "movie-embeddings",
"schema": {
"fields": {
"description": {
"filterable": true
},
"genre": {
"filterable": true
},
"year": {
"filterable": true
}
}
}
}
},
"status": {
"ready": true,
"state": "ScalingUpPodSize"
}
}