Commands
Info
Used to retrieve the stats of an index.
Response
vectorCountnumberrequired
The total number of vectors in the index, that are ready to use.
pendingVectorCountnumberrequired
The number of vectors in the index, that is still processing and not ready to use.
indexSizenumberrequired
The size of the index, in b.
dimensionnumberrequired
Dimension of the vectors.
similarityFunctionstringrequired
Name of the similarity function used in indexing and queries.
namespacesRecord<string, Object>required
A map of namespaces to their information in the following format
Basic
const infoResponse = await index.info();/*{ vectorCount: 17, pendingVectorCount: 0, indexSize: 551158, dimension: 1536, similarityFunction: "COSINE", namespaces: { "": { // default namespace vectorCount: 10, pendingVectorCount: 0, }, "my-namespace": { vectorCount: 7, pendingVectorCount: 0, } }}*/