from actian_vectorai_client import VectorAIClient
with VectorAIClient("localhost:6574") as client:
# Count total points
count = client.points.count("my_collection")
print(f"Total points: {count}"){
"usage": {
"hardware": null
},
"time": 0.000004424,
"status": "ok",
"result": {
"count": 4
}
}{
"status": {
"error": "<string>"
},
"time": 123
}Search
Count points
Count the number of points in a collection, optionally filtered by payload conditions. Useful for checking collection size, validating data loads, or counting points matching specific criteria.
POST
/
collections
/
{collection_name}
/
points
/
count
from actian_vectorai_client import VectorAIClient
with VectorAIClient("localhost:6574") as client:
# Count total points
count = client.points.count("my_collection")
print(f"Total points: {count}"){
"usage": {
"hardware": null
},
"time": 0.000004424,
"status": "ok",
"result": {
"count": 4
}
}{
"status": {
"error": "<string>"
},
"time": 123
}Authorizations
Admin JWT or access token for authenticating requests to VectorAI DB.
Path Parameters
The name of the collection to count points in.
Body
application/json