Manage Indexes
Configure an index
Configure an existing index. For guidance and examples, see Manage indexes.
patch/indexes/{index_name}
Path parameters
index_namestring required
The name of the index to configure.
Headers
X-Pinecone-Api-Versionstring required
Required date-based version header
Request body
Example request
{
"spec": {
"serverless": {
"read_capacity": {
"mode": "OnDemand"
}
}
},
"tags": {
"tag0": "val0",
"tag1": "val1"
},
"embed": {
"field_map": {
"text": "your-text-field"
},
"model": "multilingual-e5-large",
"read_parameters": {
"input_type": "query",
"truncate": "NONE"
},
"write_parameters": {
"input_type": "passage"
}
}
}Response
The request to configure the index has been accepted. Check the index status to see when the change has been applied.
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"
}
}