Skip to main content
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
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.vectoraidb.actian.com/llms.txt

Use this file to discover all available pages before exploring further.

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