create_index
This operation creates a Pinecone index. You can use it to specify the measure of similarity, the dimension of vectors to be stored in the index, the numbers of replicas to use, and more.
Authorizations
An API Key is required to call Pinecone APIs. Get yours at https://app.pinecone.io/.
Body
The name of the index to be created. The maximum length is 45 characters.
"example-index"
The dimensions of the vectors to be inserted in the index
1024
The type of vector index. Pinecone supports 'approximated'.
The distance metric to be used for similarity search. You can use 'euclidean', 'cosine', or 'dotproduct'.
The number of pods for the index to use,including replicas.
The number of replicas. Replicas duplicate your index. They provide higher availability and throughput.
The type of pod to use. One of s1
, p1
, or p2
appended with .
and one of x1
, x2
, x4
, or x8
.
Configuration for the behavior of Pinecone's internal metadata index. By default, all metadata is indexed; when metadata_config
is present, only specified metadata fields are indexed. To specify metadata fields to index, provide a JSON object of the following form:
{"indexed": ["example_metadata_field"]}
The name of the collection to create an index from
Response
The response is of type string
.
Was this page helpful?