Create a serverless index
This page shows you how to create a serverless index to store dense or sparse vectors.
You can create an index using the Pinecone console.
Create a dense index
Dense indexes store dense vectors, which are numerical representations of the meaning and relationships of text, images, or other types of data. You use dense indexes for semantic search or in combination with sparse indexes for hybrid search.
You can create a dense index designed for external or integrated vector embedding.
If you want to upsert and search with source text and have Pinecone convert it to dense vectors automatically, use the create a dense index with integrated embedding as follows:
- Provide a
name
for the index. - Set
embed.model
to one of Pinecone’s hosted embedding models. - Set
spec.cloud
andspec.region
to the cloud and region where the index should be deployed. - Set
embed.field_map
to the name of the field in your source document that contains the data for embedding.
Other parameters are optional. See the API reference for details.
The response will look like this:
Create a sparse index
This feature is in public preview.
Sparse indexes store sparse vectors, which are numerical representations of the words or phrases in a document. You use sparse indexes for lexical search, or in combination with dense indexes for hybrid search.
You can create a sparse index designed for external or integrated vector embedding.
If you want to upsert and search with source text and have Pinecone convert it to sparse vectors automatically, create a sparse index with integrated embedding as follows:
- Provide a
name
for the index. - Set the
cloud
andregion
where the index should be deployed. Onlyaws
ineu-west-1
,us-east-1
, andus-west-2
are supported at this time. - Set
embed.model
to one of Pinecone’s hosted sparse embedding models. - Set
embed.field_map
to the name of the field in your source document that contains the text for embedding.
Other parameters are optional. See the API reference for details.
Create an index from a backup
You can create a dense or sparse index from a backup. For more details, see Restore an index.
Migrate a pod-based index to serverless
You can migrate a pod-based index to serverless by creating a new serverless index from a collection. For more information, see Migrate a pod-based index to serverless.
Was this page helpful?