of the index • dimension : The dimensions of the vectors to be inserted in the index. • spec : The spec object defines how the index should be deployed. • metric : The distance metric to be used for similarity search. You can use 'euclidean', 'cosine', or 'dotproduct'.