const responseDelete = await index.stats();
/*
{ 
	vectorCount: 17,
 	pendingVectorCount: 0,
	indexSize: 551158,
    dimension: 1536,
    similarityFunction: "COSINE"
}*/
Used to retrieve the stats of an index.

Arguments

IDs
string[] | number[]
required
Returns some statistics and numbers related to your index.

Response

vectorCount
number
required
The number of vectors in the index, that are ready to use.
pendingVectorCount
number
required
The number of vectors in the index, that is still processing and not ready to use.
indexSize
number
required
The size of the index, in b.
dimension
number
required
Dimension of the vectors.
similarityFunction
string
required
Name of the similarity function used in indexing and queries.
const responseDelete = await index.stats();
/*
{ 
	vectorCount: 17,
 	pendingVectorCount: 0,
	indexSize: 551158,
    dimension: 1536,
    similarityFunction: "COSINE"
}*/