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