Skip to main content
POST
/
collections
/
{collection_name}
/
points
/
count
from actian_vectorai import VectorAIClient with VectorAIClient("localhost:50051") 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
  }
}

Authorizations

Authorization
string
header
required

Admin JWT or access token for authenticating requests to VectorAI DB.

Path Parameters

collection_name
string
required

The name of the collection to count points in.

Body

application/json
filter
object

Optional filter conditions. Only points matching the filter are counted.

exact
boolean
default:true

If true, returns an exact count. If false, returns a faster approximate count. Defaults to true.

Example:

true

Response

Count result

usage
object
time
number<double>

Time spent to process this request, in seconds.

Example:

0.000004424

status
string

Operation status.

Example:

"ok"

result
object